aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Bourke <paul.bourke@oracle.com>2016-04-19 15:59:51 +0100
committerPaul Bourke <paul.bourke@oracle.com>2016-04-19 15:59:51 +0100
commite2452906f3389e0ae2fa704ee4ce431e1c9f832b (patch)
treec4757b3d2a3506ed9e0c7fe4d9167f8f93317453
parentb391bc78e717c4922ab7dbb60de5fc912e63f8f5 (diff)
downloadkolla-e2452906f3389e0ae2fa704ee4ce431e1c9f832b.tar.gz
kolla-e2452906f3389e0ae2fa704ee4ce431e1c9f832b.zip
Disable tty for keystone register script
There seems to be a bug regarding the interaction between the Red Hat based images and docker exec, where output is missed when attaching a tty. This can be replicated using the following: $ docker run -d --name test centos /bin/sleep infinity $ docker exec -t test echo hi Repeat the second command over and over, "hi" will only be printed out every couple of runs. This affects the keystone register task as sometimes it will not print it's final json result to stdout, causing ansible to fall over with a difficult to diagnose error (despite the register having run successfully). Disabling the tty fixes this for me, it should not be needed in this case regardless. Change-Id: Ie7eb7c01c34ee3c59bd843651195fbcb7259d2c8 Closes-Bug: #1572082
-rw-r--r--ansible/roles/keystone/tasks/register.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/keystone/tasks/register.yml b/ansible/roles/keystone/tasks/register.yml
index 27bee9596..08875907d 100644
--- a/ansible/roles/keystone/tasks/register.yml
+++ b/ansible/roles/keystone/tasks/register.yml
@@ -1,6 +1,6 @@
---
- name: Creating admin project, user, role, service, and endpoint
- command: docker exec -t keystone kolla_keystone_bootstrap {{ openstack_auth.username }} {{ openstack_auth.password }} {{ openstack_auth.project_name }} admin {{ keystone_admin_url }} {{ keystone_internal_url }} {{ keystone_public_url }} {{ openstack_region_name }}
+ command: docker exec keystone kolla_keystone_bootstrap {{ openstack_auth.username }} {{ openstack_auth.password }} {{ openstack_auth.project_name }} admin {{ keystone_admin_url }} {{ keystone_internal_url }} {{ keystone_public_url }} {{ openstack_region_name }}
register: keystone_bootstrap
changed_when: "{{ (keystone_bootstrap.stdout | from_json).changed }}"
failed_when: "{{ (keystone_bootstrap.stdout | from_json).failed }}"