[Openstack-operators] problem with neutron vlan network_type net-create on Havana

Daneyon Hansen (danehans) danehans at cisco.com
Fri Nov 1 21:17:47 UTC 2013


On 11/1/13 2:52 PM, "Ronald van der Pol" <Ronald.vanderPol at rvdp.org> wrote:

>On Fri, Nov 01, 2013 at 20:22:54 +0000, Daneyon Hansen (danehans) wrote:
>
>> The networks should be dynamically created after configuring the
>> /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini and restarting
>> neutron-plugin-openvswitch-agent.
>
>Looks like that is not happening. Any suggestions how I can debug this?

Something is definitely going on with the db.  It seems like maybe your
not talking to it.  Can you make sure the connection info in neutron.conf
is working.  For example:

root at control03:~# grep mysql: /etc/neutron/neutron.conf
connection = 
mysql://neutron:neutron_pass@192.168.220.43/neutron?charset=utf8


root at controller:~# mysql -h192.168.220.43 -uneutron -pneutron_pass neutron
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 213505
Server version: 5.5.23 Source distribution, wsrep_23.6.r3755

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights
reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

mysql> 


You may want to try removing the existing Neutron local networks and then
create the provider vlan network.  When removing the local network, check
the db to make sure it gets removed.  Here is my example (using a provider
network):

neutron net-create public224 --provider:network_type vlan
--provider:physical_network physnet1 --provider:segmentation_id 224
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 05acf919-2b27-4801-9de0-6c134e4a6483 |
| name                      | public224                            |
| provider:network_type     | vlan                                 |
| provider:physical_network | physnet1                             |
| provider:segmentation_id  | 224                                  |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | 33d6f140c85d4eb2a72349ff11f6736d     |
+---------------------------+--------------------------------------+


mysql> select * from externalnetworks;
Empty set (0.00 sec)

mysql> select * from ovs_network_bindings;
+--------------------------------------+--------------+------------------+-
----------------+
| network_id                           | network_type | physical_network |
segmentation_id |
+--------------------------------------+--------------+------------------+-
----------------+
| 05acf919-2b27-4801-9de0-6c134e4a6483 | vlan         | physnet1         |
            224 |
| 7c08af87-f564-42ca-adf6-529cd5b9a530 | vlan         | physnet1         |
            223 |
+--------------------------------------+--------------+------------------+-
----------------+


# neutron net-delete public224
Deleted network: public224


mysql> select * from ovs_network_bindings;
+--------------------------------------+--------------+------------------+-
----------------+
| network_id                           | network_type | physical_network |
segmentation_id |
+--------------------------------------+--------------+------------------+-
----------------+
| 7c08af87-f564-42ca-adf6-529cd5b9a530 | vlan         | physnet1         |
            223 |
+--------------------------------------+--------------+------------------+-
----------------+
1 row in set (0.00 sec)

You may want to try dropping the neutron db, restart the neutron services
and see if the tables get re-established.


If this works


>I only see the two local nets in the log:
>
>2013-11-01 21:43:58.921 20292 INFO neutron.common.config [-] Logging
>enabled!
>2013-11-01 21:43:58.999 20292 INFO neutron.openstack.common.rpc.common
>[-] Connected to AMQP server on xxxxxx.25.4:5672
>2013-11-01 21:43:59.032 20292 INFO neutron.openstack.common.rpc.common
>[-] Connected to AMQP server on xxxxxx.25.4:5672
>2013-11-01 21:43:59.345 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Agent initialized
>successfully, now running...
>2013-11-01 21:43:59.345 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Agent out of sync
>with plugin!
>2013-11-01 21:43:59.459 20292 INFO neutron.agent.securitygroups_rpc [-]
>Preparing filters for devices
>set([u'ed80a7f8-59cd-4497-8fcc-deb46c40cb2b',
>u'41c6971f-cc79-4603-8ede-b545bbefd620',
>u'280e1a9e-9ec9-4ea9-8a7e-3cd87c30fae3',
>u'd6e13591-e5c0-4dc3-988d-8e332a7e2503',
>u'15ad48bd-fa6b-4d7c-810b-939e99d1edcd',
>u'6cb94309-ac29-44b4-8ad8-c232fce5e549',
>u'7c61ab68-00f3-4ea7-86b9-c0138df9ffa0',
>u'd92fb703-06d7-48a8-aada-9d5dbf0d4a53',
>u'983c98cc-37c8-4ebc-b56e-7bd94ab69447'])
>2013-11-01 21:43:59.472 20292 INFO neutron.openstack.common.rpc.common
>[-] Connected to AMQP server on xxxxxx.25.4:5672
>2013-11-01 21:43:59.929 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>ed80a7f8-59cd-4497-8fcc-deb46c40cb2b added
>2013-11-01 21:44:00.026 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>ed80a7f8-59cd-4497-8fcc-deb46c40cb2b updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'193e77cb-5caf-4aa6-b590-f38bc6267c39', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'ed80a7f8-59cd-4497-8fcc-deb46c40cb2b', u'port_id':
>u'ed80a7f8-59cd-4497-8fcc-deb46c40cb2b', u'network_type': u'local'}
>2013-11-01 21:44:00.027 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Assigning 1 as
>local vlan for net-id=193e77cb-5caf-4aa6-b590-f38bc6267c39
>2013-11-01 21:44:00.171 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>41c6971f-cc79-4603-8ede-b545bbefd620 added
>2013-11-01 21:44:00.255 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>41c6971f-cc79-4603-8ede-b545bbefd620 updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'193e77cb-5caf-4aa6-b590-f38bc6267c39', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'41c6971f-cc79-4603-8ede-b545bbefd620', u'port_id':
>u'41c6971f-cc79-4603-8ede-b545bbefd620', u'network_type': u'local'}
>2013-11-01 21:44:00.387 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>280e1a9e-9ec9-4ea9-8a7e-3cd87c30fae3 added
>2013-11-01 21:44:00.471 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>280e1a9e-9ec9-4ea9-8a7e-3cd87c30fae3 updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'193e77cb-5caf-4aa6-b590-f38bc6267c39', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'280e1a9e-9ec9-4ea9-8a7e-3cd87c30fae3', u'port_id':
>u'280e1a9e-9ec9-4ea9-8a7e-3cd87c30fae3', u'network_type': u'local'}
>2013-11-01 21:44:00.606 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>d6e13591-e5c0-4dc3-988d-8e332a7e2503 added
>2013-11-01 21:44:00.694 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>d6e13591-e5c0-4dc3-988d-8e332a7e2503 updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'40fb33fb-dde0-4e56-8616-e2d03f52af49', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'd6e13591-e5c0-4dc3-988d-8e332a7e2503', u'port_id':
>u'd6e13591-e5c0-4dc3-988d-8e332a7e2503', u'network_type': u'local'}
>2013-11-01 21:44:00.694 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Assigning 2 as
>local vlan for net-id=40fb33fb-dde0-4e56-8616-e2d03f52af49
>2013-11-01 21:44:00.831 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>15ad48bd-fa6b-4d7c-810b-939e99d1edcd added
>2013-11-01 21:44:00.913 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>15ad48bd-fa6b-4d7c-810b-939e99d1edcd updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'40fb33fb-dde0-4e56-8616-e2d03f52af49', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'15ad48bd-fa6b-4d7c-810b-939e99d1edcd', u'port_id':
>u'15ad48bd-fa6b-4d7c-810b-939e99d1edcd', u'network_type': u'local'}
>2013-11-01 21:44:01.046 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>6cb94309-ac29-44b4-8ad8-c232fce5e549 added
>2013-11-01 21:44:01.119 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>6cb94309-ac29-44b4-8ad8-c232fce5e549 updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'40fb33fb-dde0-4e56-8616-e2d03f52af49', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'6cb94309-ac29-44b4-8ad8-c232fce5e549', u'port_id':
>u'6cb94309-ac29-44b4-8ad8-c232fce5e549', u'network_type': u'local'}
>2013-11-01 21:44:01.247 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>7c61ab68-00f3-4ea7-86b9-c0138df9ffa0 added
>2013-11-01 21:44:01.329 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>7c61ab68-00f3-4ea7-86b9-c0138df9ffa0 updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'193e77cb-5caf-4aa6-b590-f38bc6267c39', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'7c61ab68-00f3-4ea7-86b9-c0138df9ffa0', u'port_id':
>u'7c61ab68-00f3-4ea7-86b9-c0138df9ffa0', u'network_type': u'local'}
>2013-11-01 21:44:01.468 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>d92fb703-06d7-48a8-aada-9d5dbf0d4a53 added
>2013-11-01 21:44:01.550 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>d92fb703-06d7-48a8-aada-9d5dbf0d4a53 updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'193e77cb-5caf-4aa6-b590-f38bc6267c39', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'd92fb703-06d7-48a8-aada-9d5dbf0d4a53', u'port_id':
>u'd92fb703-06d7-48a8-aada-9d5dbf0d4a53', u'network_type': u'local'}
>2013-11-01 21:44:01.694 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>983c98cc-37c8-4ebc-b56e-7bd94ab69447 added
>2013-11-01 21:44:01.769 20292 INFO
>neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Port
>983c98cc-37c8-4ebc-b56e-7bd94ab69447 updated. Details:
>{u'admin_state_up': True, u'network_id':
>u'193e77cb-5caf-4aa6-b590-f38bc6267c39', u'segmentation_id': None,
>u'physical_network': None, u'device':
>u'983c98cc-37c8-4ebc-b56e-7bd94ab69447', u'port_id':
>u'983c98cc-37c8-4ebc-b56e-7bd94ab69447', u'network_type': u'local'}




More information about the OpenStack-operators mailing list