SB5.1 - OCI - Deploy/Kubernetes/KeycloakRealm failing #322
-
Job: Deploy/Kubernetes/KeycloakRealm When executed the first time ..the job failed with the error ` STDOUT: running install Installed /usr/local/lib/python2.7/dist-packages/python_keycloak-0.12.0-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/requests-2.20.0-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/python_jose-1.4.0-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/httmock-1.2.5-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/urllib3-1.24.3-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/idna-2.7-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/chardet-3.0.4-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/certifi-2022.12.7-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/six-1.16.0-py2.7.egg STDERR: zip_safe flag not set; analyzing archive contents... File "build/bdist.linux-x86_64/egg/certifi/core.py", line 17 File "/usr/local/lib/python2.7/dist-packages/certifi-2022.12.7-py2.7.egg/certifi/core.py", line 17 src/_fastmath.c:31:10: fatal error: Python.h: No such file or directory MSG: non-zero return code |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
When try to re run ..it failed at the checks ` MSG: The conditional check '_result.status == 200' failed. The error was: error while evaluating conditional (_result.status == 200): 'dict object' has no attribute 'status' NO MORE HOSTS LEFT ************************************************************* PLAY RECAP ********************************************************************* ` |
Beta Was this translation helpful? Give feedback.
-
Followed the below on the dp host
After this it was able to go past the check. But everytime the job failed ..i have to delete the 3 python packages |
Beta Was this translation helpful? Give feedback.
-
For the error message
I tried with ` This now is giving a new error ` STDERR: Traceback (most recent call last): File "build/bdist.linux-x86_64/egg/keycloak/authorization/policy.py", line 18, in MSG: non-zero return code ` |
Beta Was this translation helpful? Give feedback.
-
could you please provide any pointers on how to take this further.. i am suspecting some compatibility issue with python2 On DP node ` root@dp:/tmp/keycloak# pip3 --version root@dp:/tmp/keycloak# pip3 list |
Beta Was this translation helpful? Give feedback.
-
The certifi version 2022.12.7 is the one which cause the problem. This library, in theory should be good with Python3 but it won't work with Python2 we, as a workaround, should manually remove it and install an old version
After this re executed the job. This time it completed. |
Beta Was this translation helpful? Give feedback.
The certifi version 2022.12.7 is the one which cause the problem.
This library, in theory should be good with Python3 but it won't work with Python2
we, as a workaround, should manually remove it and install an old version
ubuntu@dp:~$ sudo pip uninstall certifi The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Uninstalling certifi-2022.12.7: /usr/local/lib/python2.7/dist-packages/certifi-2022.12.7-py2.7.egg Proceed (y/n)? y Successfully uninstalled certifi-2022.12.7 ubuntu@dp:~$ sudo pip ins…