Bug 1271215 - Migration scripts are not included in rpm package if egg_info is re-built from tarball
Summary: Migration scripts are not included in rpm package if egg_info is re-built fro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-neutron
Version: 7.0 (Kilo)
Hardware: x86_64
OS: Linux
urgent
urgent
Target Milestone: z3
: 7.0 (Kilo)
Assignee: Jakub Libosvar
QA Contact: Toni Freger
URL:
Whiteboard:
Depends On:
Blocks: 1270222 1271222
TreeView+ depends on / blocked
 
Reported: 2015-10-13 11:53 UTC by Jakub Libosvar
Modified: 2023-02-22 23:02 UTC (History)
9 users (show)

Fixed In Version: openstack-neutron-2015.1.1-12.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1271222 (view as bug list)
Environment:
Last Closed: 2015-12-21 16:59:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1505628 0 None None None Never
OpenStack gerrit 234152 0 None None None Never
Red Hat Product Errata RHBA-2015:2652 0 normal SHIPPED_LIVE openstack-neutron bug fix advisory 2015-12-21 21:50:47 UTC

Description Jakub Libosvar 2015-10-13 11:53:26 UTC
Description of problem:
distutils contains only python files https://docs.python.org/2/distutils/sourcedist.html#manifest

neutron/db/migration/alembic_migrations/versions directory and its subdirectories don't have __init__.py because it's not an actual python package. When using "python setup.py egg_info", the SOURCE.txt file is generated by pbr based on git data. If package is built from e.g. tarball then pbr doesn't have access to git data and the whole versions directory is not packaged.

Version-Release number of selected component (if applicable):
openstack-neutron-2015.1.1-9.el7ost

How reproducible:
100%

Steps to Reproduce:
1. Install neutron rpm packages
2. Prepare database and fill connection string to neutron.conf
3. Run neutron-db-manage --config-file /etc/neutron/neutron.conf upgrade head


Actual results:
command fails due to missing versions in neutron package

Expected results:
DB is popupaleted 

Additional info:

Comment 3 Alexander Chuzhoy 2015-10-13 18:00:44 UTC
comment #2

Comment 12 Toni Freger 2015-11-16 09:13:57 UTC
Steps to reproduce:

  1) Create a db schema in OSP6
  2) Migrate OSP6 to OSP7 latest puddle without any issue

Comment 13 Toni Freger 2015-11-25 11:51:00 UTC
Verification steps performed on AIO via following tutorial - https://access.redhat.com/articles/1317243

From osp6 -openstack-neutron-2014.2.3-24.el7ost.src.rpm
To osp7 -openstack-neutron-2015.1.2-2.el7ost.noarch

Upgrade with one VM internal and external connectivity tested before and after upgrade. 
No issues were found

Comment 16 errata-xmlrpc 2015-12-21 16:59:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2015:2652


Note You need to log in before you can comment on or make changes to this bug.