Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 虚拟机设置磁盘速度未生效 #21753

Closed
fangpsh opened this issue Dec 5, 2024 · 4 comments
Closed

[BUG] 虚拟机设置磁盘速度未生效 #21753

fangpsh opened this issue Dec 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@fangpsh
Copy link

fangpsh commented Dec 5, 2024

问题描述/What happened:
对虚拟机,设置磁盘速度,
image

提交之后,再次刷新主机信息,磁盘速度为默认的无限制,iops和吞吐量都为0。

/api/v2/servers/io-throttle?id=7eea0df5-b319-4884-89aa-012ef8539e30 接口:
payload:

{"bps":{"e6311959-d5d1-4ef3-8c85-82cb53fc60f6":2147483648},"iops":{"e6311959-d5d1-4ef3-8c85-82cb53fc60f6":2000}}

response ,返回200:

...
"disks":"disk0:30720M/qcow2/scsi/none/native/root",
"disks_info":[
{
"aio_mode":"native",
"boot_index":-1,
"bps":0,
"cache_mode":"none",
"disk_format":"qcow2",
"disk_type":"sys",
"driver":"scsi",
"id":"e6311959-d5d1-4ef3-8c85-82cb53fc60f6",
"image":"CentOS-7.9-2009",
"image_id":"2cd15b91-10f1-417f-8964-82c34a8b98eb",
"index":0,
"iops":0,
"medium_type":"rotate",
"name":"vdisk-lampe-1730779154700045030",
"preallocation":"off",
"size":30720,
"storage_id":"05487ad1-4f24-4d64-8984-c4dbfe27b5d7",
"storage_type":"local"
}
],
...

不太清楚是否只是前端显示问题,主机上实际效果是否有生效,未测试。

环境/Environment:
v3.11.8

@fangpsh fangpsh added the bug Something isn't working label Dec 5, 2024
@wanyaoqi
Copy link
Member

wanyaoqi commented Dec 9, 2024

@fangpsh 前端显示的不是 设置后的值吗

@fangpsh
Copy link
Author

fangpsh commented Dec 10, 2024

@fangpsh 前端显示的不是 设置后的值吗

对,设置提交之后,前端又变回了0,看response 返回iops,bps也都是0。

@wanyaoqi
Copy link
Member

设置是没问题的,应该是展示的问题

@wanyaoqi
Copy link
Member

wanyaoqi commented Dec 17, 2024

fixed: #21805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants