server: fix diskoffering details in vm response#8135
Conversation
Fixes apache#8120 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
Not sure if we should return DATA disk offering details after #5008 but this should allow fixing the issue as we have multiple entries in user_vm_view when there is a data disk @harikrishna-patnala |
I have the same concern |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #8135 +/- ##
=========================================
Coverage 13.11% 13.12%
- Complexity 9133 9135 +2
=========================================
Files 2720 2720
Lines 257659 257662 +3
Branches 40171 40172 +1
=========================================
+ Hits 33802 33807 +5
+ Misses 219566 219563 -3
- Partials 4291 4292 +1 ☔ View full report in Codecov by Sentry. |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7488 |
|
@blueorangutan test |
|
@shwstppr a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-8099)
|
|
@harikrishna-patnala can you please have a look at this? |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
I've not changed this response in #5008. Not sure why is this missing.
But this PR change looks good to me.
|
What if there are multiple data disks ? |
yes @harikrishna-patnala |
|
@shwstppr is this not ready for review yet? |
|
@blueorangutan package |
|
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7698 |
|
@blueorangutan test keepEnv |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
I'm not sure about this change. Although we seem to be returning diskofferingid of the first data disk even in the past but I think we can deprecate it or update its param description to say that it will be returned only in particular cases. |
|
[SF] Trillian test result (tid-8294)
|
|
personally I think that if we include diskinfo in the VM response it should be an array of all disks. |
|
@shwstppr we are having second thoughts on how this should be implemented but in the mean while this is a regression to the user as reported in #8120. I think we should test and merge and considder how to improve later. |
@DaanHoogland |
I agree adding all to the volume list, but this is a backwards compatibility issue. |
IMHO, we can give more information, rather than giving wrong info (if there are multiple volumes. |
I dissagree that the offering id and offering name of the root volume are wrong information. In addition after analysing the DB and code I think it is not good to add the other information of the volumes to the VM response. There is a possibility to call |
|
@DaanHoogland @weizhouapache I suggest we go ahead with this PR for 4.18 branch and then in main create a PR,
|
@DaanHoogland |
@shwstppr that's say, this PR needs to be updated. |
@shwstppr @DaanHoogland what do you think ? |
agreed 🤝 |
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
|
@weizhouapache @DaanHoogland I've updated the params description in UserVmResponse. And I've drafted a PR (needs more changes) to return volumes list in listVitualMachines API response, #8330. We can discuss it there if not needed or shouldn't be done |
|
@blueorangutan package |
|
@shwstppr a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7971 |
|
@blueorangutan test |
|
@shwstppr a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
weizhouapache
left a comment
There was a problem hiding this comment.
code lgtm
not tested it
|
[SF] Trillian test result (tid-8513)
|


Description
Fixes #8120
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?