Bug 1037681

Summary: Packstack doesn't stamp quantum database
Product: Red Hat OpenStack Reporter: Jakub Libosvar <jlibosva>
Component: openstack-packstackAssignee: RHOS Maint <rhos-maint>
Status: CLOSED WONTFIX QA Contact: Nir Magnezi <nmagnezi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.0CC: aortega, derekh, hateya, lars, lpeer, yeylon
Target Milestone: asyncKeywords: ZStream
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1037675 Environment:
Last Closed: 2013-12-03 18:44:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1037675    
Bug Blocks: 1031801    

Description Jakub Libosvar 2013-12-03 15:21:14 UTC
+++ This bug was initially created as a clone of Bug #1037675 +++

Description of problem:
For db migrations in quantum is mandatory to have current stamp stored in alembic_version table. There is a tool quantum-db-manage which is capable of migrations and after each migration it stamps current version.

'quantum-db-manage upgrade head' is probably a good way to create database for quantum with correct stamp.

Version-Release number of selected component (if applicable):
openstack-packstack-2013.1.1-0.37.dev705.el6ost.noarch.rpm    

How reproducible:
Always

Steps to Reproduce:
1. Install quantum using packstack
2. quantum-db-manage --config-file /etc/quantum/quantum.conf --config-file /etc/quantum/plugin.ini current
3.

Actual results:
None

Expected results:
grizzly

Additional info:
This blocks migration between neutron versions.

Comment 1 lpeer 2013-12-03 18:44:10 UTC
Although could be useful if we'll have the data base stamped in the upgrade process then we can skip adding this code to z-stream at this point.

If we'll find another reason to stamp the data base we'll reopen this bug.

Comment 2 Lars Kellogg-Stedman 2013-12-06 03:55:19 UTC
Note that the neutron packages take care of this via %pretrans and %posttrans scriptlets when upgrading from grizzly.