Open
Description
Ran into an issue with the apb test
command on this project. I was really just trying to make sure that the apb test
command functioned as it should from the apb tool's perspective. Logs from the apb pod below:
(apb) ➜ ansible-playbook-bundle git:(run-command) ✗ oc logs -n apb-test-mediawiki-apb apb-test-mediawiki-apbmszfw
+ [[ test --extra-vars {"namespace": "apb-test-mediawiki-apb"} == *\s\2\i\/\a\s\s\e\m\b\l\e* ]]
+ ACTION=test
+ shift
+ playbooks=/opt/apb/actions
+ CREDS=/var/tmp/bind-creds
+ TEST_RESULT=/var/tmp/test-result
+ whoami
+ '[' -w /etc/passwd ']'
++ id -u
+ echo 'apb:x:1000180000:0:apb user:/opt/apb:/sbin/nologin'
+ oc-login.sh
Attempting to login with a service account...
Logged into "https://kubernetes.default:443" as "system:serviceaccount:apb-test-mediawiki-apb:apb-test-mediawiki-apbjlh4r" using the token provided.
You have one project on this server: "apb-test-mediawiki-apb"
Using project "apb-test-mediawiki-apb".
Welcome! See 'oc help' to get started.
+ set +x
+ [[ -e /opt/apb/actions/test.yaml ]]
+ [[ -e /opt/apb/actions/test.yml ]]
+ ANSIBLE_ROLES_PATH=/etc/ansible/roles:/opt/ansible/roles
+ ansible-playbook /opt/apb/actions/test.yml --extra-vars '{"namespace": "apb-test-mediawiki-apb"}'
PLAY [test media wiki abp] *****************************************************
TASK [ansible.kubernetes-modules : Install latest openshift client] ************
skipping: [localhost]
TASK [Load default variables for testing] **************************************
ok: [localhost]
TASK [create project for namespace] ********************************************
ok: [localhost]
TASK [Run the provision role.] *************************************************
TASK [provision-mediawiki123-apb : create mediawiki123 route] ******************
changed: [localhost]
TASK [provision-mediawiki123-apb : create persistent volume claim] *************
changed: [localhost]
TASK [provision-mediawiki123-apb : create deployment config] *******************
changed: [localhost]
TASK [provision-mediawiki123-apb : create mediawiki123 service] ****************
changed: [localhost]
TASK [Run the verify role.] ****************************************************
TASK [verify-mediawiki123-apb : url check for media wiki] **********************
fatal: [localhost]: FAILED! => {"cache_control": "private, max-age=0, no-cache, no-store", "changed": false, "connection": "close", "content": "<html>\n <head>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n\n <style type=\"text/css\">\n /*!\n * Bootstrap v3.3.5 (http://getbootstrap.com)\n * Copyright 2011-2015 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n */\n /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */\n html {\n font-family: sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n }\n body {\n margin: 0;\n }\n h1 {\n font-size: 1.7em;\n font-weight: 400;\n line-height: 1.3;\n margin: 0.68em 0;\n }\n * {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n *:before,\n *:after {\n -webkit-box-sizing: border-box;\n -moz-box-sizing: border-box;\n box-sizing: border-box;\n }\n html {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n }\n body {\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n line-height: 1.66666667;\n font-size: 13px;\n color: #333333;\n background-color: #ffffff;\n margin: 2em 1em;\n }\n p {\n margin: 0 0 10px;\n font-size: 13px;\n }\n .alert.alert-info {\n padding: 15px;\n margin-bottom: 20px;\n border: 1px solid transparent;\n background-color: #f5f5f5;\n border-color: #8b8d8f;\n color: #363636;\n margin-top: 30px;\n }\n .alert p {\n padding-left: 35px;\n }\n a {\n color: #0088ce;\n }\n\n ul {\n position: relative;\n padding-left: 51px;\n }\n p.info {\n position: relative;\n font-size: 15px;\n margin-bottom: 10px;\n }\n p.info:before, p.info:after {\n content: \"\";\n position: absolute;\n top: 9%;\n left: 0;\n }\n p.info:before {\n content: \"i\";\n left: 3px;\n width: 20px;\n height: 20px;\n font-family: serif;\n font-size: 15px;\n font-weight: bold;\n line-height: 21px;\n text-align: center;\n color: #fff;\n background: #4d5258;\n border-radius: 16px;\n }\n\n @media (min-width: 768px) {\n body {\n margin: 4em 3em;\n }\n h1 {\n font-size: 2.15em;}\n }\n\n </style>\n </head>\n <body>\n <div>\n <h1>Application is not available</h1>\n <p>The application is currently not serving requests at this endpoint. It may not have been started or is still starting.</p>\n\n <div class=\"alert alert-info\">\n <p class=\"info\">\n Possible reasons you are seeing this page:\n </p>\n <ul>\n <li>\n <strong>The host doesn't exist.</strong>\n Make sure the hostname was typed correctly and that a route matching this hostname exists.\n </li>\n <li>\n <strong>The host exists, but doesn't have a matching path.</strong>\n Check if the URL path was typed correctly and that the route was created using the desired path.\n </li>\n <li>\n <strong>Route and path matches, but all pods are down.</strong>\n Make sure that the resources exposed by this route (pods, services, deployment configs, etc) have at least one pod running.\n </li>\n </ul>\n </div>\n </div>\n </body>\n</html>\n", "content_type": "text/html", "failed_when_result": true, "msg": "Status code was not [200]: HTTP Error 503: Service Unavailable", "pragma": "no-cache", "redirected": false, "status": 503, "url": "http://mediawiki123-apb-test-mediawiki-apb.172.17.0.1.nip.io"}
to retry, use: --limit @/opt/apb/actions/test.retry
PLAY RECAP *********************************************************************
localhost : ok=6 changed=4 unreachable=0 failed=1
+ EXIT_CODE=2
+ set +ex
+ '[' -f /var/tmp/test-result ']'
+ exit 2
Metadata
Metadata
Assignees
Labels
No labels