ansible does not run bootstrap for keystone

Bug #1482214 reported by Vladislav Belogrudov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Critical
Sam Yaple

Bug Description

When running ansible playbook for keystone ansible ignores the run_once variable for bootstrap container (it runs on all controllers) and also other variables are not passed so that bootstrapping actually does not happen (no database tables created). Tried ol-source-keystone (centos-source-keystone link)

Revision history for this message
Vladislav Belogrudov (vlad-belogrudov) wrote :
Download full text (3.2 KiB)

I have added debug task with run_once to trace the problem.

[vlad@vb-t440 ansible]$ ansible-playbook -i ~/multinode.vlad -e @/etc/kolla/defaults.yml -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml ./site.yml --tags keystone

PLAY [keystone] ***************************************************************

GATHERING FACTS ***************************************************************
ok: [ndb02]
ok: [ndb01]

TASK: [keystone | Ensuring templates config directory exists] *****************
ok: [ndb01]
ok: [ndb02]

TASK: [keystone | Ensuring config directory exists] ***************************
ok: [ndb02]
ok: [ndb01]

TASK: [keystone | Copying over config(s)] *************************************
ok: [ndb02] => (item=['roles/keystone/templates/keystone.conf.j2', u'/usr/share/kolla/templates/keystone/keystone.conf_minimal'])
ok: [ndb01] => (item=['roles/keystone/templates/keystone.conf.j2', u'/usr/share/kolla/templates/keystone/keystone.conf_minimal'])
ok: [ndb02] => (item=['/etc/kolla/config/global.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_global'])
ok: [ndb01] => (item=['/etc/kolla/config/global.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_global'])
ok: [ndb02] => (item=['/etc/kolla/config/database.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_database'])
ok: [ndb01] => (item=['/etc/kolla/config/database.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_database'])
ok: [ndb02] => (item=['/etc/kolla/config/messaging.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_messaging'])
ok: [ndb01] => (item=['/etc/kolla/config/messaging.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_messaging'])
ok: [ndb02] => (item=['/etc/kolla/config/keystone.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_augment'])
ok: [ndb01] => (item=['/etc/kolla/config/keystone.conf', u'/usr/share/kolla/templates/keystone/keystone.conf_augment'])

TASK: [keystone | Merging the config files and saving to the final destination] ***
ok: [ndb02]
ok: [ndb01]

TASK: [keystone | Copying over config(s)] *************************************
ok: [ndb02]
ok: [ndb01]

TASK: [keystone | Creating database] ******************************************
changed: [ndb01]

TASK: [keystone | Creating database user and setting permissions] *************
changed: [ndb01]

TASK: [keystone | debug msg="starting bootstrap container"] *******************
ok: [ndb01] => {
    "msg": "starting bootstrap container"
}

TASK: [keystone | Starting container(s)] **************************************
changed: [ndb02]
changed: [ndb01]

TASK: [keystone | Starting container(s)] **********************************
skipping: [ndb02]
skipping: [ndb01]

TASK: [keystone | Waiting for bootstrap container to exit] ********************
changed: [ndb02]
changed: [ndb01]

TASK: [keystone | Starting container(s)] **************************************
ok: [ndb01]
ok: [ndb02]

TASK: [keystone | Starting PID container(s)] **********************************
skipping: [ndb01]
skipping: [ndb02]

PLAY RECAP ********************************************************************
ndb01 : ok=12 changed=4 ...

Read more...

Steven Dake (sdake)
Changed in kolla:
status: New → Triaged
importance: Undecided → Critical
milestone: none → liberty-3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/210041
Committed: https://git.openstack.org/cgit/stackforge/kolla/commit/?id=f2d575b9c68bc78f03d4fad299f3bcff2ac5f3e3
Submitter: Jenkins
Branch: master

commit f2d575b9c68bc78f03d4fad299f3bcff2ac5f3e3
Author: Sam Yaple <email address hidden>
Date: Thu Aug 6 14:03:08 2015 +0000

    Remove Ansible abstraction for Keystone

    Change-Id: I0daf8b78f39b919d2b88336322203f1d643fc54b
    Partial-Bug: #1482214
    Partially-Implements: blueprint remove-abstraction-ansible

Changed in kolla:
assignee: nobody → Sam Yaple (s8m)
Revision history for this message
Sam Yaple (s8m) wrote :

This should have closed except I used a Partial-Bug tag rather than Closes-Bug

Changed in kolla:
status: Triaged → Fix Committed
Sam Yaple (s8m)
Changed in kolla:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.