New Question
0

Hyper-V neutron agent database configuration

asked 2014-08-26 13:10:01 +0200

Lee gravatar image

I'm trying to configure HyperV as an OpenStack computer node using the Icehouse OpenStack compute installer. New VMs launch successfully, but are not connected to the configured network switch. The neutron agent logs contain messages with the format

Adding port port-guid

and no further logging is produced.

Looking at the source, device records without a 'port_id' are silently ignored. It appears that device records are fetched from the database, and any failure to fetch the port record returns a dummy record containing only the device id.

I cannot find any information on how to configure the database connection for the neutron agent, and the installer has no property for the connection string. I tried adding an entry to neutronhypervagent.conf

[database] connection=mysql://neutron:neutronpassword@controller/neutron

however this does not have any effect.

Does the neutron agent require a database connection, and if so, how should it be configured? If not, how is the device information retrieved and how should that be configured?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2016-11-11 16:58:12 +0200

Claudiu Belu gravatar image

Hello,

My first impression is that you did not configure the Neutron controller to use a hyperv mechanism_driver. Newer OpenStack releases will not launch instances if the neutron ports were not bound to a host. To see how to configure your Neutron controller properly, please see [1].

And a few details on how the Neutron Hyper-V Agent works: it listens for newly created VMs and vNICs, asks Neutron for binding details about them (via RPC), binds them (connect to vSwitch, set VLAN if needed, sets up security groups, if needed), reports to Neutron that the port was bound via RPC.

If the Neutron Controller couldn't determine whether a host can bind a neutron port (e.g.: it wasn't configured to use the hyperv mechanism driver), Neutron will not give the Neutron Hyper-V Agent any details about the port, hence, won't be bound.

[1] https://cloudbase.it/neutron-hyper-v-...

Best regards, Claudiu Belu

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

Question Tools

2 followers

Stats

Asked: 2014-08-26 13:10:01 +0200

Seen: 1,192 times

Last updated: Nov 11 '16