Closed MartinEmrich closed 10 months ago
I am able to reproduce the issue. the disk offering information is not displayed in the response of listVirtualMachines api either.
this seems be caused by #5008 cc @harikrishna-patnala @shwstppr
there is another issue with this response in my view @shwstppr @MartinEmrich @weizhouapache ; it contains a nic, while the VM might have more then one the same is true for the disk(offering)s
Do you think it is worth it to creep that into the scope here?
I guess I don't have a strong opinion on that. In the meantime, I changed my application to no longer rely on the diskoffering fields, so I'll take whatever happens. But if one can deployVirtualMachine with multiple disks and/or NICs, I would expect tem to be listed in their order in the result.
But if one can deployVirtualMachine with multiple disks and/or NICs, I would expect tem to be listed in their order in the result.
agreed
Come to think of it; this will have performance repercussions when listing a lot of VMs. We might want to make it optional or add a flag or setting tho enable/disable the behaviour of retrieving all dependent information with the VM. @wido @weizhouapache @rohityadavcloud @shwstppr @harikrishna-patnala @GutoVeronezi @mlsorensen , any input on this matter? Keep in mind this is a regression as well.
Come to think of it; this will have performance repercussions when listing a lot of VMs. We might want to make it optional or add a flag or setting tho enable/disable the behaviour of retrieving all dependent information with the VM. @wido @weizhouapache @rohityadavcloud @shwstppr @harikrishna-patnala @GutoVeronezi @mlsorensen , any input on this matter? Keep in mind this is a regression as well.
@DaanHoogland
there is a vmdetail option named volume
public enum VMDetails {
all, group, nics, stats, secgrp, tmpl, servoff, diskoff, backoff, iso, volume, min, affgrp;
}
if details is all
or contains volume
, it should be better to return more information of volumes. currently only rootdeviceid and rootdevicetype are displayed, which is useless.
Come to think of it; this will have performance repercussions when listing a lot of VMs. We might want to make it optional or add a flag or setting tho enable/disable the behaviour of retrieving all dependent information with the VM. @wido @weizhouapache @rohityadavcloud @shwstppr @harikrishna-patnala @GutoVeronezi @mlsorensen , any input on this matter? Keep in mind this is a regression as well.
The problem is probably only with volumes. I checked nic
already returns an array of VM nics
I like the idea of using details param to list VMs with details of their volumes.
Any way we should update the description for diskofferingid
and diskofferingname
params or restore the behaviour as it was before 4.16?
The problem is probably only with volumes. I checked
nic
already returns an array of VM nicsI like the idea of using details param to list VMs with details of their volumes. Any way we should update the description for
diskofferingid
anddiskofferingname
params or restore the behaviour as it was before 4.16?
I think we could mark diskofferingid
and diskofferingname
as deprecated and do not set the values, as they do not consider if there are multiple data disks.
Fixed with #8135
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
CONFIGURATION
Hypervisor: XenServer
OS / ENVIRONMENT
CentOS 7
SUMMARY
In ACS up until 4.11.2.0, the response to the deployVirtualMachine API call contained the data disk diskofferingid and diskofferingname
I noticed that on ACS 4.18, this is no longer the case.
STEPS TO REPRODUCE
deploy a virtual machine with disk offering and size set.
API call extracted from ACS log file:
EXPECTED RESULTS
My application polls the job result, and also depends on the returned diskofferingid and diskofferingname fields in the resulting XML document. But both fields are missing, making the application think there is no data disk.
Before the upgrade to ACS 4.18, this did work. The API docs still list both fields for the response: https://cloudstack.apache.org/api/apidocs-4.18/apis/deployVirtualMachine.html
ACTUAL RESULTS
The fields are missing now. Result of the job: