-
Notifications
You must be signed in to change notification settings - Fork 356
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
Add ability to rename VMs #4351
Conversation
814a182
to
0d98258
Compare
1c2d8de
to
cc3482d
Compare
Make the changes in vm_common and in some other places necessary for adding ability to rename VMs.
cc3482d
to
bcc6514
Compare
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.
Tested with ManageIQ/manageiq#17853 applied and works as expected 👍
Add the changes to the new Rename module, to get a task_id and to save the new name of a VM while renaming it.
592546e
to
e9f9e77
Compare
Checked commits hstastna/manageiq-ui-classic@13114ef~...e9f9e77 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
good to go, verified changes in UI. |
RFE: https://bugzilla.redhat.com/show_bug.cgi?id=1559184
What:
This VMware specific PR adds a new feature which allows users to rename VMs after provisioning has been completed (backend already done).
Why:
To simply rename VM without having to reprovision.
Backend PRs: (merged)
ManageIQ/manageiq#17853 (for
rename_queue
method)ManageIQ/manageiq#17658
ManageIQ/manageiq-providers-vmware#291
ManageIQ/vmware_web_service#41
Done:
Rename
module to Mixins for VM rename related methodsrename
feature for a chosen VM in the list screenHow to test:
https://github.com/ManageIQ/manageiq-providers-vmware
https://github.com/ManageIQ/vmware_web_service
Then you need VMWare provider with its proper credentials and some VMs.
OR click on the VM to display its details page
Before:
After:
![rename_button](https://user-images.githubusercontent.com/13417815/43208334-77a30180-902a-11e8-9a42-fd88bc850598.png)
![rename_details](https://user-images.githubusercontent.com/13417815/43772527-b239afde-9a42-11e8-837d-d01eb0b95a10.png)
![rename_vm](https://user-images.githubusercontent.com/13417815/43208340-7a62de4a-902a-11e8-95df-040d8e91e274.png)
![reset_vm](https://user-images.githubusercontent.com/13417815/43212599-ae1c5ad6-9034-11e8-8764-299ae928a134.png)
![cancel_rename](https://user-images.githubusercontent.com/13417815/43208346-7ca9823a-902a-11e8-889a-c60305484ffa.png)
![rename_not](https://user-images.githubusercontent.com/13417815/43840078-0b191eae-9b20-11e8-8383-130ed12001dc.png)
![not_rename](https://user-images.githubusercontent.com/13417815/43267654-d8c9a94a-90ee-11e8-8429-240b3c8ddf8e.png)
![non_exp_save](https://user-images.githubusercontent.com/13417815/43954261-1bd429d2-9c9c-11e8-8506-e3f14d3115bb.png)
![rename_succ](https://user-images.githubusercontent.com/13417815/44060437-fd602da0-9f54-11e8-8333-6f459fa98ab2.png)
![rename_succ2](https://user-images.githubusercontent.com/13417815/44060451-088b8de6-9f55-11e8-887a-dc66f992c364.png)
Rename selected item button:
Rename this VM button:
Renaming screen for a chosen VM (Compute > Infra > VMs):
Resetting changes of the name of a VM:
Canceling renaming of a VM:
Flash message after trying to rename a chosen VM from the list screen which is not supported (it's only for VMs of VMware provider!):
Renaming for other VMs - the button is visible but disabled (not VMware provider):
(you will see this after merging #4364, otherwise you will not see the button at all - if the feature will not be supported for a chosen VM)
Renaming of a VM from a nested list (provider's details page):
Rename of a VM task initiated successfully (from details page or list screen):