Ask Your Question
0

Agents table is not created

asked 2014-02-20 13:34:06 -0500

lirans gravatar image

I am writing my own Neutron plugin. When I try to run it I see that the agents table on the DB has not been created. What did I miss? Should I specify somewhere that my plugin is using an agent?

Thanks, - Liran

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-02-20 18:58:16 -0500

emagana gravatar image

Liran,

This is a normal behavior. You need to add your plugin on the alembic migrations for the agents, I believe is this one: neutron//neutron/db/migration/alembic_migrations/versions/511471cc46b_agent _ext_model_supp.py

Cheers,

Edgar

On 2/20/14 5:36 AM, "Liran Schour" question244289@answers.launchpad.net wrote:

New question #244289 on neutron: https://answers.launchpad.net/neutron/+question/244289 (https://answers.launchpad.net/neutron...)

I am writing my own Neutron plugin. When I try to run it I see that the agents table on the DB has not been created. What did I miss? Should I specify somewhere that my plugin is using an agent?

Thanks, - Liran


You received this question notification because you are an answer contact for neutron.

edit flag offensive delete link more
0

answered 2014-02-24 09:46:06 -0500

lirans gravatar image

Seems like I need to add a migration script for my plugin. ( https://wiki.openstack.org/wiki/Neutron/DatabaseMigration (https://wiki.openstack.org/wiki/Neutr...) )

neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file <plugin.ini> revision -m "Description" --autogenerate

neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file <plugin.ini> upgrade head

And everything works OK

  • Liran
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: 2014-02-20 13:34:06 -0500

Seen: 111 times

Last updated: Feb 24 '14