[Openstack] [openstack-dev] [Neutron] Server restart failes when configured with ML2 (BugID: 1210236)

Trinath Somanchi trinath.somanchi at freescale.com
Fri Nov 15 11:30:54 UTC 2013


Oop!.. mistaken, Typo errors there..

Thank you for the correction.

The mechanism_driver configuration is "openvswitch"...

My ml2_conf.ini is as follows:
 [ml2]
type_drivers = local,vlan
tenant_network_type = vlan
mechanism_drivers = openvswitch
network_vlan_ranges = physnet1:1:4094

 I have seen another thing here, With the above configuration, tenant_network_types is configured to "vlan".  But the neutron server.log shows,

2013-11-15 16:59:59.530 24166 INFO neutron.plugins.ml2.managers [-] Tenant network_types: ['local']
It must be vlan right?? Can you update me in this regard ..
The part of the log is as below.
2013-11-15 16:59:59.529 24166 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['vlan', 'local']
2013-11-15 16:59:59.529 24166 DEBUG neutron.plugins.ml2.managers [-] Checking driver => {} _register_types /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py:50
2013-11-15 16:59:59.529 24166 DEBUG neutron.plugins.ml2.managers [-] Checking driver => {'vlan': <stevedore.extension.Extension object at 0x3a9a810>} _register_types /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py:50
2013-11-15 16:59:59.529 24166 INFO neutron.plugins.ml2.managers [-] Registered types: ['vlan', 'local']
2013-11-15 16:59:59.529 24166 DEBUG neutron.plugins.ml2.managers [-] Checking driver => {'vlan': <stevedore.extension.Extension object at 0x3a9a810>, 'local': <stevedore.extension.Extension object at 0x3a9ac50>} _check_tenant_network_types /usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py:63
2013-11-15 16:59:59.530 24166 INFO neutron.plugins.ml2.managers [-] Tenant network_types: ['local']

In the above configuration, for type_drivers=local,vlan , If I give only vlan, the neutron server terminates with an  error.

Is it that we need to give local with (vlan, gre, vxlan ...) ???
 When I created a network, I have got the response below. It worked well and a Network entry is created.
 root at havana:~# neutron net-create net23
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 9621b89d-fa0a-423d-a980-ffd975125509 |
| name                      | net23                                |
| provider:network_type     | local                                |
| provider:physical_network |                                      |
| provider:segmentation_id  |                                      |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | 18088213420b45109da582f677ed8367     |
+---------------------------+--------------------------------------+

I have a Doubt here, Why is that the provider:network_type is "local" when the tenant_network_type is configured as "vlan" ??


--
Trinath Somanchi - B39208
trinath.somanchi at freescale.com | extn: 4048

From: Eugene Nikanorov [mailto:enikanorov at mirantis.com]
Sent: Friday, November 15, 2013 4:53 PM
To: Somanchi Trinath-B39208
Cc: Romil Gupta; openstack at lists.openstack.org
Subject: Re: [Openstack] [openstack-dev] [Neutron] Server restart failes when configured with ML2 (BugID: 1210236)

What is
mechanism_drivers = fslsdn ?
should be 'openvswitch' for example.
I might guess that mechanism_drivers is misconfigured and that's a cause of the issue you're seeing, but i can be wrong here.

Please make sure your mechanism_drivers list correct ones.

Eugene.

On Fri, Nov 15, 2013 at 3:17 PM, Trinath Somanchi <trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com>> wrote:
Hi Eugene-

I have tried this way.

My ml2_conf.ini is as follows:

[ml2]
type_drivers = local,vlan
tenant_network_type = vlan
mechanism_drivers = fslsdn
network_vlan_ranges = physnet1:1:4094


In the above configuration, for type_drivers=local,vlan , If I give only vlan, the neutron server terminates with an  error.

Is it that we need to give local with (vlan, gre, vxlan ...) ???

When I created a network, I have got the response below. It worked well and a Network entry is created.

root at havana:~# neutron net-create net23
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | 9621b89d-fa0a-423d-a980-ffd975125509 |
| name                      | net23                                |
| provider:network_type     | local                                |
| provider:physical_network |                                      |
| provider:segmentation_id  |                                      |
| shared                    | False                                |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | 18088213420b45109da582f677ed8367     |
+---------------------------+--------------------------------------+

I have a Doubt here, Why is that the provider:network_type is "local" when the tenant_network_type is configured as "vlan" ??

Am I missing or misunderstood the concepts here..

Kindly help me understand the same..

Thanking you for the help...

--
Trinath Somanchi - B39208
trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com> | extn: 4048

From: Eugene Nikanorov [mailto:enikanorov at mirantis.com<mailto:enikanorov at mirantis.com>]
Sent: Friday, November 15, 2013 3:15 PM
To: Somanchi Trinath-B39208
Cc: Romil Gupta; openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: Re: [Openstack] [openstack-dev] [Neutron] Server restart failes when configured with ML2 (BugID: 1210236)

I still looks like vlan ranges configuration is incorrect for the type of network you are using.

Can you confirm that your configuration complies with https://wiki.openstack.org/wiki/Neutron/ML2 ?

Thanks,
Eugene.

On Fri, Nov 15, 2013 at 1:26 PM, Trinath Somanchi <trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com>> wrote:
Yes Eugene.

I have tried the same way.

Used a new .ini file and ran the neutron server with ml2_conf.ini.. as specified below.

I get the same error again

2013-11-15 15:01:18.467 20989 DEBUG routes.middleware [-] No route matched for POST /networks.json __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:97
2013-11-15 15:01:18.495 20989 DEBUG routes.middleware [-] Matched POST /networks.json __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
2013-11-15 15:01:18.495 20989 DEBUG routes.middleware [-] Route path: '/networks{.format}', defaults: {'action': u'create', 'controller': <wsgify at 75676816 wrapping <function resource at 0x482f410>>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:102
2013-11-15 15:01:18.495 20989 DEBUG routes.middleware [-] Match dict: {'action': u'create', 'controller': <wsgify at 75676816 wrapping <function resource at 0x482f410>>, 'format': u'json'} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
2013-11-15 15:01:18.498 20989 DEBUG neutron.openstack.common.rpc.amqp [-] Sending network.create.start on notifications.info<http://notifications.info> notify /usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py:598
2013-11-15 15:01:18.498 20989 DEBUG neutron.openstack.common.rpc.amqp [-] UNIQUE_ID is 498b94da27d44f1cb3292af529c4ffc5. _add_unique_id /usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py:339
2013-11-15 15:01:18.505 20989 DEBUG amqp [-] Closed channel #1 _do_close /usr/lib/python2.7/dist-packages/amqp/channel.py:88
2013-11-15 15:01:18.506 20989 DEBUG amqp [-] using channel_id: 1 __init__ /usr/lib/python2.7/dist-packages/amqp/channel.py:70
2013-11-15 15:01:18.508 20989 DEBUG amqp [-] Channel open _open_ok /usr/lib/python2.7/dist-packages/amqp/channel.py:420
2013-11-15 15:01:18.519 20989 INFO neutron.quota [-] Loaded quota_driver: <neutron.db.quota_db.DbQuotaDriver object at 0x4bef2d0>.
2013-11-15 15:01:18.599 20989 ERROR neutron.api.v2.resource [-] create failed
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource Traceback (most recent call last):
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 84, in resource
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 405, in create
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 308, in create_network
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource     segment = self.type_manager.allocate_tenant_segment(session)
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 100, in allocate_tenant_segment
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
2013-11-15 15:01:18.599 20989 TRACE neutron.api.v2.resource


--
Trinath Somanchi - B39208
trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com> | extn: 4048

From: Eugene Nikanorov [mailto:enikanorov at mirantis.com<mailto:enikanorov at mirantis.com>]
Sent: Friday, November 15, 2013 2:05 PM
To: Somanchi Trinath-B39208
Cc: Romil Gupta; openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>

Subject: Re: [Openstack] [openstack-dev] [Neutron] Server restart failes when configured with ML2 (BugID: 1210236)

Hi Trinath,

Have you tried what Romil has suggested, providing ml2_conf.ini with those parametes?

Eugene.

On Fri, Nov 15, 2013 at 11:02 AM, Trinath Somanchi <trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com>> wrote:
I Just issued, the following command:

$> neutron net-create net1

When I Try to create a new network, I get the following error:



2013-11-15 12:35:03.858 17050 DEBUG routes.middleware [-] No route matched for POST /networks.json __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:97
2013-11-15 12:35:03.859 17050 DEBUG routes.middleware [-] Matched POST /networks.json __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:100
2013-11-15 12:35:03.859 17050 DEBUG routes.middleware [-] Route path: '/networks{.format}', defaults: {'action': u'create', 'controller': <wsgify at 57228112 wrapping <function resource at 0x3697758>>} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:102
2013-11-15 12:35:03.859 17050 DEBUG routes.middleware [-] Match dict: {'action': u'create', 'controller': <wsgify at 57228112 wrapping <function resource at 0x3697758>>, 'format': u'json'} __call__ /usr/lib/python2.7/dist-packages/routes/middleware.py:103
2013-11-15 12:35:03.860 17050 DEBUG neutron.openstack.common.rpc.amqp [-] Sending network.create.start on notifications.info<http://notifications.info> notify /usr/lib/python2.7/dist-packages/neutron/openstack/common/rpc/amqp.py:598

2013-11-15 12:35:04.177 17050 ERROR neutron.api.v2.resource [-] create failed
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource Traceback (most recent call last):
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/resource.py", line 84, in resource
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/api/v2/base.py", line 405, in create
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/plugin.py", line 308, in create_network
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource     segment = self.type_manager.allocate_tenant_segment(session)
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/dist-packages/neutron/plugins/ml2/managers.py", line 100, in allocate_tenant_segment
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource     raise exc.NoNetworkAvailable()
2013-11-15 12:35:04.177 17050 TRACE neutron.api.v2.resource NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.




--
Trinath Somanchi - B39208
trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com> | extn: 4048

From: Romil Gupta [mailto:romilgupta19 at gmail.com<mailto:romilgupta19 at gmail.com>]
Sent: Thursday, November 14, 2013 11:34 PM
To: Eugene Nikanorov
Cc: Somanchi Trinath-B39208; openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Subject: Re: [Openstack] [openstack-dev] [Neutron] Server restart failes when configured with ML2 (BugID: 1210236)


Hi ,

Even I faced the same issue when I configured ml2 plugin in centos.The work around is to set the following flag in neutron.conf

core_plugin = neutron.plugins.ml2.plugin.Ml2Plugin

and in ml2_conf.ini

type_drivers = vlan
tenant_network_types = vlan
mechanism_drivers =openvswitch
network_vlan_ranges = physnet1:1000:2999

To check whether any neutron-server service is running or not :
do

$ ps -ef | grep neutron

if yes, then
do
kill -9 <pid>

and start the neutron-server by executing following command:

/usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini &


hopefully , this will start neutron-server



Regards,
Romil






On Mon, Nov 11, 2013 at 4:27 PM, Eugene Nikanorov <enikanorov at mirantis.com<mailto:enikanorov at mirantis.com>> wrote:
My guess is that you should have
[ml2]
type_drivers=local,vlan
instead of just
[ml2]
type_drivers=vlan

Thanks,
Eugene.

On Mon, Nov 11, 2013 at 10:47 AM, Trinath Somanchi <trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com>> wrote:
Hi

Here the complete log for the Neutron-server restart. I'm now getting a new type of error.

2013-11-11 12:14:45.143 22963<tel:45.143%2022963> INFO neutron.common.config [-] Logging enabled!
2013-11-11 12:14:45.144 22963<tel:45.144%2022963> ERROR neutron.common.legacy [-] Skipping unknown group key: firewall_driver
2013-11-11 12:14:45.144 22963<tel:45.144%2022963> DEBUG neutron.service [-] ******************************************************************************** log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1928
2013-11-11 12:14:45.145 22963<tel:45.145%2022963> DEBUG neutron.service [-] Configuration options gathered from: log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1929
2013-11-11 12:14:45.145 22963<tel:45.145%2022963> DEBUG neutron.service [-] command line args: ['--config-file', '/etc/neutron/neutron.conf', '--log-file', '/var/log/neutron/server.log', '--config-file', '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1930
2013-11-11 12:14:45.145 22963<tel:45.145%2022963> DEBUG neutron.service [-] config files: ['/etc/neutron/neutron.conf', '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1931
2013-11-11 12:14:45.146 22963<tel:45.146%2022963> DEBUG neutron.service [-] ================================================================================ log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1932
2013-11-11 12:14:45.146 22963<tel:45.146%2022963> DEBUG neutron.service [-] allow_bulk                     = True log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.147 22963<tel:45.147%2022963> DEBUG neutron.service [-] allow_overlapping_ips          = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.147 22963<tel:45.147%2022963> DEBUG neutron.service [-] allow_pagination               = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.147 22963<tel:45.147%2022963> DEBUG neutron.service [-] allow_sorting                  = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.148 22963<tel:45.148%2022963> DEBUG neutron.service [-] allowed_rpc_exception_modules  = ['neutron.openstack.common.exception', 'nova.exception', 'cinder.exception', 'exceptions'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.148 22963 DEBUG neutron.service [-] api_extensions_path            =  log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.148 22963 DEBUG neutron.service [-] api_paste_config               = api-paste.ini log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.149 22963 DEBUG neutron.service [-] auth_strategy                  = keystone log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.149 22963 DEBUG neutron.service [-] backdoor_port                  = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.149 22963 DEBUG neutron.service [-] backlog                        = 4096 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.150 22963 DEBUG neutron.service [-] base_mac                       = fa:16:3e:00:00:00 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.150 22963 DEBUG neutron.service [-] bind_host                      = 0.0.0.0 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.150 22963 DEBUG neutron.service [-] bind_port                      = 9696 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.151 22963 DEBUG neutron.service [-] config_dir                     = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.151 22963 DEBUG neutron.service [-] config_file                    = ['/etc/neutron/neutron.conf', '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.151 22963 DEBUG neutron.service [-] control_exchange               = neutron log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.151 22963 DEBUG neutron.service [-] core_plugin                    = neutron.plugins.ml2.plugin.Ml2Plugin log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.152 22963 DEBUG neutron.service [-] debug                          = True log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.152 22963 DEBUG neutron.service [-] default_log_levels             = ['amqplib=WARN', 'sqlalchemy=WARN', 'boto=WARN', 'suds=INFO', 'keystone=INFO', 'eventlet.wsgi.server=WARN'] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.152 22963 DEBUG neutron.service [-] dhcp_agent_notification        = True log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.153 22963 DEBUG neutron.service [-] dhcp_lease_duration            = 86400 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.153 22963 DEBUG neutron.service [-] disable_process_locking        = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.154 22963 DEBUG neutron.service [-] fake_rabbit                    = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.154 22963 DEBUG neutron.service [-] fatal_deprecations             = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.154 22963 DEBUG neutron.service [-] force_gateway_on_subnet        = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.155 22963 DEBUG neutron.service [-] host                           = havana log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.155 22963 DEBUG neutron.service [-] instance_format                = [instance: %(uuid)s]  log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.155 22963 DEBUG neutron.service [-] instance_uuid_format           = [instance: %(uuid)s]  log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.156 22963 DEBUG neutron.service [-] lock_path                      = /var/lib/neutron/lock log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.156 22963 DEBUG neutron.service [-] log_config                     = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.156 22963 DEBUG neutron.service [-] log_date_format                = %Y-%m-%d %H:%M:%S log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.157 22963 DEBUG neutron.service [-] log_dir                        = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.157 22963 DEBUG neutron.service [-] log_file                       = /var/log/neutron/server.log log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.157 22963 DEBUG neutron.service [-] log_format                     = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.157 22963 DEBUG neutron.service [-] logging_context_format_string  = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [%(request_id)s %(user)s %(tenant)s] %(instance)s%(message)s log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.158 22963 DEBUG neutron.service [-] logging_debug_format_suffix    = %(funcName)s %(pathname)s:%(lineno)d log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.158 22963 DEBUG neutron.service [-] logging_default_format_string  = %(asctime)s.%(msecs)03d %(process)d %(levelname)s %(name)s [-] %(instance)s%(message)s log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.158 22963 DEBUG neutron.service [-] logging_exception_prefix       = %(asctime)s.%(msecs)03d %(process)d TRACE %(name)s %(instance)s log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.159 22963 DEBUG neutron.service [-] mac_generation_retries         = 16 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.159 22963 DEBUG neutron.service [-] max_dns_nameservers            = 5 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.159 22963 DEBUG neutron.service [-] max_fixed_ips_per_port         = 5 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.160 22963 DEBUG neutron.service [-] max_subnet_host_routes         = 20 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.160 22963 DEBUG neutron.service [-] pagination_max_limit           = -1 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.160 22963 DEBUG neutron.service [-] periodic_fuzzy_delay           = 5 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.161 22963 DEBUG neutron.service [-] periodic_interval              = 40 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.161 22963 DEBUG neutron.service [-] policy_file                    = policy.json log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.161 22963 DEBUG neutron.service [-] publish_errors                 = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.162 22963 DEBUG neutron.service [-] retry_until_window             = 30 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.162 22963 DEBUG neutron.service [-] rpc_backend                    = neutron.openstack.common.rpc.impl_kombu log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.162 22963 DEBUG neutron.service [-] rpc_cast_timeout               = 30 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.162 22963 DEBUG neutron.service [-] rpc_conn_pool_size             = 30 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.163 22963 DEBUG neutron.service [-] rpc_response_timeout           = 60 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.163 22963 DEBUG neutron.service [-] rpc_thread_pool_size           = 64 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.163 22963 DEBUG neutron.service [-] run_external_periodic_tasks    = True log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.164 22963 DEBUG neutron.service [-] service_plugins                = [] log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.164 22963 DEBUG neutron.service [-] sqlite_db                      =  log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.164 22963 DEBUG neutron.service [-] sqlite_synchronous             = True log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.165 22963 DEBUG neutron.service [-] ssl_ca_file                    = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.165 22963 DEBUG neutron.service [-] ssl_cert_file                  = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.165 22963 DEBUG neutron.service [-] ssl_key_file                   = None log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.166 22963 DEBUG neutron.service [-] state_path                     = /var/lib/neutron log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.166 22963 DEBUG neutron.service [-] syslog_log_facility            = LOG_USER log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.166 22963 DEBUG neutron.service [-] tcp_keepidle                   = 600 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.167 22963 DEBUG neutron.service [-] use_ssl                        = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.167 22963 DEBUG neutron.service [-] use_stderr                     = True log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.167 22963 DEBUG neutron.service [-] use_syslog                     = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.167 22963 DEBUG neutron.service [-] verbose                        = True log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1941
2013-11-11 12:14:45.168 22963 DEBUG neutron.service [-] database.connection            = ************************************************** log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.168 22963 DEBUG neutron.service [-] database.connection_debug      = 0 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.168 22963 DEBUG neutron.service [-] database.connection_trace      = False log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.169 22963 DEBUG neutron.service [-] database.idle_timeout          = 3600 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.169 22963 DEBUG neutron.service [-] database.max_overflow          = 20 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.169 22963 DEBUG neutron.service [-] database.max_pool_size         = 10 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.170 22963 DEBUG neutron.service [-] database.max_retries           = 10 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.170 22963 DEBUG neutron.service [-] database.min_pool_size         = 1 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.170 22963 DEBUG neutron.service [-] database.pool_timeout          = 10 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.171 22963 DEBUG neutron.service [-] database.retry_interval        = 10 log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.171 22963 DEBUG neutron.service [-] database.slave_connection      =  log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1949
2013-11-11 12:14:45.171 22963 DEBUG neutron.service [-] ******************************************************************************** log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1951
2013-11-11 12:14:45.172 22963 INFO neutron.common.config [-] Config paste file: /etc/neutron/api-paste.ini
2013-11-11 12:14:45.199 22963 DEBUG neutron.openstack.common.lockutils [-] Got semaphore "manager" for method "_create_instance"... inner /usr/lib/python2.7/dist-packages/neutron/openstack/common/lockutils.py:191
2013-11-11 12:14:45.199 22963 DEBUG neutron.manager [-] Plugin location: neutron.plugins.ml2.plugin.Ml2Plugin __init__ /usr/lib/python2.7/dist-packages/neutron/manager.py:111
2013-11-11 12:14:45.200 22963 INFO neutron.manager [-] Loading Plugin: neutron.plugins.ml2.plugin.Ml2Plugin
2013-11-11 12:14:45.288 22963 INFO neutron.plugins.ml2.managers [-] Configured type driver names: ['vlan']
2013-11-11 12:14:45.315 22963 DEBUG stevedore.extension [-] found extension EntryPoint.parse('flat = neutron.plugins.ml2.drivers.type_flat:FlatTypeDriver') _load_plugins /usr/lib/python2.7/dist-packages/stevedore/extension.py:84
2013-11-11 12:14:45.315 22963 DEBUG stevedore.extension [-] found extension EntryPoint.parse('vlan = neutron.plugins.ml2.drivers.type_vlan:VlanTypeDriver') _load_plugins /usr/lib/python2.7/dist-packages/stevedore/extension.py:84
2013-11-11 12:14:45.327 22963 INFO neutron.plugins.ml2.drivers.type_vlan [-] Network VLAN ranges: {}
2013-11-11 12:14:45.328 22963 DEBUG stevedore.extension [-] found extension EntryPoint.parse('local = neutron.plugins.ml2.drivers.type_local:LocalTypeDriver') _load_plugins /usr/lib/python2.7/dist-packages/stevedore/extension.py:84
2013-11-11 12:14:45.328 22963 DEBUG stevedore.extension [-] found extension EntryPoint.parse('gre = neutron.plugins.ml2.drivers.type_gre:GreTypeDriver') _load_plugins /usr/lib/python2.7/dist-packages/stevedore/extension.py:84
2013-11-11 12:14:45.328 22963 DEBUG stevedore.extension [-] found extension EntryPoint.parse('vxlan = neutron.plugins.ml2.drivers.type_vxlan:VxlanTypeDriver') _load_plugins /usr/lib/python2.7/dist-packages/stevedore/extension.py:84
2013-11-11 12:14:45.329 22963 INFO neutron.plugins.ml2.managers [-] Loaded type driver names: ['vlan']
2013-11-11 12:14:45.329 22963 INFO neutron.plugins.ml2.managers [-] Registered types: ['vlan']
2013-11-11 12:14:45.330 22963 ERROR neutron.plugins.ml2.managers [-] No type driver for tenant network_type: local. Service terminated!
^C

While configuring ML2 Plugin in neutron, I have the following line in neutron.conf

[ml2]
type_drivers=vlan
mechanism_drivers=openvswitch
tenant_network_types = local

Is there any thing I'm missing for Configuring ML2 Plugin with OpenVSwitch in Neutron (Havana).

Kindly help me resolve the issue.


--
Trinath Somanchi - B39208
trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com> | extn: 4048

From: Eugene Nikanorov [mailto:enikanorov at mirantis.com<mailto:enikanorov at mirantis.com>]
Sent: Tuesday, November 05, 2013 10:30 PM
To: openstack at nemebean.com<mailto:openstack at nemebean.com>; OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [Openstack][Neutron] Server restart failes when configured with ML2 (BugID: 1210236)

That kind of error indicates that some ml2 driver or ml2 plugin failed to load.
You need to inspect neutron server log prior to the trace you are posting, it should contain specific about the issue.

Thanks,
Eugene.


On Tue, Nov 5, 2013 at 8:31 PM, Ben Nemec <openstack at nemebean.com<mailto:openstack at nemebean.com>> wrote:

Please don't cross-post between openstack and openstack-dev.  Based on the bug you linked, this sounds like a probable configuration issue, so openstack would be the place for this.

Thanks.

-Ben



On 2013-11-05 04:06, Trinath Somanchi wrote:
Hi -

I configured Neutron with ML2 configuration. When I restart the service, the Neutron server fails with the following error.

2013-11-05 15:37:08.572 14048 INFO neutron.common.config [-] Config paste file: /etc/neutron/api-paste.ini
2013-11-05 15:37:08.574 14048 ERROR neutron.common.config [-] Unable to load quantum from configuration file /etc/neutron/api-paste.ini.
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config Traceback (most recent call last):
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/neutron/common/config.py", line 144, in load_paste_app
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config     app = deploy.loadapp("config:%s" % config_path, name=app_name)
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config     return loadobj(APP, uri, name=name, **kw)
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 271, in loadobj
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config     global_conf=global_conf)
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config     global_conf=global_conf)
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config     return loader.get_context(object_type, name, global_conf)
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config     object_type, name=name)
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config     self.filename))
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config LookupError: No section 'quantum' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/neutron/api-paste.ini
2013-11-05 15:37:08.574 14048 TRACE neutron.common.config
2013-11-05 15:37:08.575 14048 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2013-11-05 15:37:08.575 14048 TRACE neutron.service Traceback (most recent call last):
2013-11-05 15:37:08.575 14048 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/neutron/service.py", line 100, in serve_wsgi
2013-11-05 15:37:08.575 14048 TRACE neutron.service     service.start()
2013-11-05 15:37:08.575 14048 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/neutron/service.py", line 65, in start
2013-11-05 15:37:08.575 14048 TRACE neutron.service     self.wsgi_app = _run_wsgi(self.app_name)
2013-11-05 15:37:08.575 14048 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/neutron/service.py", line 109, in _run_wsgi
2013-11-05 15:37:08.575 14048 TRACE neutron.service     app = config.load_paste_app(app_name)
2013-11-05 15:37:08.575 14048 TRACE neutron.service   File "/usr/lib/python2.7/dist-packages/neutron/common/config.py", line 151, in load_paste_app
2013-11-05 15:37:08.575 14048 TRACE neutron.service     raise RuntimeError(msg)
2013-11-05 15:37:08.575 14048 TRACE neutron.service RuntimeError: Unable to load quantum from configuration file /etc/neutron/api-paste.ini.
2013-11-05 15:37:08.575 14048 TRACE neutron.service


>From Launchpad bugs, I noticed this is a Bug, with ID: https://bugs.launchpad.net/neutron/+bug/1210236

Kindly help me how to fix this issue.

Thanking you,

--
Trinath Somanchi - B39208
trinath.somanchi at freescale.com<mailto:trinath.somanchi at freescale.com> | extn: 4048



_______________________________________________

OpenStack-dev mailing list

OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>

http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org<mailto:openstack at lists.openstack.org>
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack



--
Regards,
Romil



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20131115/d044f27c/attachment.html>


More information about the Openstack mailing list