Keycloak Realm Installation Failing #77
-
Hi Team, The Keycloak Realm deployment step Deploy/Kubernetes/KeycloakRealm is failing. The previous step, Deploy/Kubernetes/Keycloak was successful. System Details:
@gandham-santhosh and @keshavprasadms The complete Jenkins Log is as under: Started by user Admin Deployer
[Pipeline] stage
[Pipeline] stage
[WARNING]: * Failed to parse /var/lib/jenkins/workspace/Deploy/dev/Kubernetes/ [WARNING]: * Failed to parse /var/lib/jenkins/workspace/Deploy/dev/Kubernetes/ [WARNING]: Unable to parse /var/lib/jenkins/workspace/Deploy/dev/Kubernetes/Key [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that PLAY [keycloak] **************************************************************** [WARNING]: While constructing a mapping from /var/lib/jenkins/workspace/Deploy/ [WARNING]: While constructing a mapping from /var/lib/jenkins/workspace/Deploy/ TASK [Gathering Facts] ********************************************************* TASK [keycloak-deploy : start keycloak service] ******************************** MSG: starting keycloak RUNNING HANDLER [keycloak-deploy : start service] ****************************** STDOUT: /etc/init.d/keycloak already running. MSG: non-zero return code ...ignoring RUNNING HANDLER [keycloak-deploy : wait for keycloak to start] ***************** 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 ********************************************************************* [Pipeline] } [Pipeline] // ansiColor [Pipeline] // ansiColor [Pipeline] stage
[Pipeline] // ansiColor [Pipeline] stage
[Pipeline] // ansiColor |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Can you please post the output of below two commands from your jenkins VM
|
Beta Was this translation helpful? Give feedback.
-
@keshavprasadms . PFA the output below jenkins@jenkins: |
Beta Was this translation helpful? Give feedback.
-
Maybe the the ansible uri module has changed some values. We are checking for But I guess we might need to use Please modify the role and use |
Beta Was this translation helpful? Give feedback.
-
@keshavprasadms: Sure OS - Ubuntu 18.04 LTS As I mentioned earlier, it was because of easy_install which was installing certifi-2022.6.15-py2.7.egg due to which this failing. However this may be needed for the keycloak python bootstrap scripts to work. So I alternatively deleted, commented and ran the ansible playbook to finally install the keycloak realm. |
Beta Was this translation helpful? Give feedback.
@keshavprasadms: Sure
OS - Ubuntu 18.04 LTS
python version 2.7.17
No ansible is installed here
As I mentioned earlier, it was because of easy_install which was installing certifi-2022.6.15-py2.7.egg due to which this failing. However this may be needed for the keycloak python bootstrap scripts to work. So I alternatively deleted, commented and ran the ansible playbook to finally install the keycloak realm.