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

Import example doesn't work #3

Open
jpapejr opened this issue Oct 7, 2022 · 0 comments
Open

Import example doesn't work #3

jpapejr opened this issue Oct 7, 2022 · 0 comments

Comments

@jpapejr
Copy link

jpapejr commented Oct 7, 2022

 2022/10/07 20:24:52 �[1m-----  New Ansible Action  -----�[21m�[0m
 2022/10/07 20:24:52 Request: activitId=us-east.JOB.Import-Cloud-Schematics-to-Private-Catalog.2c746ce7, account=0b5a00334eaf9eb9339d2ab48f57fa87, [email protected], requestID=09a5713f-76bf-43ba-b8a1-aa4df24eceae
 2022/10/07 20:24:52 Related Job:  jobID=us-east.JOB.Import-Cloud-Schematics-to-Private-Catalog.2c746ce7
 2022/10/07 20:25:01  --- Ready to execute Ansible command --- 
 2022/10/07 20:25:01 �[1m-----  New Action  -----�[21m�[0m
 2022/10/07 20:25:01 Request: requestID=09a5713f-76bf-43ba-b8a1-aa4df24eceae
 2022/10/07 20:25:03 Related Activity: action=Run, ActionID=us-east.JOB.Import-Cloud-Schematics-to-Private-Catalog.2c746ce7, processedByOrchestrator=ID:"09a5713f-76bf-43ba-b8a1-aa4df24eceae_us-east.JOB.Import-Cloud-Schematics-to-Private-Catalog.2c746ce7", processedByJob=ansible-job-9cc48b5bd-lmsvf
 
 2022/10/07 20:25:08 �[1m-----  Ansible-playbook run  -----�[21m�[0m
 2022/10/07 20:25:08 Starting command: ansible-playbook main.yml --inventory hosts -e {"CATALOG_MANAGEMENT_APIKEY":"xxxhiddenxxx","CATALOG_NAME":"\"Test Catalog\"","GITHUB_TOKEN":"667e506cc7783b9b8dc77a7e4018365417d6e229","GIT_BASE_URL":"https://github.com/Cloud-Schematics","ansible_python_interpreter":"/usr/bin/python3"} --connection local
 2022/10/07 20:25:08 Generated hosts file:
 127.0.0.1
 2022/10/07 20:25:08 Default timeout: 3600 seconds
 2022/10/07 20:25:11 ansible-playbook run | 
 2022/10/07 20:25:11 ansible-playbook run | PLAY [simple checking] *********************************************************
 2022/10/07 20:25:11 ansible-playbook run | 
 2022/10/07 20:25:11 ansible-playbook run | TASK [Gathering Facts] *********************************************************
 2022/10/07 20:25:17 ansible-playbook run | ok: [127.0.0.1]
 2022/10/07 20:25:17 ansible-playbook run | 
 2022/10/07 20:25:17 ansible-playbook run | TASK [execute python script] ***************************************************
 2022/10/07 20:25:20 ansible-playbook run | fatal: [127.0.0.1]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Traceback (most recent call last):\n  File \"/home/appuser/.ansible/tmp/ansible-tmp-1665174317.7511272-50-172241335944020/catalog_automation.py\", line 4, in <module>\n    from github import Github\nModuleNotFoundError: No module named 'github'\n", "stderr_lines": ["Traceback (most recent call last):", "  File \"/home/appuser/.ansible/tmp/ansible-tmp-1665174317.7511272-50-172241335944020/catalog_automation.py\", line 4, in <module>", "    from github import Github", "ModuleNotFoundError: No module named 'github'"], "stdout": "", "stdout_lines": []}
 2022/10/07 20:25:20 ansible-playbook run | 
 2022/10/07 20:25:20 ansible-playbook run | PLAY RECAP *********************************************************************
 2022/10/07 20:25:20 ansible-playbook run | 127.0.0.1                  : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
 2022/10/07 20:25:20 ansible-playbook run | 
 2022/10/07 20:25:21 �[1m�[31mAnsible RUN error: Ansible RUN errorexit status 2�[39m�[0m
 2022/10/07 20:25:21 �[1m�[31mCould not execute action�[39m�[0m

Looks like the container running this no longer has the github lib installed in the python runtime...

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