Fail to create a new revision file

Bug #1663147 reported by Yan Xing'an
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Wishlist
Yan Xing'an

Bug Description

yanxa@ubuntu:db$ alembic -c migration/alembic.ini revision
  FAILED: Path doesn't exist: '/opt/stack/tacker/tacker/db/migration/alembic'.
  Please use the 'init' command to create a new scripts folder.
yanxa@ubuntu:db$

in alembic.ini
[alembic]
# path to migration scripts
script_location = %(here)s/alembic

Need to be modified to :
script_location = %(here)s/alembic_migrations

Yan Xing'an (yanxingan)
Changed in tacker:
assignee: nobody → Yan Xing'an (yanxingan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

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

Changed in tacker:
status: New → In Progress
Changed in tacker:
milestone: none → pike-1
Revision history for this message
yong sheng gong (gongysh) wrote :

not use alembic, please use tacker-db-manage:
ubuntu@testtacker:/opt/stack/tacker$ tacker-db-manage --config-file /etc/tacker/tacker.conf revision -m 'test sfdsf' --autogenerate
INFO [alembic.runtime.migration] Context impl MySQLImpl.
INFO [alembic.runtime.migration] Will assume non-transactional DDL.
INFO [alembic.autogenerate.compare] Detected NULL on column 'aclmatchcriterias.vnffgc_id'
INFO [alembic.autogenerate.compare] Detected added foreign key (vim_id)(id) on table ns
INFO [alembic.autogenerate.compare] Detected NOT NULL on column 'servicetypes.service_type'
INFO [alembic.autogenerate.compare] Detected NOT NULL on column 'vimauths.auth_cred'
INFO [alembic.autogenerate.compare] Detected NOT NULL on column 'vimauths.password'
INFO [alembic.autogenerate.compare] Detected NOT NULL on column 'vimauths.vim_project'
INFO [alembic.autogenerate.compare] Detected NOT NULL on column 'vims.type'
INFO [alembic.autogenerate.compare] Detected NOT NULL on column 'vnf.status'
INFO [alembic.autogenerate.compare] Detected NULL on column 'vnf.vnfd_id'
INFO [alembic.autogenerate.compare] Detected removed index 'devices_ibfk_2' on 'vnf'
INFO [alembic.autogenerate.compare] Detected NULL on column 'vnffgchains.nfp_id'
INFO [alembic.autogenerate.compare] Detected NULL on column 'vnffgclassifiers.chain_id'
INFO [alembic.autogenerate.compare] Detected NULL on column 'vnffgclassifiers.nfp_id'
INFO [alembic.autogenerate.compare] Detected added column 'vnffgs.attributes'
INFO [alembic.autogenerate.compare] Detected NULL on column 'vnffgs.vnffgd_id'
  Generating /opt/stack/tacker/tacker/db/migration/alembic_migrations/versions/788abfcba631_test_sfdsf.py ... done

Changed in tacker:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.openstack.org/431360
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=5041576cfe8b8a7fa584b149a5f38b36d2b9236d
Submitter: Jenkins
Branch: master

commit 5041576cfe8b8a7fa584b149a5f38b36d2b9236d
Author: Yan Xing'an <email address hidden>
Date: Wed Feb 8 23:49:30 2017 -0800

    Correct path to migration scripts in alembic.ini

    Modify script_location from alembic to alembic_migration.

    Change-Id: Ieeea214ecc02d7c6da395e1b340d00570ca2c708
    Closes-Bug: #1663147

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 0.7.0

This issue was fixed in the openstack/tacker 0.7.0 release.

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.