neutron net-create failed

Bug #1198917 reported by Yoshihiro Kaneko
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Mark McClain

Bug Description

I ran devstack with neutron.
And neutron net-create failed.

2013-07-08 10:37:48 ++ neutron net-create --tenant_id 5cb1c99537bd434d9d4723ec796a61fa private
2013-07-08 10:37:48 Request Failed: internal server error while processing your request.
2013-07-08 10:37:48 + NET_ID=

q-svc's log:

2013-07-08 10:37:48.574 21207 ERROR neutron.api.v2.resource [-] create failed
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource Traceback (most recent call last):
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/resource.py", line 82, in resource
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource result = method(request=request, **args)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/api/v2/base.py", line 336, in create
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource body)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/openstack/common/notifier/api.py", line 137, in notify
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource for driver in _get_drivers():
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/openstack/common/notifier/api.py", line 156, in _get_drivers
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource add_driver(notification_driver)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/openstack/common/notifier/api.py", line 168, in add_driver
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource driver = importutils.import_module(notification_driver)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/neutron/neutron/openstack/common/importutils.py", line 59, in import_module
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource __import__(import_str)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/quantum/quantum/openstack/common/notifier/rpc_notifier.py", line 20, in <module>
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource from quantum.openstack.common import log as logging
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/opt/stack/quantum/quantum/openstack/common/log.py", line 158, in <module>
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource CONF.register_cli_opts(common_cli_opts)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1229, in __inner
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource return f(self, *args, **kwargs)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1383, in register_cli_opts
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource self.register_cli_opt(opt, group, clear_cache=False)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1229, in __inner
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource return f(self, *args, **kwargs)
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line 1375, in register_cli_opt
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource raise ArgsAlreadyParsedError("cannot register CLI option")
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource ArgsAlreadyParsedError: arguments already parsed: cannot register CLI option
2013-07-08 10:37:48.574 21207 TRACE neutron.api.v2.resource

The cause is the default configuration value in etc/neutron.conf:

notification_driver = quantum.openstack.common.notifier.rpc_notifier

I changed 'quantum' to 'neutron', then this problem was solved.

Tags: renaming
Changed in neutron:
assignee: nobody → Mark McClain (markmcclain)
importance: Undecided → Critical
Changed in neutron:
status: New → Confirmed
Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/36105
Committed: http://github.com/openstack/neutron/commit/0aa5becc005166ecdfeacc288f124c8806d8b2f8
Submitter: Jenkins
Branch: master

commit 0aa5becc005166ecdfeacc288f124c8806d8b2f8
Author: Mark McClain <email address hidden>
Date: Mon Jul 8 13:01:57 2013 -0400

    add notification_driver to compatibilty clean-up

    fixes bug: 1198917

    Change-Id: Iab9bce87aee4d70204702533b1ff23e80ccdb53e

Changed in neutron:
status: In Progress → Fix Committed
Changed in neutron:
milestone: none → havana-2
Revision history for this message
Yoshihiro Kaneko (ykaneko0929) wrote :

This problem has not been solved yet.
I got the same error.

In neutron-server case, modernize_quantum_config() is called before notification_driver is registered.

Revision history for this message
yong sheng gong (gongysh) wrote :

can u try the patch: https://review.openstack.org/#/c/36931/?, if it can fix your problem, i will upgrade the patch's bug level.

Revision history for this message
Yoshihiro Kaneko (ykaneko0929) wrote :

I confirmed that your patch fixed this problem.
devstack was able to create the private network of the demo tenant.
I saw also the warning message:
  WARNING neutron.common.legacy [-] Old class module path in use. Please change
  'quantum.openstack.common.notifier.rpc_notifier' to 'neutron.openstack.common.notifier.rpc_notifier'.
thanks!

Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
tags: added: renaming
Thierry Carrez (ttx)
Changed in neutron:
milestone: havana-2 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.