Creating Neutron database run once causing future deployments to fail

Bug #1525759 reported by Ross Krumbeck
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
kolla
Triaged
High
Thiago Gomes

Bug Description

In the file:

ansible/roles/neutron/tasks/bootstrap.yml

name: Creating Neutron database is set to run_once. This is ok for the first deploy. But when trying to do a kolla-ansible deploy again there will be errors for the controller nodes:

fatal: [controller.example.com] => One or more undefined variables: 'dict object' has no attribute 'stdout'

This is because the task 'Reading json from variable' is relying on output from the 'Creating Neutron database' which does not exist after the first run due to the run_once in 'Creating Neutron database':

- name: Reading json from variable
  set_fact:
    database_created: "{{ (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed }}"

Ross Krumbeck (rkrum)
description: updated
description: updated
Revision history for this message
Steven Dake (sdake) wrote :

Ross,

Is this still a problem in master? I can't replicate it.

Changed in kolla:
status: New → Triaged
importance: Undecided → High
milestone: none → mitaka-3
Revision history for this message
Ross Krumbeck (rkrum) wrote :

This is a problem with Liberty release. It is actually caused by the ansible bug that doesn't use the correct servers when using run_once.

Revision history for this message
Thiago Gomes (fthiagogv) wrote :

I am using kolla in master version and this error continue.

Revision history for this message
Thiago Gomes (fthiagogv) wrote :
Thiago Gomes (fthiagogv)
Changed in kolla:
assignee: nobody → Thiago Gomes (fthiagogv)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (master)

Change abandoned by Thiago Gomes (<email address hidden>) on branch: master
Review: https://review.openstack.org/285408

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.