map_cell0 doesn't actually run during nova upgrade

Bug #1670742 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grenade
Fix Released
Undecided
Matt Riedemann

Bug Description

Seen here:

http://logs.openstack.org/52/440652/2/check/gate-grenade-dsvm-neutron-ubuntu-xenial/74bea3f/logs/grenade.sh.txt.gz#_2017-03-02_20_38_14_429

2017-03-02 20:38:14.429 | + /opt/stack/new/grenade/projects/60_nova/upgrade.sh:main:79 : /usr/local/bin/nova-manage cell_v2 map_cell0 --database_connection
2017-03-02 20:38:16.615 | usage: nova-manage cell_v2 map_cell0 [-h]
2017-03-02 20:38:16.615 | [--database_connection <database_connection>]
2017-03-02 20:38:16.615 | nova-manage cell_v2 map_cell0: error: argument --database_connection: expected one argument

That's because we don't source lib/database from devstack first.

Matt Riedemann (mriedem)
Changed in grenade:
assignee: nobody → Matt Riedemann (mriedem)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to grenade (master)

Fix proposed to branch: master
Review: https://review.openstack.org/442599

Changed in grenade:
status: New → In Progress
Matt Riedemann (mriedem)
tags: added: ocata-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to grenade (master)

Reviewed: https://review.openstack.org/442599
Committed: https://git.openstack.org/cgit/openstack-dev/grenade/commit/?id=7c27948bb7c30f6c08695b65d2262211d1546aad
Submitter: Jenkins
Branch: master

commit 7c27948bb7c30f6c08695b65d2262211d1546aad
Author: Matt Riedemann <email address hidden>
Date: Tue Mar 7 11:15:15 2017 -0500

    Source lib/database when upgrading nova

    The "database_connection_url" function comes from
    lib/database in devstack. We need to source that before
    trying to call the function when upgrading nova.

    This wasn't caught because of the "|| true" on the map_cell0
    call. That can be removed because this nova change fixed it:

    aa7b6ebbb254f00fcb548832941ca9dbd3996d9f

    Change-Id: Iaa9340feb86df9a942642537474f0a433d8768b7
    Closes-Bug: #1670742

Changed in grenade:
status: In Progress → 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.