Can someone please advise, how to fix this issue while installing AWX in Openshift 3.9? I’m getting following error:
TASK [kubernetes : Determine StatefulSet api version] **********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:188
fatal: [localhost]: FAILED! => {
“failed”: true,
“msg”: “template error while templating string: no test named ‘version’. String: {{ ‘apps/v1’ if kube_api_version is version(‘1.9’, ‘>=’) else ‘apps/v1beta1’ }}”
}
to retry, use: --limit @/root/Tower/awx/installer/install.retry
PLAY RECAP *****************************************************************************************************************************************************************************************
localhost : ok=28 changed=8 unreachable=0 failed=1
[root@uswix532 installer]#
Here’s the complete playbook run log:
[root@uswix532 installer]# oc login -u ko95056
Authentication required for https://uswix532.openshift.kohlerco.com:8443 (openshift)
Username: ko95056
Password:
Login successful.
You have access to the following projects and can switch between them with ‘oc project ’:
- awx
default
kube-public
kube-service-catalog
kube-system
logging
management-infra
openshift
openshift-ansible-service-broker
openshift-infra
openshift-node
openshift-template-service-broker
openshift-web-console
test-project
weboperations
Using project “awx”.
[root@uswix532 installer]# ansible-playbook -i inventory install.yml -vvv
ansible-playbook 2.4.6.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.5 (default, Sep 12 2018, 05:31:16) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Using /etc/ansible/ansible.cfg as config file
Parsed /root/Tower/awx/installer/inventory inventory source with ini plugin
statically imported: /root/Tower/awx/installer/roles/local_docker/tasks/set_image.yml
statically imported: /root/Tower/awx/installer/roles/local_docker/tasks/compose.yml
PLAYBOOK: install.yml ******************************************************************************************************************************************************************************
1 plays in install.yml
PLAY [Build and deploy AWX] ************************************************************************************************************************************************************************
TASK [Gathering Facts] *****************************************************************************************************************************************************************************
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/setup.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718876.88-182481659685331
” && echo ansible-tmp-1581718876.88-182481659685331=“echo /root/.ansible/tmp/ansible-tmp-1581718876.88-182481659685331
” ) && sleep 0’
PUT /tmp/tmpyTYL05 TO /root/.ansible/tmp/ansible-tmp-1581718876.88-182481659685331/setup.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718876.88-182481659685331/ /root/.ansible/tmp/ansible-tmp-1581718876.88-182481659685331/setup.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718876.88-182481659685331/setup.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718876.88-182481659685331/” > /dev/null 2>&1 && sleep 0’
ok: [localhost]
META: ran handlers
TASK [check_vars : include_tasks] ******************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/main.yml:3
included: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml for localhost
TASK [check_vars : openshift_project should be defined] ********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml:3
ok: [localhost] => {
“changed”: false,
“failed”: false,
“msg”: “All assertions passed”
}
TASK [check_vars : openshift_user should be defined] ***********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml:9
ok: [localhost] => {
“changed”: false,
“failed”: false,
“msg”: “All assertions passed”
}
TASK [check_vars : openshift_password or openshift_token should be defined] ************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml:15
ok: [localhost] => {
“changed”: false,
“failed”: false,
“msg”: “All assertions passed”
}
TASK [check_vars : docker_registry should be defined if not using dockerhub] ***********************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml:22
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [check_vars : docker_registry_repository should be defined if not using dockerhub] ************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml:29
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [check_vars : docker_registry_username should be defined if not using dockerhub] **************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml:36
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [check_vars : docker_registry_password should be defined] *************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/check_openshift.yml:43
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [check_vars : include_tasks] ******************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/check_vars/tasks/main.yml:6
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Set global version if not provided] ********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:2
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Verify awx-logos directory exists for official install] ************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:7
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Copy logos for inclusion in sdist] *********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:15
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Set sdist file name] ***********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:22
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : AWX Distribution] **************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:26
skipping: [localhost] => {
“skip_reason”: “Conditional result was False”
}
TASK [image_build : Stat distribution file] ********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:30
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Clean distribution] ************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:36
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Build sdist builder image] *****************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:44
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Build AWX distribution using container] ****************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:61
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Build AWX distribution locally] ************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:76
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Set docker build base path] ****************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:83
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Set awx_web image name] ********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:87
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Set awx_task image name] *******************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:91
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Ensure directory exists] *******************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:95
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage sdist] *******************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:101
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Template web Dockerfile] *******************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:107
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Template task Dockerfile] ******************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:113
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage launch_awx] **************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:119
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage launch_awx_task] *********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:126
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage google-cloud-sdk.repo] ***************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:133
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage supervisor.conf] *********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:140
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage supervisor_task.conf] ****************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:146
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage settings.py] *************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:152
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage requirements] ************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:158
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage config watcher] **********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:164
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Stage Makefile] ****************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:170
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Build base web image] **********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:176
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Build base task image] *********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:192
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Tag task and web images as latest] *********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:208
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_build : Clean docker base directory] ***************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_build/tasks/main.yml:215
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_push : Authenticate with Docker registry if registry password given] *******************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_push/tasks/main.yml:2
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_push : Remove web image] ***************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_push/tasks/main.yml:13
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_push : Remove task image] **************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_push/tasks/main.yml:19
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_push : Tag and push web image to registry] *********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_push/tasks/main.yml:28
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_push : Tag and push task image to registry] ********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_push/tasks/main.yml:38
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [image_push : Set full image path for Registry] ***********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/image_push/tasks/main.yml:49
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : fail] ***************************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:2
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : include_tasks] ******************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:6
included: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml for localhost
included: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml for localhost
TASK [kubernetes : include_vars] *******************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:2
ok: [localhost] => {
“ansible_facts”: {
“openshift_oc_bin”: “oc --config={{ openshift_oc_config_file }}”,
“openshift_oc_config_file”: “{{ kubernetes_base_path }}/.kube/config”
},
“ansible_included_var_files”: [
“/root/Tower/awx/installer/roles/kubernetes/vars/openshift.yml”
],
“changed”: false,
“failed”: false
}
TASK [kubernetes : Set kubernetes_namespace] *******************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:4
ok: [localhost] => {
“ansible_facts”: {
“kubernetes_namespace”: “awx”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : Ensure workspace directories exist] *********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:8
Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718882.12-134370481458296
” && echo ansible-tmp-1581718882.12-134370481458296=“echo /root/.ansible/tmp/ansible-tmp-1581718882.12-134370481458296
” ) && sleep 0’
PUT /tmp/tmpx_XAqI TO /root/.ansible/tmp/ansible-tmp-1581718882.12-134370481458296/file.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718882.12-134370481458296/ /root/.ansible/tmp/ansible-tmp-1581718882.12-134370481458296/file.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718882.12-134370481458296/file.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718882.12-134370481458296/” > /dev/null 2>&1 && sleep 0’
ok: [localhost] => (item=/tmp/awx-config) => {
“changed”: false,
“diff”: {
“after”: {
“path”: “/tmp/awx-config”
},
“before”: {
“path”: “/tmp/awx-config”
}
},
“failed”: false,
“gid”: 0,
“group”: “root”,
“invocation”: {
“module_args”: {
“attributes”: null,
“backup”: null,
“content”: null,
“delimiter”: null,
“diff_peek”: null,
“directory_mode”: null,
“follow”: false,
“force”: false,
“group”: null,
“mode”: null,
“original_basename”: null,
“owner”: null,
“path”: “/tmp/awx-config”,
“recurse”: false,
“regexp”: null,
“remote_src”: null,
“selevel”: null,
“serole”: null,
“setype”: null,
“seuser”: null,
“src”: null,
“state”: “directory”,
“unsafe_writes”: null,
“validate”: null
}
},
“item”: “/tmp/awx-config”,
“mode”: “0755”,
“owner”: “root”,
“path”: “/tmp/awx-config”,
“secontext”: “unconfined_u:object_r:user_tmp_t:s0”,
“size”: 52,
“state”: “directory”,
“uid”: 0
}
Using module file /usr/lib/python2.7/site-packages/ansible/modules/files/file.py
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718882.49-69190091235923
” && echo ansible-tmp-1581718882.49-69190091235923=“echo /root/.ansible/tmp/ansible-tmp-1581718882.49-69190091235923
” ) && sleep 0’
PUT /tmp/tmpXIzZ9E TO /root/.ansible/tmp/ansible-tmp-1581718882.49-69190091235923/file.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718882.49-69190091235923/ /root/.ansible/tmp/ansible-tmp-1581718882.49-69190091235923/file.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718882.49-69190091235923/file.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718882.49-69190091235923/” > /dev/null 2>&1 && sleep 0’
ok: [localhost] => (item=/tmp/awx-config/.kube) => {
“changed”: false,
“diff”: {
“after”: {
“path”: “/tmp/awx-config/.kube”
},
“before”: {
“path”: “/tmp/awx-config/.kube”
}
},
“failed”: false,
“gid”: 0,
“group”: “root”,
“invocation”: {
“module_args”: {
“attributes”: null,
“backup”: null,
“content”: null,
“delimiter”: null,
“diff_peek”: null,
“directory_mode”: null,
“follow”: false,
“force”: false,
“group”: null,
“mode”: null,
“original_basename”: null,
“owner”: null,
“path”: “/tmp/awx-config/.kube”,
“recurse”: false,
“regexp”: null,
“remote_src”: null,
“selevel”: null,
“serole”: null,
“setype”: null,
“seuser”: null,
“src”: null,
“state”: “directory”,
“unsafe_writes”: null,
“validate”: null
}
},
“item”: “/tmp/awx-config/.kube”,
“mode”: “0755”,
“owner”: “root”,
“path”: “/tmp/awx-config/.kube”,
“secontext”: “unconfined_u:object_r:user_tmp_t:s0”,
“size”: 20,
“state”: “directory”,
“uid”: 0
}
TASK [kubernetes : Authenticate with OpenShift via user and password] ******************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:16
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718883.19-76594209580425
” && echo ansible-tmp-1581718883.19-76594209580425=“echo /root/.ansible/tmp/ansible-tmp-1581718883.19-76594209580425
” ) && sleep 0’
PUT /tmp/tmpR5wZm0 TO /root/.ansible/tmp/ansible-tmp-1581718883.19-76594209580425/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718883.19-76594209580425/ /root/.ansible/tmp/ansible-tmp-1581718883.19-76594209580425/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718883.19-76594209580425/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718883.19-76594209580425/” > /dev/null 2>&1 && sleep 0’
changed: [localhost] => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: true,
“failed”: false
}
TASK [kubernetes : OpenShift authentication failed on TLS verification] ****************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:30
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : OpenShift authentication failed] ************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:38
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Authenticate with OpenShift via token] ******************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:43
skipping: [localhost] => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false,
“skipped”: true
}
TASK [kubernetes : OpenShift authentication failed] ************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift_auth.yml:53
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Get Project Detail] *************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:2
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718884.34-57735203365483
” && echo ansible-tmp-1581718884.34-57735203365483=“echo /root/.ansible/tmp/ansible-tmp-1581718884.34-57735203365483
” ) && sleep 0’
PUT /tmp/tmp1MXr0T TO /root/.ansible/tmp/ansible-tmp-1581718884.34-57735203365483/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718884.34-57735203365483/ /root/.ansible/tmp/ansible-tmp-1581718884.34-57735203365483/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718884.34-57735203365483/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718884.34-57735203365483/” > /dev/null 2>&1 && sleep 0’
changed: [localhost] => {
“changed”: true,
“cmd”: “oc --config=/tmp/awx-config/.kube/config get project awx”,
“delta”: “0:00:00.656959”,
“end”: “2020-02-14 16:21:25.279968”,
“failed”: false,
“invocation”: {
“module_args”: {
“_raw_params”: “oc --config=/tmp/awx-config/.kube/config get project awx”,
“_uses_shell”: true,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“warn”: true
}
},
“rc”: 0,
“start”: “2020-02-14 16:21:24.623009”,
“stderr”: “”,
“stderr_lines”: ,
“stdout”: “NAME DISPLAY NAME STATUS\nawx awx Active”,
“stdout_lines”: [
“NAME DISPLAY NAME STATUS”,
“awx awx Active”
]
}
TASK [kubernetes : Create AWX Openshift Project] ***************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:7
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Check PVC status] ***************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:13
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718885.47-251749551486254
” && echo ansible-tmp-1581718885.47-251749551486254=“echo /root/.ansible/tmp/ansible-tmp-1581718885.47-251749551486254
” ) && sleep 0’
PUT /tmp/tmpETBMZi TO /root/.ansible/tmp/ansible-tmp-1581718885.47-251749551486254/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718885.47-251749551486254/ /root/.ansible/tmp/ansible-tmp-1581718885.47-251749551486254/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718885.47-251749551486254/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718885.47-251749551486254/” > /dev/null 2>&1 && sleep 0’
changed: [localhost] => {
“changed”: true,
“cmd”: [
“oc”,
“–config=/tmp/awx-config/.kube/config”,
“get”,
“pvc”,
“postgresql”,
“-n”,
“awx”,
“-o=jsonpath={.status.phase}”
],
“delta”: “0:00:00.459275”,
“end”: “2020-02-14 16:21:26.228438”,
“failed”: false,
“invocation”: {
“module_args”: {
“_raw_params”: “oc --config=/tmp/awx-config/.kube/config get pvc postgresql -n awx -o=jsonpath=‘{.status.phase}’”,
“_uses_shell”: false,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“warn”: true
}
},
“rc”: 0,
“start”: “2020-02-14 16:21:25.769163”,
“stderr”: “”,
“stderr_lines”: ,
“stdout”: “Bound”,
“stdout_lines”: [
“Bound”
]
}
TASK [kubernetes : Ensure PostgreSQL PVC is available] *********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:18
ok: [localhost] => {
“changed”: false,
“failed”: false,
“msg”: “All assertions passed”
}
TASK [kubernetes : Set postgresql service name] ****************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:27
ok: [localhost] => {
“ansible_facts”: {
“postgresql_service_name”: “postgresql”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : Add privileged SCC to service account] ******************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:32
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718886.53-46399552925070
” && echo ansible-tmp-1581718886.53-46399552925070=“echo /root/.ansible/tmp/ansible-tmp-1581718886.53-46399552925070
” ) && sleep 0’
PUT /tmp/tmp3e0JJi TO /root/.ansible/tmp/ansible-tmp-1581718886.53-46399552925070/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718886.53-46399552925070/ /root/.ansible/tmp/ansible-tmp-1581718886.53-46399552925070/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718886.53-46399552925070/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718886.53-46399552925070/” > /dev/null 2>&1 && sleep 0’
changed: [localhost] => {
“changed”: true,
“cmd”: “oc --config=/tmp/awx-config/.kube/config adm policy add-scc-to-user privileged system:serviceaccount:awx:awx”,
“delta”: “0:00:00.406888”,
“end”: “2020-02-14 16:21:27.205672”,
“failed”: false,
“invocation”: {
“module_args”: {
“_raw_params”: “oc --config=/tmp/awx-config/.kube/config adm policy add-scc-to-user privileged system:serviceaccount:awx:awx”,
“_uses_shell”: true,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“warn”: true
}
},
“rc”: 0,
“start”: “2020-02-14 16:21:26.798784”,
“stderr”: “”,
“stderr_lines”: ,
“stdout”: “scc "privileged" added to: ["system:serviceaccount:awx:awx"]”,
“stdout_lines”: [
“scc "privileged" added to: ["system:serviceaccount:awx:awx"]”
]
}
TASK [kubernetes : Get Kubernetes Config] **********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:39
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718887.32-187488443130631
” && echo ansible-tmp-1581718887.32-187488443130631=“echo /root/.ansible/tmp/ansible-tmp-1581718887.32-187488443130631
” ) && sleep 0’
PUT /tmp/tmpziaS46 TO /root/.ansible/tmp/ansible-tmp-1581718887.32-187488443130631/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718887.32-187488443130631/ /root/.ansible/tmp/ansible-tmp-1581718887.32-187488443130631/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718887.32-187488443130631/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718887.32-187488443130631/” > /dev/null 2>&1 && sleep 0’
changed: [localhost] => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: true,
“failed”: false
}
TASK [kubernetes : Convert kube config to dictionary] **********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:45
ok: [localhost] => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false,
“failed”: false
}
TASK [kubernetes : Extract current context from kube config] ***************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:50
ok: [localhost] => {
“ansible_facts”: {
“current_kube_context”: “default/10-20-36-15:8443/KO95056”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : Find cluster for current context] ***********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:54
ok: [localhost] => {
“ansible_facts”: {
“kube_cluster”: “10-20-36-15:8443\n”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : Find server for current context] ************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:61
ok: [localhost] => {
“ansible_facts”: {
“kube_server”: “https://10.20.36.15:8443\n”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : Get kube version from api server] ***********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:68
Using module file /usr/lib/python2.7/site-packages/ansible/modules/net_tools/basics/uri.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718888.65-87371958332782
” && echo ansible-tmp-1581718888.65-87371958332782=“echo /root/.ansible/tmp/ansible-tmp-1581718888.65-87371958332782
” ) && sleep 0’
PUT /tmp/tmpg24Rur TO /root/.ansible/tmp/ansible-tmp-1581718888.65-87371958332782/uri.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718888.65-87371958332782/ /root/.ansible/tmp/ansible-tmp-1581718888.65-87371958332782/uri.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718888.65-87371958332782/uri.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718888.65-87371958332782/” > /dev/null 2>&1 && sleep 0’
ok: [localhost] => {
“cache_control”: “no-store”,
“changed”: false,
“connection”: “close”,
“content_length”: “236”,
“content_type”: “application/json”,
“cookies”: {},
“date”: “Fri, 14 Feb 2020 22:21:29 GMT”,
“failed”: false,
“invocation”: {
“module_args”: {
“attributes”: null,
“backup”: null,
“body”: null,
“body_format”: “raw”,
“client_cert”: null,
“client_key”: null,
“content”: null,
“creates”: null,
“delimiter”: null,
“dest”: null,
“directory_mode”: null,
“follow”: false,
“follow_redirects”: “safe”,
“force”: false,
“force_basic_auth”: false,
“group”: null,
“headers”: {},
“http_agent”: “ansible-httpget”,
“method”: “GET”,
“mode”: null,
“owner”: null,
“regexp”: null,
“remote_src”: null,
“removes”: null,
“return_content”: false,
“selevel”: null,
“serole”: null,
“setype”: null,
“seuser”: null,
“src”: null,
“status_code”: [
200
],
“timeout”: 30,
“unsafe_writes”: null,
“url”: “https://10.20.36.15:8443/version”,
“url_password”: null,
“url_username”: null,
“use_proxy”: true,
“validate_certs”: false
}
},
“json”: {
“buildDate”: “2018-04-26T16:48:23Z”,
“compiler”: “gc”,
“gitCommit”: “a0ce1bc”,
“gitTreeState”: “clean”,
“gitVersion”: “v1.9.1+a0ce1bc657”,
“goVersion”: “go1.9.4”,
“major”: “”,
“minor”: “”,
“platform”: “linux/amd64”
},
“msg”: “OK (236 bytes)”,
“redirected”: false,
“status”: 200,
“url”: “https://10.20.36.15:8443/version”
}
TASK [kubernetes : Extract server version from command output] *************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/openshift.yml:74
ok: [localhost] => {
“ansible_facts”: {
“kube_api_version”: “1.9.1+a0ce1bc657”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : include_tasks] ******************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:14
skipping: [localhost] => (item=kubernetes_auth.yml) => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true,
“tasks”: “kubernetes_auth.yml”
}
skipping: [localhost] => (item=kubernetes_auth.yml) => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true,
“tasks”: “kubernetes.yml”
}
TASK [kubernetes : Use kubectl or oc] **************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:22
ok: [localhost] => {
“ansible_facts”: {
“kubectl_or_oc”: “oc --config=/tmp/awx-config/.kube/config”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : set_fact] ***********************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:26
ok: [localhost] => {
“ansible_facts”: {
“deployment_object”: “sts”
},
“changed”: false,
“failed”: false
}
TASK [kubernetes : Record deployment size] *********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:29
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718889.65-264521937409165
” && echo ansible-tmp-1581718889.65-264521937409165=“echo /root/.ansible/tmp/ansible-tmp-1581718889.65-264521937409165
” ) && sleep 0’
PUT /tmp/tmplvpbFz TO /root/.ansible/tmp/ansible-tmp-1581718889.65-264521937409165/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718889.65-264521937409165/ /root/.ansible/tmp/ansible-tmp-1581718889.65-264521937409165/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718889.65-264521937409165/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718889.65-264521937409165/” > /dev/null 2>&1 && sleep 0’
fatal: [localhost]: FAILED! => {
“changed”: true,
“cmd”: “oc --config=/tmp/awx-config/.kube/config get sts awx -n awx -o=jsonpath=‘{.status.replicas}’”,
“delta”: “0:00:00.440260”,
“end”: “2020-02-14 16:21:30.356646”,
“failed”: true,
“invocation”: {
“module_args”: {
“_raw_params”: “oc --config=/tmp/awx-config/.kube/config get sts awx -n awx -o=jsonpath=‘{.status.replicas}’”,
“_uses_shell”: true,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“warn”: true
}
},
“msg”: “non-zero return code”,
“rc”: 1,
“start”: “2020-02-14 16:21:29.916386”,
“stderr”: “Error from server (NotFound): statefulsets.apps "awx" not found”,
“stderr_lines”: [
“Error from server (NotFound): statefulsets.apps "awx" not found”
],
“stdout”: “”,
“stdout_lines”:
}
…ignoring
TASK [kubernetes : Set expected post-deployment Replicas value] ************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:37
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Delete existing Deployment] *****************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:42
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Get Postgres Service Detail] ****************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:48
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718890.61-265788313551713
” && echo ansible-tmp-1581718890.61-265788313551713=“echo /root/.ansible/tmp/ansible-tmp-1581718890.61-265788313551713
” ) && sleep 0’
PUT /tmp/tmpPf6t7V TO /root/.ansible/tmp/ansible-tmp-1581718890.61-265788313551713/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718890.61-265788313551713/ /root/.ansible/tmp/ansible-tmp-1581718890.61-265788313551713/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718890.61-265788313551713/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718890.61-265788313551713/” > /dev/null 2>&1 && sleep 0’
changed: [localhost] => {
“changed”: true,
“cmd”: “oc --config=/tmp/awx-config/.kube/config describe svc postgresql -n awx”,
“delta”: “0:00:00.473693”,
“end”: “2020-02-14 16:21:31.349804”,
“failed”: false,
“invocation”: {
“module_args”: {
“_raw_params”: “oc --config=/tmp/awx-config/.kube/config describe svc postgresql -n awx”,
“_uses_shell”: true,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“warn”: true
}
},
“rc”: 0,
“start”: “2020-02-14 16:21:30.876111”,
“stderr”: “”,
“stderr_lines”: ,
“stdout”: “Name: postgresql\nNamespace: awx\nLabels: app=postgresql-persistent\n template=postgresql-persistent-template\nAnnotations: openshift.io/generated-by=OpenShiftNewApp\n template.openshift.io/expose-uri=postgres://{.spec.clusterIP}:{.spec.ports[?(.name=="postgresql")].port}\nSelector: name=postgresql\nType: ClusterIP\nIP: 172.30.70.45\nPort: postgresql 5432/TCP\nTargetPort: 5432/TCP\nEndpoints: 10.129.0.25:5432\nSession Affinity: None\nEvents: ”,
“stdout_lines”: [
“Name: postgresql”,
“Namespace: awx”,
“Labels: app=postgresql-persistent”,
" template=postgresql-persistent-template",
“Annotations: openshift.io/generated-by=OpenShiftNewApp”,
" template.openshift.io/expose-uri=postgres://{.spec.clusterIP}:{.spec.ports[?(.name=="postgresql")].port}",
“Selector: name=postgresql”,
“Type: ClusterIP”,
“IP: 172.30.70.45”,
“Port: postgresql 5432/TCP”,
“TargetPort: 5432/TCP”,
“Endpoints: 10.129.0.25:5432”,
“Session Affinity: None”,
“Events: ”
]
}
TASK [kubernetes : Template PostgreSQL Deployment (OpenShift)] *************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:56
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Deploy and Activate Postgres (OpenShift)] ***************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:62
skipping: [localhost] => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false,
“skipped”: true
}
TASK [kubernetes : Template PostgreSQL Deployment (Kubernetes)] ************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:82
skipping: [localhost] => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false,
“skipped”: true
}
TASK [kubernetes : Deploy and Activate Postgres (Kubernetes)] **************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:87
skipping: [localhost] => {
“censored”: “the output has been hidden due to the fact that ‘no_log: true’ was specified for this result”,
“changed”: false,
“skipped”: true
}
TASK [kubernetes : Set postgresql hostname to helm package service (Kubernetes)] *******************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:103
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Wait for Postgres to activate] **************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:110
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Check if Postgres 9.6 is being used] ********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:117
Using module file /usr/lib/python2.7/site-packages/ansible/modules/commands/command.py
ESTABLISH LOCAL CONNECTION FOR USER: root
EXEC /bin/sh -c ‘echo ~ && sleep 0’
EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1581718891.88-173318889891726
” && echo ansible-tmp-1581718891.88-173318889891726=“echo /root/.ansible/tmp/ansible-tmp-1581718891.88-173318889891726
” ) && sleep 0’
PUT /tmp/tmprXdMhF TO /root/.ansible/tmp/ansible-tmp-1581718891.88-173318889891726/command.py
EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1581718891.88-173318889891726/ /root/.ansible/tmp/ansible-tmp-1581718891.88-173318889891726/command.py && sleep 0’
EXEC /bin/sh -c ‘/usr/bin/env python /root/.ansible/tmp/ansible-tmp-1581718891.88-173318889891726/command.py; rm -rf “/root/.ansible/tmp/ansible-tmp-1581718891.88-173318889891726/” > /dev/null 2>&1 && sleep 0’
changed: [localhost] => {
“changed”: true,
“cmd”: “POD=$(oc --config=/tmp/awx-config/.kube/config -n awx get pods -l=name=postgresql --field-selector status.phase=Running -o jsonpath="{.items[0].metadata.name}")\n oc exec $POD -n awx – bash -c "psql -tAc ‘select version()’"”,
“delta”: “0:00:00.973946”,
“end”: “2020-02-14 16:21:33.142991”,
“failed”: false,
“invocation”: {
“module_args”: {
“_raw_params”: “POD=$(oc --config=/tmp/awx-config/.kube/config -n awx get pods -l=name=postgresql --field-selector status.phase=Running -o jsonpath="{.items[0].metadata.name}")\n oc exec $POD -n awx – bash -c "psql -tAc ‘select version()’"”,
“_uses_shell”: true,
“chdir”: null,
“creates”: null,
“executable”: null,
“removes”: null,
“stdin”: null,
“warn”: true
}
},
“rc”: 0,
“start”: “2020-02-14 16:21:32.169045”,
“stderr”: “”,
“stderr_lines”: ,
“stdout”: “PostgreSQL 10.6 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit”,
“stdout_lines”: [
“PostgreSQL 10.6 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16), 64-bit”
]
}
TASK [kubernetes : Set new pg image] ***************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:125
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Wait for change to take affect] *************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:130
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Set env var for pg upgrade] *****************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:134
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Wait for change to take affect] *************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:138
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Set env var for new pg version] *************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:142
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Wait for Postgres to redeploy] **************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:146
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Wait for Postgres to finish upgrading] ******************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:150
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Unset upgrade env var] **********************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:160
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Wait for Postgres to redeploy] **************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:164
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Set task image name] ************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:173
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Set web image name] *************************************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:178
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Generate SSL certificates for RabbitMQ, if needed] ******************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:184
skipping: [localhost] => {
“changed”: false,
“skip_reason”: “Conditional result was False”,
“skipped”: true
}
TASK [kubernetes : Determine StatefulSet api version] **********************************************************************************************************************************************
task path: /root/Tower/awx/installer/roles/kubernetes/tasks/main.yml:188
fatal: [localhost]: FAILED! => {
“failed”: true,
“msg”: “template error while templating string: no test named ‘version’. String: {{ ‘apps/v1’ if kube_api_version is version(‘1.9’, ‘>=’) else ‘apps/v1beta1’ }}”
}
to retry, use: --limit @/root/Tower/awx/installer/install.retry
PLAY RECAP *****************************************************************************************************************************************************************************************
localhost : ok=28 changed=8 unreachable=0 failed=1
[root@uswix532 installer]#