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

[Feat][Customer Request] Develop Ansible module for NGT installation/upgrade for User VMs #210

Closed
5 of 6 tasks
varunbs opened this issue Jun 8, 2022 · 5 comments
Closed
5 of 6 tasks

Comments

@varunbs
Copy link

varunbs commented Jun 8, 2022

Requirements:

  • Customer has a requirement of Ansible playbook that will perform installation/upgrade of NGT for User VMs
  • The request is to develop a ansible playbook that will do a NGT lifecycle management for the user VMs

Todo:

  • Client SDK, get_spec()
  • Ansible spec & spec validator
  • Unit test, sanity test
  • Integration test
  • Documentation
  • Examples
@varunbs
Copy link
Author

varunbs commented Jun 8, 2022

Creating this request from Blue Yonder customer

@bhati-pradeep
Copy link
Collaborator

@bhati-pradeep bhati-pradeep added the unassigned Tickets to be assigned for any release label Oct 20, 2022
@bhati-pradeep bhati-pradeep removed their assignment Nov 15, 2022
@bhati-pradeep bhati-pradeep added triage Tickets for triage and removed unassigned Tickets to be assigned for any release labels Mar 3, 2023
@bhati-pradeep
Copy link
Collaborator

@bhati-pradeep bhati-pradeep added 2.0.0 and removed triage Tickets for triage labels Jan 9, 2025
@fabriceverkor
Copy link

I just installed 2.0.0 version and tried nutanix.ncp.ntnx_vms_ngt_v2 module to install NGT tools on a VM.
I get error message below
I says I'm missing ntnx_vmm_py_client python module ....
But I don't see in https://galaxy.ansible.com/ui/repo/published/nutanix/ncp/docs/ any related requirements
What am I missing ?

The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_nutanix.ncp.ntnx_vms_ngt_v2_payload_1r99t84c/ansible_nutanix.ncp.ntnx_vms_ngt_v2_payload.zip/ansible_collections/nutanix/ncp/plugins/modules/ntnx_vms_ngt_v2.py", line 184, in
ModuleNotFoundError: No module named 'ntnx_vmm_py_client'
fatal: [localhost]: FAILED! => {
"changed": false,
"invocation": {
"module_args": {
"capabilities": null,
"credential": null,
"ext_id": "7b4ece2e-e9d5-4cb3-884d-57f5ed9f6b64",
"nutanix_host": "prismcentral.inf.idz.vic.verkor.com",
"nutanix_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"nutanix_port": "9440",
"nutanix_username": "admin",
"reboot_preference": null,
"state": "present",
"validate_certs": false,
"wait": true
}
},
"msg": "Failed to import the required Python library (ntnx_vmm_py_client) on iac-dev's Python /usr/bin/python3. Please read the module documentation and install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter"
}

@bhati-pradeep
Copy link
Collaborator

bhati-pradeep commented Jan 31, 2025

Hi @fabriceverkor Can I know the process you followed to download the plugin ?
Can you check whats which python output and ansible --version output. Seems there is some python package download issue for correct python version. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on ansible_python_interpreter

For workaround you can pip install requirements.txt for now

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

No branches or pull requests

6 participants