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

Task ist running forever! #2013

Open
Banane6077 opened this issue Feb 28, 2024 · 2 comments
Open

Task ist running forever! #2013

Banane6077 opened this issue Feb 28, 2024 · 2 comments

Comments

@Banane6077
Copy link

Banane6077 commented Feb 28, 2024

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: "Administrator@vs.local"
    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'

@ihumster
Copy link
Collaborator

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

@Banane6077
Copy link
Author

Banane6077 commented Feb 28, 2024

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..

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

2 participants