← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1158075] Re: network-create returns an internal error when network conflicts

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1158075

Title:
  network-create returns an internal error when network conflicts

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When creating a network which is already existing, we got
  an internal error which can't show the reason of the error.

  $ nova network-list
  +----+---------+----------------+
  | ID | Label   | Cidr           |
  +----+---------+----------------+
  | 1  | private | 10.0.0.0/24    |
  | 5  | net1    | 192.168.0.0/24 |
  +----+---------+----------------+
  $ nova network-create --fixed-range-v4 192.168.0.0/24 net2
  ERROR: The server has either erred or is incapable of performing the requested operation.
  (HTTP 500) (Request-ID: req-24d9b71b-d7a6-4604-8b7d-244a73ac1794)

  And the error message in logfile is as follows:

  2013-03-21 09:55:52.533 ERROR nova.openstack.common.rpc.amqp [req-24d9b71b-d7a6-4604-8b7d-
  244a73ac1794 admin demo] Exception during message handling
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp Traceback (most recent call l
  ast):
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/
  openstack/common/rpc/amqp.py", line 430, in _process_data
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp     rval = self.proxy.dispatc
  h(ctxt, version, method, **args)
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/
  openstack/common/rpc/dispatcher.py", line 133, in dispatch
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp     return getattr(proxyobj, method)(ctxt, **kwargs)
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/network/manager.py", line 1056, in create_networks
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp     return self._do_create_networks(context, **kwargs)
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp   File "/opt/stack/nova/nova/network/manager.py", line 1116, in _do_create_networks
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp     raise ValueError(_('cidr already in use'))
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp ValueError: cidr already in use
  2013-03-21 09:55:52.533 TRACE nova.openstack.common.rpc.amqp
  2013-03-21 09:55:52.533 ERROR nova.openstack.common.rpc.common [req-24d9b71b-d7a6-4604-8b7d-244a73ac1794 admin demo] Returning exception cidr already in use to caller
  2013-03-21 09:55:52.534 ERROR nova.openstack.common.rpc.common [req-24d9b71b-d7a6-4604-8b7d-244a73ac1794 admin demo] ['Traceback (most recent call last):\n', 
  ' File "/opt/stack/nova/nova/openstack/common/rpc/amqp.py", line 430, in _process_data\n   
   rval = self.proxy.dispatch(ctxt, version, method, **args)\n', 
   '  File "/opt/stack/nova/nova/openstack/common/rpc/dispatcher.py", line 133, in dispatch\n    
   return getattr(proxyobj, method)(ctxt, **kwargs)\n', 
   ' File "/opt/stack/nova/nova/network/manager.py", line 1056, in create_networks\n 
     return self._do_create_networks(context, **kwargs)\n', 
   'File "/opt/stack/nova/nova/network/manager.py",line 1116, in _do_create_networks\n  
    raise ValueError(_(\'cidr already in use\'))\n','ValueError: cidr already in use\n']

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1158075/+subscriptions