community.vmware icon indicating copy to clipboard operation
community.vmware copied to clipboard

Task ist running forever!

Open Banane6077 opened this issue 1 year ago • 2 comments

SUMMARY

Task runs forever, "Gather Facts" works but after that there is nothing happening.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_guest_powerstate:

ANSIBLE VERSION

ansible [core 2.16.4] config file = None configured module search path = ['/home/edv/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/edv/.local/pipx/venvs/ansible/lib/python3.10/site-packages/ansible ansible collection location = /home/edv/.ansible/collections:/usr/share/ansible/collections executable location = /home/edv/.local/bin/ansible python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/home/edv/.local/pipx/venvs/ansible/bin/python) jinja version = 3.1.3

COLLECTION VERSION

community.vmware 4.1.0

OS / ENVIRONMENT

OS: Ubuntu 22.04 jammy Kernel: x86_64 Linux 5.15.0-97-generic Uptime: 18h 34m Shell: bash 5.1.16 Disk: 12G / 177G (7%) CPU: Intel Xeon E5-2650 v4 @ 4x 2.2GHz GPU: VMware SVGA II Adapter RAM: 1232MiB / 15989MiB

STEPS TO REPRODUCE
- name: STARTE SAP-Server Backup/Datenbank Server
  hosts: VCENTER
  become: true
  collections:
    - community.vmware
  vars:
    vcenter_hostname: "191.9.3.72"
    vcenter_username: "[email protected]"
    vcenter_password: "****"
    vcenter_validate_certs: no
  tasks:
    - name: Start; vserv23
      vmware_guest_powerstate:
        hostname: "{{ vcenter_hostname }}"
        username: "{{ vcenter_username }}"
        password: "{{ vcenter_password }}"
        validate_certs: "{{ vcenter_validate_certs }}"
        folder: "{{ item.folder }}"
        moid: "{{ item.moid }}"
        state: powered-on
      delegate_to: localhost
      register: deploy
      loop:
        - { folder: "/DS13 (SAP)/vserv23 - Backup (SUSE)", moid: "vm-102329" }
EXPECTED RESULTS

Its should Start the Server.

ACTUAL RESULTS

Nothing happens....after that:

9:27:10 AM TASK [Start; vserv23] ********************************************************** 9:27:10 AM task path: /home/edv/Playbooks/TEST#1.yml:12 9:27:10 AM ESTABLISH LOCAL CONNECTION FOR USER: edv 9:27:10 AM EXEC /bin/sh -c 'echo ~edv && sleep 0' 9:27:10 AM EXEC /bin/sh -c '( umask 77 && mkdir -p "echo /home/edv/.ansible/tmp"&& mkdir "echo /home/edv/.ansible/tmp/ansible-tmp-1709108830.4479487-226486-61773193046970" && echo ansible-tmp-1709108830.4479487-226486-61773193046970="echo /home/edv/.ansible/tmp/ansible-tmp-1709108830.4479487-226486-61773193046970" ) && sleep 0' 9:27:10 AM Using module file /home/edv/.local/pipx/venvs/ansible/lib/python3.10/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_guest_powerstate.py 9:27:10 AM PUT /tmp/semaphore/.ansible/tmp/ansible-local-226092ulks7fmu/tmp_c0aowac TO /home/edv/.ansible/tmp/ansible-tmp-1709108830.4479487-226486-61773193046970/AnsiballZ_vmware_guest_powerstate.py 9:27:10 AM EXEC /bin/sh -c 'chmod u+x /home/edv/.ansible/tmp/ansible-tmp-1709108830.4479487-226486-61773193046970/ /home/edv/.ansible/tmp/ansible-tmp-1709108830.4479487-226486-61773193046970/AnsiballZ_vmware_guest_powerstate.py && sleep 0' 9:27:10 AM EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=cwenqjivpufuxvrdldismchwfkxyoxno] password:" -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-cwenqjivpufuxvrdldismchwfkxyoxno ; /home/edv/.local/pipx/venvs/ansible/bin/python /home/edv/.ansible/tmp/ansible-tmp-1709108830.4479487-226486-61773193046970/AnsiballZ_vmware_guest_powerstate.py'"'"' && sleep 0'

Banane6077 avatar Feb 28 '24 08:02 Banane6077

@Banane6077 Have you checked what happens to the VM when you manually start the VM?

ihumster avatar Feb 28 '24 08:02 ihumster

Thank you for your suggestion! I'm gonna test this today evening and then i'm gonna post the result here... The Server is at the moment in use so i just wanna do a dry run..

Banane6077 avatar Feb 28 '24 08:02 Banane6077