Ask Your Question
0

Problem Migrating DB for neutron-fwaas

asked 2015-09-15 23:16:01 -0500

reedip-banerjee gravatar image

updated 2015-09-15 23:27:04 -0500

Hi, I have a simple query. I am trying to create a migration script for neutron-fwaas.However, I am getting an error. Please see the command and response below:

Command:

neutron-db-manage --subproject neutron-fwaas revision -m "Firewall_rules table Updated to be case sensitive " --autogenerate

Error:

ERROR [alembic.util.messaging] Multiple heads are present; please specify the head revision on which the new revision should be based, or perform a merge. FAILED: Multiple heads are present; please specify the head revision on which the new revision should be based, or perform a merge.

Request you to please let me know how to proceed forward.

<< Additional Info >>

neutron-db-manage --subproject neutron-fwaas history

Running history for neutron-fwaas ...

c40fbb377ad -> 4b47ea298795 (expand) (head), add reject rule

kilo -> c40fbb377ad (expand), Initial Liberty no-op script.

kilo -> 67c8e8d61d5 (contract) (head), Initial Liberty no-op script.

796c68dffbb -> kilo (branchpoint), kilo

540142f314f4 -> 796c68dffbb, cisco_csr_fwaas

4202e3047e47 -> 540142f314f4, FWaaS router insertion

start_neutron_fwaas -> 4202e3047e47, add_index_tenant_id

<base> -> start_neutron_fwaas, start neutron-fwaas chain

OK

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-09-16 02:56:50 -0500

reedip-banerjee gravatar image

Ok,

(1) There was an issue in the HEADS file , committed during https://review.openstack.org/#/c/148416/16 (https://review.openstack.org/#/c/1484...). Because of this the check_migration was failing. One important learning, if

neutron-db-manage check_migration

fails for any reason, then verify if the HEADS file in albemic_migration has the data sorted or not. If not sorted( in ascending order) , then it would be the root cause of the problem.

(2) neutron-db-manage revision does not work properly for FWaaS. You need to create a blank script and work with it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-09-15 23:16:01 -0500

Seen: 286 times

Last updated: Sep 16 '15