versions directory containing migration script is not included in neutron build if building outside of git

Bug #1505628 reported by Jakub Libosvar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Jakub Libosvar

Bug Description

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.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

Changed in neutron:
assignee: nobody → Jakub Libosvar (libosvar)
status: New → In Progress
Changed in neutron:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-lbaas (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/234155

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-vpnaas (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/234157

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to neutron-fwaas (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/234161

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

are these backport material?

Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

I am assuming this is going to be closed as soon as all the target patches merge, correct? Nothing is outstanding, besides the potential backport?

Revision history for this message
Jakub Libosvar (libosvar) wrote :

Yes, I think we should backport it to stable branches once merged.

Yes, we can close it, I'll test it first manually prior to closing.

tags: added: kilo-backport-potential
tags: added: liberty-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-lbaas (master)

Reviewed: https://review.openstack.org/234155
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=2fba753bcefdf0b1652e5adb4cc7e1087afcc064
Submitter: Jenkins
Branch: master

commit 2fba753bcefdf0b1652e5adb4cc7e1087afcc064
Author: Jakub Libosvar <email address hidden>
Date: Tue Oct 13 13:29:01 2015 +0200

    Include alembic versions directory to the package

    If package is built without access to git metadata, all the migration
    scripts are not included in the build. We need to explicitly specify to
    package the scripts.

    This patch also removes non-existing files from MANIFEST.in

    Change-Id: I9a2acad13271863ee94de63c2404e8697ea70601
    Related-bug: #1505628

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-vpnaas (master)

Reviewed: https://review.openstack.org/234157
Committed: https://git.openstack.org/cgit/openstack/neutron-vpnaas/commit/?id=a046cda097454670afa15ff19f29588dd94f7cdf
Submitter: Jenkins
Branch: master

commit a046cda097454670afa15ff19f29588dd94f7cdf
Author: Jakub Libosvar <email address hidden>
Date: Tue Oct 13 13:34:19 2015 +0200

    Include alembic versions directory to the package

    If package is built without access to git metadata, all the migration
    scripts are not included in the build. We need to explicitly specify to
    package the scripts.

    This patch also removes non-existing files from MANIFEST.in

    Change-Id: I9a2acad13271863ee94de63c2404e8697ea70601
    Related-bug: #1505628

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/234152
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=54a590d3419dbb41fc0a9bf81ec014440ba37054
Submitter: Jenkins
Branch: master

commit 54a590d3419dbb41fc0a9bf81ec014440ba37054
Author: Jakub Libosvar <email address hidden>
Date: Tue Oct 13 13:18:56 2015 +0200

    Include alembic versions directory to the package

    If package is built without access to git metadata, all the migration
    scripts are not included in the build. We need to explicitly specify to
    package the scripts.

    Change-Id: I9a2acad13271863ee94de63c2404e8697ea70601
    Closes-Bug: #1505628

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to neutron-fwaas (master)

Reviewed: https://review.openstack.org/234161
Committed: https://git.openstack.org/cgit/openstack/neutron-fwaas/commit/?id=cf88bec3a5b1bfdfbb0bf53fc91b5f91c356251c
Submitter: Jenkins
Branch: master

commit cf88bec3a5b1bfdfbb0bf53fc91b5f91c356251c
Author: Jakub Libosvar <email address hidden>
Date: Tue Oct 13 13:37:49 2015 +0200

    Include alembic versions directory to the package

    If package is built without access to git metadata, all the migration
    scripts are not included in the build. We need to explicitly specify to
    package the scripts.

    This patch also removes non-existing files from MANIFEST.in

    Change-Id: I9a2acad13271863ee94de63c2404e8697ea70601
    Related-bug: #1505628

Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron 8.0.0.0b1

This issue was fixed in the openstack/neutron 8.0.0.0b1 development milestone.

Changed in neutron:
status: Fix Committed → Fix Released
tags: removed: kilo-backport-potential liberty-backport-potential
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.