Advertisement
Guest User

Untitled

a guest
Oct 31st, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.52 KB | None | 0 0
  1. TASK [openshift_hosted : Create OpenShift router] ****************************************************************************************************************************************************************************************************************************************
  2. task path: /home/me/openshift/roles/openshift_hosted/tasks/router/router.yml:75
  3. Using module file /home/me/openshift/roles/lib_openshift/library/oc_adm_router.py
  4. <master-001.openshift.com> ESTABLISH SSH CONNECTION FOR USER: greg5320
  5. <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'"'"''
  6. <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')
  7. 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']}) => {
  8. "changed": true,
  9. "invocation": {
  10. "module_args": {
  11. "cacert_file": "/etc/origin/master/thawte-bundle.crt",
  12. "cert_file": "/etc/origin/master/wildcard.apps.openshift.com.crt",
  13. "debug": false,
  14. "default_cert": null,
  15. "edits": [
  16. {
  17. "action": "put",
  18. "key": "spec.strategy.rollingParams.intervalSeconds",
  19. "value": 1
  20. },
  21. {
  22. "action": "put",
  23. "key": "spec.strategy.rollingParams.updatePeriodSeconds",
  24. "value": 1
  25. },
  26. {
  27. "action": "put",
  28. "key": "spec.strategy.activeDeadlineSeconds",
  29. "value": 21600
  30. }
  31. ],
  32. "expose_metrics": false,
  33. "external_host": null,
  34. "external_host_insecure": false,
  35. "external_host_partition_path": null,
  36. "external_host_password": null,
  37. "external_host_private_key": null,
  38. "external_host_username": null,
  39. "external_host_vserver": null,
  40. "host_network": true,
  41. "images": "openshift3/ose-${component}:${version}",
  42. "key_file": "/etc/origin/master/wildcard.apps.openshift.com.key",
  43. "kubeconfig": "/etc/origin/master/admin.kubeconfig",
  44. "labels": null,
  45. "latest_images": false,
  46. "metrics_image": null,
  47. "name": "router1",
  48. "namespace": "default",
  49. "ports": [
  50. "80:80",
  51. "443:443"
  52. ],
  53. "replicas": 2,
  54. "router_type": "haproxy-router",
  55. "selector": "zone=default",
  56. "service_account": "router",
  57. "state": "present",
  58. "stats_password": null,
  59. "stats_port": 1936,
  60. "stats_user": null
  61. }
  62. },
  63. "item": {
  64. "certificate": {
  65. "cafile": "/certs/thawte-bundle.crt",
  66. "certfile": "/certs/wildcard.apps.openshift.com.crt",
  67. "keyfile": "/certs/wildcard.apps.openshift.com.key"
  68. },
  69. "edits": [],
  70. "images": "openshift3/ose-${component}:${version}",
  71. "name": "router1",
  72. "namespace": "default",
  73. "ports": [
  74. "80:80",
  75. "443:443"
  76. ],
  77. "replicas": 2,
  78. "selector": "zone=default",
  79. "serviceaccount": "router",
  80. "stats_port": 1936
  81. },
  82. "results": {
  83. "results": [
  84. {
  85. "cmd": "/usr/local/bin/oc create -f /tmp/SecretfoH_gD -n default",
  86. "results": "",
  87. "returncode": 0
  88. },
  89. {
  90. "cmd": "/usr/local/bin/oc create -f /tmp/ClusterRoleBindings0b0qC -n default",
  91. "results": "",
  92. "returncode": 0
  93. },
  94. {
  95. "cmd": "/usr/local/bin/oc create -f /tmp/Servicec_GVez -n default",
  96. "results": "",
  97. "returncode": 0
  98. },
  99. {
  100. "cmd": "/usr/local/bin/oc create -f /tmp/DeploymentConfigHMK_yQ -n default",
  101. "results": "",
  102. "returncode": 0
  103. }
  104. ],
  105. "returncode": 0
  106. },
  107. "state": "present",
  108. "warnings": [
  109. "Module did not set no_log for stats_password",
  110. "Module did not set no_log for external_host_password"
  111. ]
  112. }
  113. fatal: [master-001.openshift.com]: FAILED! => {
  114. "failed": true
  115. }
  116.  
  117. MSG:
  118.  
  119. 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 }}).
  120. Make sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable
  121.  
  122. The error appears to have been in '/home/me/openshift/roles/openshift_hosted/tasks/router/router.yml': line 75, column 3, but may
  123. be elsewhere in the file depending on the exact syntax problem.
  124.  
  125. The offending line appears to be:
  126.  
  127.  
  128. - name: Create OpenShift router
  129. ^ here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement