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

Ansible Automation Platform 2.4 doesn't finish a job using community.vmware.vmware_vm_info for Google Cloud VMware Engine #2121

Open
FerreiraEnzoA opened this issue Jul 26, 2024 · 0 comments

Comments

@FerreiraEnzoA
Copy link

SUMMARY

Ansible Automation Platform 2.4 doesn't finish a job using community.vmware.vmware_vm_info for Google Cloud VMware Engine. The same playbook runs successfully to other environments.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

vmware_vm_info.py

ANSIBLE VERSION
2.15.10
COLLECTION VERSION
4.5.0
CONFIGURATION
CONFIG_FILE() = /execution-environments/ansible.cfg
OS / ENVIRONMENT
STEPS TO REPRODUCE
    - name: GCP GCVE - VM info
      community.vmware.vmware_vm_info:
        hostname: "{{ gcve_vcenter_hostname }}"
        username: "{{ gcve_vcenter_username }}"
        password: "{{ gcve_vcenter_password }}"
        vm_name: "{{ inventory_hostname }}"
        validate_certs: no
      delegate_to: localhost
      register: vminfo
EXPECTED RESULTS

The job should output should show the virtual machine information from Google Cloud VMware Engine.

ACTUAL RESULTS
Including module_utils file ansible/module_utils/common/_collections_compat.py
Including module_utils file ansible/module_utils/compat/version.py
Including module_utils file ansible_collections/__init__.py
Including module_utils file ansible_collections/community/__init__.py
Including module_utils file ansible_collections/community/vmware/__init__.py
Including module_utils file ansible_collections/community/vmware/plugins/__init__.py
Including module_utils file ansible_collections/community/vmware/plugins/module_utils/__init__.py
Including module_utils file ansible_collections/community/vmware/plugins/module_utils/vmware_rest_client.py
Using module file /usr/share/ansible/collections/ansible_collections/community/vmware/plugins/modules/vmware_vm_info.py
<localhost> PUT /home/runner/.ansible/tmp/ansible-local-211ptegiln/tmptex7smiv TO /home/runner/.ansible/tmp/ansible-tmp-1721072024.4369576-67-180224882554860/AnsiballZ_vmware_vm_info.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/runner/.ansible/tmp/ansible-tmp-1721072024.4369576-67-180224882554860/ /home/runner/.ansible/tmp/ansible-tmp-1721072024.4369576-67-180224882554860/AnsiballZ_vmware_vm_info.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python3.9 /home/runner/.ansible/tmp/ansible-tmp-1721072024.4369576-67-180224882554860/AnsiballZ_vmware_vm_info.py && sleep 0'
DETAILS

The image doesn't have the "vSAN Management SDK for Python" (pyvsan), but it wasn't an issue to other environments.

[awx@host execution-environments]$ cat execution-environment.yml
---
version: 3

dependencies:
  galaxy:
    collections:
      - name: community.vmware
  python:
    - pyvmomi
    - git+https://github.com/vmware/vsphere-automation-sdk-python.git@v8.0.0.0
    - git+https://github.com/dk-rbrown/vsan-sdk-python.git@main
  system: []

options:
  package_manager_path: /usr/bin/microdnf

images:
  base_image:
    name: registry.redhat.io/ansible-automation-platform-24/ee-minimal-rhel8:latest

additional_build_files: []

additional_build_steps: {}
[awx@host execution-environments]$ podman run -it localhost/custom_ee_patching_vmware pip3 freeze > pip_output_vmware.txt
[awx@host execution-environments]$ cat pip_output_vmware.txt | grep -i vsan
[awx@host execution-environments]$ cat pip_output_vmware.txt
ansible-core==2.15.10
ansible-lint==6.14.3
ansible-runner==2.3.6
attrs==21.4.0
bcrypt==3.2.0
black==22.8.0
bracex==2.2.1
cachetools==5.4.0
cffi==1.15.0
chardet==3.0.4
click==8.1.3
commonmark==0.9.1
cryptography==38.0.4
decorator==5.1.1
docutils==0.16
filelock==3.8.0
future==0.18.3
google-api-core==2.19.1
google-auth==2.32.0
google-cloud-core==2.4.1
google-cloud-storage==2.18.0
google-crc32c==1.5.0
google-resumable-media==2.7.1
googleapis-common-protos==1.63.2
gssapi==1.8.2
idna==2.10
importlib-metadata==6.0.1
importlib-resources==5.0.7
Jinja2==3.1.3
jsonschema==4.16.0
lockfile==0.12.2
lxml==4.6.5
MarkupSafe==2.1.0
mypy-extensions==0.4.3
ncclient==0.6.10
nsx-policy-python-sdk @ file://localhost//tmp/pip-req-build-gbq6l1nu/lib/nsx-policy-python-sdk/nsx_policy_python_sdk-4.2.0-py2.py3-none-any.whl
nsx-python-sdk @ file://localhost//tmp/pip-req-build-gbq6l1nu/lib/nsx-python-sdk/nsx_python_sdk-4.2.0-py2.py3-none-any.whl
nsx-vmc-aws-integration-python-sdk @ file://localhost//tmp/pip-req-build-gbq6l1nu/lib/nsx-vmc-aws-integration-python-sdk/nsx_vmc_aws_integration_python_sdk-4.1.2.0.1-py2.py3-none-any.whl
nsx-vmc-policy-python-sdk @ file://localhost//tmp/pip-req-build-gbq6l1nu/lib/nsx-vmc-policy-python-sdk/nsx_vmc_policy_python_sdk-4.1.2.0.1-py2.py3-none-any.whl
ntlm-auth==1.5.0
packaging==21.3
paramiko==2.8.1
pathspec==0.11.2
pexpect==4.8.0
platformdirs==2.4.1
proto-plus==1.24.0
protobuf==5.27.2
ptyprocess==0.6.0
pyasn1==0.6.0
pyasn1-modules==0.4.0
pycparser==2.21
pygments==2.17.2
pykerberos==1.2.1
PyNaCl==1.4.0
pyOpenSSL==23.0.0
pyparsing==3.0.9
pypsrp==0.5.0
pyrsistent==0.18.1
PySocks==1.7.1
pyspnego==0.9.0
python-daemon==2.3.0
pyvmomi==8.0.3.0.1
pywinrm==0.4.1
PyYAML==5.4.1
requests==2.25.0
requests-credssp==2.0.0
requests-ntlm==1.1.0
resolvelib==0.5.4
rich==12.0.0
rsa==4.9
ruamel.yaml==0.17.21
ruamel.yaml.clib==0.2.6
six==1.16.0
subprocess-tee==0.4.1
toml==0.10.2
tomli==2.0.1
typing-extensions==4.7.1
urllib3==1.25.10
vmware-vapi-common-client==2.52.0
vmware-vapi-runtime==2.52.0
vmware-vcenter==8.0.3.0
vmwarecloud-aws @ file://localhost//tmp/pip-req-build-gbq6l1nu/lib/vmwarecloud-aws/vmwarecloud_aws-1.64.1-py2.py3-none-any.whl
vmwarecloud-draas @ file://localhost//tmp/pip-req-build-gbq6l1nu/lib/vmwarecloud-draas/vmwarecloud_draas-1.23.1-py2.py3-none-any.whl
vsphere-automation-sdk==1.87.0
wcmatch==8.3
xmltodict==0.12.0
yamllint==1.30.0
zipp==3.4.0
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