-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
VMware Module - vmware_guest_move #42149
Conversation
@Akasurde Could you please re-check? Sorry for the mistake. The rebase stuff drives me crazy |
@bedecarroll @chrrrles @dav1x @garbled1 @jjahns @kamsz @lrivallain @nafpliot-ibm @nerzhul @pdellaert @rhoop @ritzk @stravassac @tchernomax @warthog9 @woshihaoren As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
Can you give a working playbook, and a description of the environment so that I can test it? With my playbook - ---
- hosts: localhost
tasks:
- name: Move Virtual Machine Files
vmware_guest_move:
hostname: vc-hostname
username: administrator@vsphere.local
password: password
validate_certs: False
datacenter: DC1
name: test-test1
dest_folder: /DC1/dc-folder/ I receive error -
|
You get that error because the destination folder doesn't exist. Could you please check if yours exist? We can consider checking the destination folder and even creating it if it doesn't exist beforehand. What do you think? |
Yes. I checked, if folder does not exist then we get this error. I disagree to create destination folder as - firstly, creating folder will puzzle user and secondly, there is an existing module for creating folder. Thanks. |
I correct playbook to this form:
This playbook performed the task of migrating the virtual machine to the "VM and Template Folder". The documentation https://docs.ansible.com/ansible/2.5/modules/vcenter_folder_module.html of the vcenter_folder module has a folder_type option with the "vm" option. And the module vmware_guest_move folder type is contained in the variable "dest_folder" and it hit me. It would be nice to render a folder type from the variable "dest_folder", folder_type with the "vm" parameter and make it default. |
It can be changed but don't you think the documentation is clear on this part?
|
I looked at several implementations of modules, done in different ways. |
No problem at all. Do you agree @Akasurde ? Please confirm and I will update documentation. |
@@ -0,0 +1,3 @@ | |||
posix/ci/cloud/group1/vcenter |
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.
make this group4 and remove smoketest
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.
Done Thanks
Yes. I agree to change the path in example. Added a small comment about placing test in group4. |
@@ -0,0 +1,2 @@ | |||
posix/ci/cloud/group4/vcenter |
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.
This is changed now,
You need to place under
shippable/vcenter/group1
instead of posix/ci/cloud/group4/vcenter
@imjoseangel could you please work on suggested changes and let me know ? |
@Akasurde changed. Thanks! |
@imjoseangel Thanks for the contribution. |
Thank you @Akasurde for the experience and learnings! |
* devel: (50 commits) Add new module for Redfish APIs (#41656) VMware Module - vmware_guest_move (#42149) Lenovo port to persistence 1 (#43194) VMware: new module: vmware_guest_boot_manager (#40609) fixes #42042 (#42939) VMware: new module: vmware_category_facts (#39894) VMware: Dynamic Inventory plugin (#37456) Validate and reject if csr_path is not supplied when provider is not assertonly (#41385) VMware: new module : vmware_guest_custom_attributes (#38114) VMware: new module: vmware_guest_attribute_defs (#38144) VMware: Fix mark as virtual machine method (#40521) Ironware: Deprecate provider, support network_cli (#43285) feat: Add a enable_accelerated_networking flag in module + tests; fixes #41218 (#42109) fixing aiuth source (#42923) VMware: handle special characters in datacenter name (#42922) VMware: update examples in vmware_vm_shell (#42410) VMWare: refactor vmware_vm_shell module (#39957) VMware: additional VSAN facts about Hostsystem (#40456) nxos cliconf plugin refactor (#43203) Correcting conditionals looping (#43331) ...
SUMMARY
Module to Move VMs between Folders in VCenter Fixes #39165 Continues #42059. Sorry for the Error
ISSUE TYPE
COMPONENT NAME
vmware_guest_move
ANSIBLE VERSION
ADDITIONAL INFORMATION