Red Hat Bugzilla – Bug 1271215
Migration scripts are not included in rpm package if egg_info is re-built from tarball
Last modified: 2016-04-26 12:53:43 EDT
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):
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
command fails due to missing versions in neutron package
DB is popupaleted
Steps to reproduce:
1) Create a db schema in OSP6
2) Migrate OSP6 to OSP7 latest puddle without any issue
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
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.