Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TASK [openshift_hosted : Create OpenShift router] ****************************************************************************************************************************************************************************************************************************************
- task path: /home/me/openshift/roles/openshift_hosted/tasks/router/router.yml:75
- Using module file /home/me/openshift/roles/lib_openshift/library/oc_adm_router.py
- <master-001.openshift.com> ESTABLISH SSH CONNECTION FOR USER: greg5320
- <master-001.openshift.com> SSH: EXEC sshpass -d11 ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o User=greg5320 -o ConnectTimeout=10 -o ControlPath=/home/me/.ansible/cp/ac6536581d master-001.openshift.com '/bin/sh -c '"'"'sudo -H -S -p "[sudo via ansible, key=eeqgiiydzkixmgivxjnywzyaytqgppls] password: " -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-eeqgiiydzkixmgivxjnywzyaytqgppls; /usr/bin/python'"'"'"'"'"'"'"'"' && sleep 0'"'"''
- <master-001.openshift.com> (0, '\n{"invocation": {"module_args": {"router_type": "haproxy-router", "cert_file": "/etc/origin/master/wildcard.apps.openshift.com.crt", "labels": null, "images": "openshift3/ose-${component}:${version}", "stats_port": 1936, "external_host_password": null, "namespace": "default", "state": "present", "external_host_insecure": false, "edits": [{"action": "put", "key": "spec.strategy.rollingParams.intervalSeconds", "value": 1}, {"action": "put", "key": "spec.strategy.rollingParams.updatePeriodSeconds", "value": 1}, {"action": "put", "key": "spec.strategy.activeDeadlineSeconds", "value": 21600}], "host_network": true, "external_host_username": null, "metrics_image": null, "external_host_vserver": null, "replicas": 2, "default_cert": null, "selector": "zone=default", "expose_metrics": false, "external_host": null, "latest_images": false, "name": "router1", "cacert_file": "/etc/origin/master/thawte-bundle.crt", "external_host_partition_path": null, "stats_user": null, "external_host_private_key": null, "kubeconfig": "/etc/origin/master/admin.kubeconfig", "service_account": "router", "debug": false, "stats_password": null, "key_file": "/etc/origin/master/wildcard.apps.openshift.com.key", "ports": ["80:80", "443:443"]}}, "state": "present", "changed": true, "results": {"returncode": 0, "results": [{"returncode": 0, "cmd": "/usr/local/bin/oc create -f /tmp/SecretfoH_gD -n default", "results": ""}, {"returncode": 0, "cmd": "/usr/local/bin/oc create -f /tmp/ClusterRoleBindings0b0qC -n default", "results": ""}, {"returncode": 0, "cmd": "/usr/local/bin/oc create -f /tmp/Servicec_GVez -n default", "results": ""}, {"returncode": 0, "cmd": "/usr/local/bin/oc create -f /tmp/DeploymentConfigHMK_yQ -n default", "results": ""}]}, "warnings": ["Module did not set no_log for stats_password", "Module did not set no_log for external_host_password"]}\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 13176\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ntput: No value for $TERM and no -T specified\ntput: No value for $TERM and no -T specified\ntput: No value for $TERM and no -T specified\ntput: No value for $TERM and no -T specified\ntput: No value for $TERM and no -T specified\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
- changed: [master-001.openshift.com] => (item={u'name': u'router1', u'certificate': {u'certfile': u'/certs/wildcard.apps.openshift.com.crt', u'keyfile': u'/certs/wildcard.apps.openshift.com.key', u'cafile': u'/certs/thawte-bundle.crt'}, u'replicas': 2, u'serviceaccount': u'router', u'namespace': u'default', u'selector': u'zone=default', u'edits': [], u'images': u'openshift3/ose-${component}:${version}', u'stats_port': 1936, u'ports': [u'80:80', u'443:443']}) => {
- "changed": true,
- "invocation": {
- "module_args": {
- "cacert_file": "/etc/origin/master/thawte-bundle.crt",
- "cert_file": "/etc/origin/master/wildcard.apps.openshift.com.crt",
- "debug": false,
- "default_cert": null,
- "edits": [
- {
- "action": "put",
- "key": "spec.strategy.rollingParams.intervalSeconds",
- "value": 1
- },
- {
- "action": "put",
- "key": "spec.strategy.rollingParams.updatePeriodSeconds",
- "value": 1
- },
- {
- "action": "put",
- "key": "spec.strategy.activeDeadlineSeconds",
- "value": 21600
- }
- ],
- "expose_metrics": false,
- "external_host": null,
- "external_host_insecure": false,
- "external_host_partition_path": null,
- "external_host_password": null,
- "external_host_private_key": null,
- "external_host_username": null,
- "external_host_vserver": null,
- "host_network": true,
- "images": "openshift3/ose-${component}:${version}",
- "key_file": "/etc/origin/master/wildcard.apps.openshift.com.key",
- "kubeconfig": "/etc/origin/master/admin.kubeconfig",
- "labels": null,
- "latest_images": false,
- "metrics_image": null,
- "name": "router1",
- "namespace": "default",
- "ports": [
- "80:80",
- "443:443"
- ],
- "replicas": 2,
- "router_type": "haproxy-router",
- "selector": "zone=default",
- "service_account": "router",
- "state": "present",
- "stats_password": null,
- "stats_port": 1936,
- "stats_user": null
- }
- },
- "item": {
- "certificate": {
- "cafile": "/certs/thawte-bundle.crt",
- "certfile": "/certs/wildcard.apps.openshift.com.crt",
- "keyfile": "/certs/wildcard.apps.openshift.com.key"
- },
- "edits": [],
- "images": "openshift3/ose-${component}:${version}",
- "name": "router1",
- "namespace": "default",
- "ports": [
- "80:80",
- "443:443"
- ],
- "replicas": 2,
- "selector": "zone=default",
- "serviceaccount": "router",
- "stats_port": 1936
- },
- "results": {
- "results": [
- {
- "cmd": "/usr/local/bin/oc create -f /tmp/SecretfoH_gD -n default",
- "results": "",
- "returncode": 0
- },
- {
- "cmd": "/usr/local/bin/oc create -f /tmp/ClusterRoleBindings0b0qC -n default",
- "results": "",
- "returncode": 0
- },
- {
- "cmd": "/usr/local/bin/oc create -f /tmp/Servicec_GVez -n default",
- "results": "",
- "returncode": 0
- },
- {
- "cmd": "/usr/local/bin/oc create -f /tmp/DeploymentConfigHMK_yQ -n default",
- "results": "",
- "returncode": 0
- }
- ],
- "returncode": 0
- },
- "state": "present",
- "warnings": [
- "Module did not set no_log for stats_password",
- "Module did not set no_log for external_host_password"
- ]
- }
- fatal: [master-001.openshift.com]: FAILED! => {
- "failed": true
- }
- MSG:
- the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: Unable to look up a name or access an attribute in template string ({{ ('/etc/origin/master/' ~ (item.certificate.cafile | basename)) if 'cafile' in item.certificate else omit }}).
- Make sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable
- The error appears to have been in '/home/me/openshift/roles/openshift_hosted/tasks/router/router.yml': line 75, column 3, but may
- be elsewhere in the file depending on the exact syntax problem.
- The offending line appears to be:
- - name: Create OpenShift router
- ^ here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement