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
[UI] Added attach and detach features to UI for ROOT disks #6201
Conversation
@blueorangutan package |
@nvazquez a 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: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3127 |
@blueorangutan test |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BryanMLima after I detach a VM's ROOT disk - the instances list is broken, can you please check?
Trillian test result (tid-3880) |
Hello @nvazquez, |
@blueorangutan package |
@nvazquez a 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: ✖️ el7 ✖️ el8 ✖️ debian ✖️ suse15. SL-JID 3178 |
@blueorangutan package |
@nvazquez a 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: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3199 |
Hi @BryanMLima I have tested again and I still have the same issue after detaching a VM's root disk - both times have tested your on a vanilla environment. I have traced the error is caused by this:
I can create a fix for this issue, can you please rebase main branch? |
Found UI changes, kicking a new UI QA build |
Found Java/XML changes, kicking packaging job |
PR Coverage Report
|
@blueorangutan package |
@nvazquez a 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: ✖️ el7 ✖️ debian. SL-JID 3246 |
…ceID for ROOT and DATADISK
63caa02
to
d13332c
Compare
Found UI changes, kicking a new UI QA build |
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
Hi @nvazquez, thanks for creating a fix, I messed up the commit history, but I correctly rebased my branch with the main branch now. |
UI build: ✔️ |
PR Coverage Report
|
Thanks @BryanMLima, I’ll test again with the latest changes |
@blueorangutan package |
@nvazquez a 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: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 3254 |
@blueorangutan test |
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - manually tested on KVM env.
One improvement request, outside the scope of this PR: in case the device ID is left empty it could be expected that CloudStack finds a suitable device ID depending on the number of attached volumes and the hypervisor (example: attach datadisk to a VM without disks and pass device ID empty -> expected device ID = 0, actual device ID = 1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
Trillian test result (tid-3956)
|
Merged based on approvals, intermittent tests failures not related to this PR |
Description
It was already possible via API to attach and detach ROOT disks as well as DATADISKs. However, it was only possible to call these methods on DATADISKs through the UI. This PR implements this functionality on the ROOT disks via UI as well with the use of the
deviceid
parameter. Moreover, the API description forattachVolume
was improved for a better understanding.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
This was tested on a local lab with the following scenarios:
VM1 with ROOT disk and DATA disk:
VM2 without ROOT disk: