Fix disk offering override in VM deployment wizard#8070
Fix disk offering override in VM deployment wizard#8070JoaoJandre merged 2 commits intoapache:4.18from
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 4.18 #8070 +/- ##
============================================
+ Coverage 13.12% 13.16% +0.04%
- Complexity 9135 9203 +68
============================================
Files 2720 2724 +4
Lines 257662 258137 +475
Branches 40174 40235 +61
============================================
+ Hits 33807 33989 +182
- Misses 219563 219840 +277
- Partials 4292 4308 +16 ☔ View full report in Codecov by Sentry. |
|
Could someone review this PR? |
|
@winterhazel , I think you should check who recently changed the files you changed and ask them for a review directly. Your call for review in here would not make anybody feel addressed. Use git blame to see who to ask. I see github sugests me, but I have no time for it at the moment. |
|
@harikrishna-patnala @shwstppr can you guys review this? Thanks in advance. |
harikrishna-patnala
left a comment
There was a problem hiding this comment.
Thanks for PR @winterhazel
I could reproduce the issues 1 and 2 and verified that it has fixed with this PR. I've not tested issue 4 yet.
Regarding issue 3
"When a user enables root disk offering override, selects an offer, disables the override and deploys a VM, the root disk offering still gets overridden and the VM is deployed with the selected offer;"
I could not reproduce this issue, it is working as expected before and after the fix.
Am I missing anything
- created testCO1 compute offering with override strictness false and link testDO1 disk offering
- in deploy VM wizard, selected testCO1 and tried overriding the root disk with a differnt disk offering testDO2
- Disabled the root disk override
- Deployed VM and I could see testDO1 in root disk, which is expected
|
@winterhazel also can you please change the base branch to 4.18 as I can see this issue in 4.18 as well. |
|
@harikrishna-patnala thanks for testing. Regarding issue 3, when running the UI locally, You should be able to reproduce issue 3 the following ways: (i) by using a compute offering that does not have an associated disk offering.
(ii) by not interacting with anything other than the launch instance button after disabling the override.
Before the fix, the deployed VM's volume will be created using testDO2.
Sure, I'll change. |
046b1d6 to
a490e74
Compare
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
@DaanHoogland @harikrishna-patnala @shwstppr @weizhouapache, could someone review and validate that issues 3 and 4 have been fixed? |
|
@DaanHoogland a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
@DaanHoogland @BryanMLima @harikrishna-patnala I was able to reproduce issues 3 and 4 in a local lab and validated that both were fixed by this PR. |
|
Merging based on approvals and manual tests. |
* Fix disk offering override in VM deployment wizard * Reduce indentation
Description
This PR fixes four issues related to the disk offering override in the VM deployment wizard:
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
First, I created two disk offerings:
And one compute offering:
Tests related to the UI freezing when selecting a root disk offering:
Tests related to the selected root disk offering not updating when clicking inside a radio button:
Tests related to the root disk offering being overridden even though the override was disabled:
Tests related to the disk offering always being overridden when deploying using an ISO: