ansible-collections / cisco.nxos

Ansible Network Collection for Cisco NXOS
GNU General Public License v3.0
115 stars 110 forks source link

Unable to install the collection to offline environment #780

Closed tevehmas closed 8 months ago

tevehmas commented 9 months ago
SUMMARY

Unable to install the cisco.nxos collection to offline environment.

ISSUE TYPE
COMPONENT NAME

cisco.nxos

ANSIBLE VERSION
ansible [core 2.11.4]
OS / ENVIRONMENT

CentOS 8 (4.18.0-305.17.1.el8_4.x86_64)

STEPS TO REPRODUCE
  1. Download cisco-nxos-5.2.1.tar.gz package from Ansible Galaxy site
  2. Move the tar.gz file to offline Ansible Control machine
  3. Install cisco-nxos collection: ansible-galaxy collection install cisco-nxos-5.2.1.tar.gz
EXPECTED RESULTS

Ansible-Galaxy collection cisco.nxos installed succesfully.

ACTUAL RESULTS
Starting galaxy collection install process
Process install dependency map
ERROR! Unknown error when attempting to call Galaxy at 'https://galaxy.ansible.com/api/': <urlopen error [Errno -2] Name or service not known>
NilashishC commented 8 months ago

@tevehmas Do you have ansible.netcommon and ansible.utils installed in the air-gapped machine? The cisco.nxos collection requires these two, which is likely why ansible-galaxy fails trying to pull them from galaxy.ansible.com.

Please install the aforementioned collections first and then try installing cisco.nxos. If that doesn't solve this issue, please open a ticket in https://github.com/ansible/ansible since it would be a ansible-galaxy CLI client issue then. Thank you!