To have migration autogenerated we need to pass --autogenerate and
--expand/contract: not allowed with argument --autogenerate.
.tox/py27/bin/neutron-db-manage --config-file /etc/neutron/neutron.conf
revision -m 'test' --autogenerate
Running revision for neutron ...
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.ddl.postgresql] Detected sequence named
'nsxv_edge_vnic_bindings_vnic_index_seq' as owned by integer column
'nsxv_edge_vnic_bindings(vnic_index)', assuming $ERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named
'ml2_ucsm_port_profiles_vlan_id_seq' as owned by integer column
'ml2_ucsm_port_profiles(vlan_id)', assuming SERIAL a$d omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'routerrules_id_seq' as
owned by integer column 'routerrules(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named
'cisco_ml2_nexus_nve_vni_seq' as owned by integer column
'cisco_ml2_nexus_nve(vni)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named
'cisco_ml2_nexusport_bindings_binding_id_seq' as owned by integer column
'cisco_ml2_nexusport_bindings(binding_id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named
'ha_router_vrid_allocations_vr_id_seq' as owned by integer column
'ha_router_vrid_allocations(vr_id)', assuming SERI$L and omitting
INFO [alembic.autogenerate.compare] Detected added column
'ha_router_agent_port_bindings.test'
Generating
/opt/stack/neutron/neutron/db/migration/alembic_migrations/versions/newton/expand/ce2aa5e76b04_test.py
... done
OK
So, I think this bug is not valid as if we use autogenerate, it will
generate migration in expand or contract branch itself, and
--expand/contract are used for creation just empty migrations.
** Changed in: neutron
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1612433
Title:
neutron-db-manage autogenerate is generating empty upgrades
Status in networking-arista:
New
Status in neutron:
Invalid
Bug description:
The alembic autogenerate wrapper,
neutron-db-manage revision -m "description" --[contract|expand]
is no longer collecting model/migration diffs and is generating empty
upgrade scripts.
Not sure when this broke.
To manage notifications about this bug go to:
https://bugs.launchpad.net/networking-arista/+bug/1612433/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp