Skip to content

Instantly share code, notes, and snippets.

@danehans

danehans/diff Secret

Last active April 21, 2016 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danehans/31cbc870248aeaa2d7b7be7a672361d3 to your computer and use it in GitHub Desktop.
Save danehans/31cbc870248aeaa2d7b7be7a672361d3 to your computer and use it in GitHub Desktop.
kolla_deploy_fails
root@k03-13:~/kolla# git diff -w
diff --git a/ansible/roles/keystone/tasks/register.yml b/ansible/roles/keystone/tasks/register.yml
index 27bee95..0887590 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
+ command: docker exec keystone kolla_keystone_bootstrap {{ openstack_auth.username }} {{ openstack_auth.password }} {{ openstack_auth.project_name }}
register: keystone_bootstrap
changed_when: "{{ (keystone_bootstrap.stdout | from_json).changed }}"
failed_when: "{{ (keystone_bootstrap.stdout | from_json).failed }}"
root@k03-13:~/kolla# ansible-playbook -i ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e action=deploy ansible/site.yml^C
root@k03-13:~/kolla# mount --make-shared /run
root@k03-13:~/kolla# mount --make-shared /run
root@k03-13:~/kolla# git diff -w
diff --git a/ansible/roles/keystone/tasks/register.yml b/ansible/roles/keystone/tasks/register.yml
index 27bee95..0887590 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
+ command: docker exec keystone kolla_keystone_bootstrap {{ openstack_auth.username }} {{ openstack_auth.password }} {{ openstack_auth.project_name }}
register: keystone_bootstrap
changed_when: "{{ (keystone_bootstrap.stdout | from_json).changed }}"
failed_when: "{{ (keystone_bootstrap.stdout | from_json).failed }}"
ansible-playbook -i ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e action=deploy ansible/site.yml
...
TASK: [neutron | Starting neutron-dhcp-agent container] ***********************
failed: [localhost] => {"changed": true, "failed": true}
msg: APIError(HTTPError(u'500 Server Error: Internal Server Error for url: http+docker://localunixsocket/v1.22/containers/neutron_dhcp_agent/start',),)
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/site.retry
localhost : ok=198 changed=0 unreachable=0 failed=1
# grep /run /proc/self/mountinfo
23 24 0:19 / /run rw,nosuid,noexec,relatime shared:1 - tmpfs tmpfs rw,size=3292244k,mode=755
31 23 0:22 / /run/lock rw,nosuid,nodev,noexec,relatime - tmpfs none rw,size=5120k
32 23 0:23 / /run/shm rw,nosuid,nodev,relatime - tmpfs none rw
33 23 0:24 / /run/user rw,nosuid,nodev,noexec,relatime - tmpfs none rw,size=102400k,mode=755
82 23 0:3 / /run/docker/netns/2f6ec492a46b rw - nsfs nsfs rw
59 23 0:3 / /run/docker/netns/default rw - nsfs nsfs rw
# Workaround from https://github.com/docker/docker/issues/19625
#
$ mkdir /foo
$ mount -o bind /foo /foo
$ mount --make-shared /foo
$ docker run -v /foo:/foo:rshared busybox sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment