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

VPC Job Errors For CentOS6 #3778

Closed
steelhead31 opened this issue Oct 15, 2024 · 0 comments · Fixed by #3781
Closed

VPC Job Errors For CentOS6 #3778

steelhead31 opened this issue Oct 15, 2024 · 0 comments · Fixed by #3781

Comments

@steelhead31
Copy link
Contributor

Due to compatibility issues with ansible on the upgraded VPC host machine, the current version of ansible is only compatible with Python 2.7 at the earliest. For CentOS6, it only really supports python 2.6.6 ( for use with ansible ), python 2.7 is available, but ansible is not, due to requiring later system packages

The following error occurs when first running the playbook

00:09:24.710 
00:09:24.710 PLAY [Ansible Unix playbook] ***************************************************
00:09:24.710 
00:09:24.710 TASK [Gathering Facts] *********************************************************
00:09:28.562 fatal: [127.0.0.1]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Unable to negotiate with 127.0.0.1 port 2200: no matching host key type found. Their offer: ssh-rsa", "unreachable": true}
00:09:28.564 
00:09:28.565 PLAY RECAP *********************************************************************
00:09:28.653 127.0.0.1                  : ok=0    changed=0    unreachable=1    failed=0    skipped=0    rescued=0    ignored=0   
00:09:28.655 

If the connection is upgraded to run with the requisite SSH parameters ( similar to Solaris 10 ) and python is upgraded to 2.7, then the following error occurs..

00:08:46.176 TASK [Gathering Facts] *********************************************************
00:08:46.176 fatal: [127.0.0.1]: FAILED! => {"ansible_facts": {}, "changed": false, "failed_modules": {"ansible.legacy.setup": {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python"}, "failed": true, "msg": "ansible-core requires a minimum of Python2 version 2.7 or Python3 version 3.6. Current version: 2.6.6 (r266:84292, Jun 20 2019, 14:14:55) [GCC 4.4.7 20120313 (Red Hat 4.4.7-23)]"}}, "msg": "The following modules failed to execute: ansible.legacy.setup\n"}
00:08:46.309 

This error occurs as although python 2.7 is available, ansible is always dependent on python 2.6.6 libraries.

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

Successfully merging a pull request may close this issue.

2 participants