TASK [docker/ecr : Fix pip3 cryptography issue] ***********************************************************************************************************************************************************
task path: /tmp/aurora/ansible/roles/docker/ecr/tasks/main.yml:146
fatal: [10.9.11.2]: FAILED! => {"msg": "The conditional check 'ansible_failed_result.module_stderr | regex_search(\"module 'lib' has no attribute 'X509_V_FLAG_.*\")' failed. The error was: error while evaluating conditional (ansible_failed_result.module_stderr | regex_search(\"module 'lib' has no attribute 'X509_V_FLAG_.*\")): 'dict object' has no attribute 'module_stderr'\n\nThe error appears to be in '/tmp/aurora/ansible/roles/docker/ecr/tasks/main.yml': line 146, column 13, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n # And we do it with a raw command because the apt module doesn't work because it tries to use the openssl library from the host.\n - name: Fix pip3 cryptography issue\n ^ here\n"}
There is a similar chunk of ansible in aurora/ansible/playbooks/install_python3.yml that does something similar but works.
Not been able to reproduce this error in this role but it does show up occasionally. Maybe this will stop that happening?
Checklist
Before posting a PR ensure that from each of the below categories AT LEAST ONE BOX HAS BEEN CHECKED. If more than one category is applicable then more can be checked. Also ensure that the proposed changes have been filled out with relevant information for reviewers.
Tests
[ ] No tests required to be added. (For small changes that will be tested by CI/CD infrastructure).
[ ] Added/Modified automated and PhantomHand CI tests (if a new class is added (Python or C++), the interface of that class must be unit tested).
[ ] Manually tested in simulation (if simulation specific or no hardware required to test the functionality).
[ ] Manually tested on hardware (if hardware specific or related).
Documentation
[ ] No documentation required to be added.
[ ] Added documentation (For any new feature, explain what it does and how to use it. Write the documentation in a relevant space, e.g. Github, Confluence, etc).
[ ] Updated documentation (For changes to pre-existing features mentioned in the documentation).
Proposed changes
Can't replicate this error
There is a similar chunk of ansible in aurora/ansible/playbooks/install_python3.yml that does something similar but works. Not been able to reproduce this error in this role but it does show up occasionally. Maybe this will stop that happening?
Checklist
Before posting a PR ensure that from each of the below categories AT LEAST ONE BOX HAS BEEN CHECKED. If more than one category is applicable then more can be checked. Also ensure that the proposed changes have been filled out with relevant information for reviewers.
Tests
Documentation