Agents table is not created

Asked by Liran Schour

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

Question information

Language:
English Edit question
Status:
Answered
For:
neutron Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Edgar Magana (emagana) said :
#1

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" <email address hidden>
wrote:

>New question #244289 on neutron:
>https://answers.launchpad.net/neutron/+question/244289
>
>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.

Revision history for this message
Liran Schour (lirans) said :
#2

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

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

Can you help with this problem?

Provide an answer of your own, or ask Liran Schour for more information if necessary.

To post a message you must log in.