← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1359140] Re: NotImplementedError during nova network-create

 

Confirmed that "nova net-create" & "neutron net-create" create network
successfully when nova-network & neutron is enabled respectively.

** Changed in: nova
       Status: New => Invalid

-- 
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/1359140

Title:
  NotImplementedError during nova network-create

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  I am using devstack development environment.

  
  my localrc file is as -

  ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta
  DEST=/opt/stack
  disable_service n-net
  enable_service tempest
  API_RATE_LIMIT=False
  VOLUME_BACKING_FILE_SIZE=4G
  VIRT_DRIVER=libvirt
  SWIFT_REPLICAS=1
  export OS_NO_CACHE=True
  SCREEN_LOGDIR=/opt/stack/screen-logs
  SYSLOG=True
  SKIP_EXERCISES=boot_from_volume,client-env
  ROOTSLEEP=0
  ACTIVE_TIMEOUT=60
  Q_USE_SECGROUP=True
  BOOT_TIMEOUT=90
  ASSOCIATE_TIMEOUT=60
  ADMIN_PASSWORD=Password
  MYSQL_PASSWORD=Password
  RABBIT_PASSWORD=Password
  SERVICE_PASSWORD=Password
  SERVICE_TOKEN=tokentoken
  SWIFT_HASH=Password

  I am trying to create a network using nova network-create CLI.

  I tries following command -

  #[raies@localhost devstack]$ nova network-create --fixed-range-v4 192.168.1.0/8 test-net-1
  ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-da64fd03-3637-4a80-9b6f-28e6d477e60d)

  
  Traces of n-api logs are as -

  
   _http_log_response /opt/stack/python-keystoneclient/keystoneclient/session.py:196
  2014-08-20 15:37:57.212 DEBUG nova.api.openstack.wsgi [req-da64fd03-3637-4a80-9b6f-28e6d477e60d admin admin] Action: 'create', body: {"network": {"cidr": "192.168.1.0/8", "label": "test-net-1"}} _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:931
  2014-08-20 15:37:57.212 DEBUG nova.api.openstack.wsgi [req-da64fd03-3637-4a80-9b6f-28e6d477e60d admin admin] Calling method '<bound method NetworkController.create of <nova.api.openstack.compute.contrib.os_networks.NetworkController object at 0x37eb650>>' (Content-type='application/json', Accept='application/json') _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:936
  2014-08-20 15:37:57.213 DEBUG nova.api.openstack.compute.contrib.os_networks [req-da64fd03-3637-4a80-9b6f-28e6d477e60d admin admin] Creating network with label test-net-1 create /opt/stack/nova/nova/api/openstack/compute/contrib/os_networks.py:129
  2014-08-20 15:37:57.213 ERROR nova.api.openstack [req-da64fd03-3637-4a80-9b6f-28e6d477e60d admin admin] Caught error:
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack Traceback (most recent call last):
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/__init__.py", line 124, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return req.get_response(self.application)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1296, in send
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     application, catch_exc_info=False)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1260, in call_application
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return resp(environ, start_response)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token.py", line 565, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return self._app(env, start_response)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return resp(environ, start_response)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return resp(environ, start_response)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     response = self.app(environ, start_response)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return resp(environ, start_response)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     resp = self.call_func(req, *args, **self.kwargs)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return self.func(req, *args, **kwargs)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 908, in __call__
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     content_type, body, accept)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 974, in _process_stack
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/wsgi.py", line 1058, in dispatch
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     return method(req=request, **action_args)
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/opt/stack/nova/nova/api/openstack/compute/contrib/os_networks.py", line 134, in create
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     network = self.network_api.create(context, **params)[0]
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack   File "/opt/stack/nova/nova/network/base_api.py", line 97, in create
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack     raise NotImplementedError()
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack NotImplementedError
  2014-08-20 15:37:57.213 17128 TRACE nova.api.openstack
  2014-08-20 15:37:57.215 INFO nova.api.openstack [req-da64fd03-3637-4a80-9b6f-28e6d477e60d admin admin] http://10.0.9.49:8774/v2/38ac127d980547638ed2c87c0229b2d4/os-networks returned with HTTP 500

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


References