Skip to content
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

Unable to manage snapshots for non-existing VM #2073

Open
anishkrishna87 opened this issue May 18, 2024 · 0 comments
Open

Unable to manage snapshots for non-existing VM #2073

anishkrishna87 opened this issue May 18, 2024 · 0 comments

Comments

@anishkrishna87
Copy link

SUMMARY

I prepared a playbook to take snapshot of vmware vm's using community.vmware module and I'm getting "Unable to manage snapshots for non-existing VM" error for some of the vm's.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.vmware

ANSIBLE VERSION
ansible [core 2.16.6]
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3)
jinja version = 3.0.3

COLLECTION VERSION
Collection       Version
---------------- -------
community.vmware 4.3.0  

CONFIGURATION
CONFIG_FILE() = /etc/ansible/ansible.cfg
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False

OS / ENVIRONMENT

VMware ESXi, 7.0.3, 23307199

STEPS TO REPRODUCE

Run the below ansible playbook aget getting below error.
fatal: [hostname -> localhost]: FAILED! => {"changed": false, "msg": "Unable to manage snapshots for non-existing VM hostname"}

- name: Create Snapshot
      vmware_guest_snapshot:
        hostname: "{{ vcenter_hostname }}"
        username: 
        password: "{{ vcenter_password }}"
        datacenter: "{{ vcenter_datacenter }}"
        validate_certs: no
        name: "{{ inventory_hostname }}"
        state: present
        snapshot_name: "Test"
        folder: Test
        description: " Test"
      delegate_to: localhost
EXPECTED RESULTS
ACTUAL RESULTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant