← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1612911] Re: nova network-create fails with this eror exceptions.NotImplementedError

 

Check the use_neutron value in nova.conf, if that's true you're trying
to create a network in neutron via nova, which isn't supported, hence
the NotImplementedError.

** 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/1612911

Title:
  nova network-create   fails with this eror
  exceptions.NotImplementedError

Status in OpenStack Compute (nova):
  Invalid

Bug description:
  Hi

  i'm trying to create network in  this condition ; the   openstack   connected  to vcenter 6.0 and esxi 6.0 (vmware)  ,  with nuetron networking but the problem is when i'm trying to create network , i get this error  not matter what is the argumants 
  i installed openstack with Packstack  this is versions installed (mitaka)
  openstack-nova-scheduler-13.1.0-1.el7.noarch
  openstack-nova-conductor-13.1.0-1.el7.noarch
  python-novaclient-3.3.1-1.el7.noarch
  openstack-nova-common-13.1.0-1.el7.noarch
  python-nova-13.1.0-1.el7.noarch
  openstack-nova-console-13.1.0-1.el7.noarch
  openstack-nova-novncproxy-13.1.0-1.el7.noarch
  openstack-nova-compute-13.1.0-1.el7.noarch
  openstack-nova-cert-13.1.0-1.el7.noarch
  openstack-nova-api-13.1.0-1.el7.noarch

  
  $ nova --debug network-create vmnet --fixed-range-v4=192.168.30.0/24
  DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
  DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
  DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
  DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
  DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
  DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
  DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
  DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
  DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
  DEBUG (extension:157) found extension EntryPoint.parse('password-ceilometer-legacy = ceilometer.keystone_client:LegacyCeilometerKeystoneLoader')
  DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
  DEBUG (extension:157) found extension EntryPoint.parse('password-aodh-legacy = aodh.keystone_client:LegacyAodhKeystoneLoader')
  DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.214.221:5000/v2.0 -H "Accept: application/json" -H "User-Agent: keystoneauth1/2.4.1 python-requests/2.10.0 CPython/2.7.5"
  INFO (connectionpool:213) Starting new HTTP connection (1): 192.168.214.221
  DEBUG (connectionpool:395) "GET /v2.0 HTTP/1.1" 200 230
  DEBUG (session:277) RESP: [200] Date: Sat, 13 Aug 2016 06:47:23 GMT Server: Apache/2.4.6 (CentOS) Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-a5c4b642-f290-4114-8c95-7c66c39fda3e Content-Encoding: gzip Content-Length: 230 Connection: close Content-Type: application/json
  RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://192.168.214.221:5000/v2.0/";, "rel": "self"}, {"href": "http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}]}}

  DEBUG (v2:63) Making authentication request to http://192.168.214.221:5000/v2.0/tokens
  INFO (connectionpool:248) Resetting dropped connection: 192.168.214.221
  DEBUG (connectionpool:395) "POST /v2.0/tokens HTTP/1.1" 200 1155
  DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.214.221:8774/v2/74ad52f8d08645cd89c753596f8036a6 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}7b7bc12f67af38ed45ff636f16c3889b23685a4a"
  INFO (connectionpool:213) Starting new HTTP connection (1): 192.168.214.221
  DEBUG (connectionpool:395) "GET /v2/74ad52f8d08645cd89c753596f8036a6 HTTP/1.1" 404 52
  DEBUG (session:277) RESP: [404] Content-Length: 52 Content-Type: text/plain; charset=UTF-8 X-Compute-Request-Id: req-4799e0a1-7c7e-4ef7-bfb7-4d393a75f5e6 Date: Sat, 13 Aug 2016 06:47:24 GMT Connection: keep-alive
  RESP BODY: 404 Not Found

  The resource could not be found.


  DEBUG (session:248) REQ: curl -g -i -X GET http://192.168.214.221:8774/v2/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}7b7bc12f67af38ed45ff636f16c3889b23685a4a"
  DEBUG (connectionpool:395) "GET /v2/ HTTP/1.1" 200 379
  DEBUG (session:277) RESP: [200] Content-Length: 379 Content-Type: application/json X-Compute-Request-Id: req-c065e58d-fb61-44d0-af56-f7e8178260c6 Date: Sat, 13 Aug 2016 06:47:24 GMT Connection: keep-alive
  RESP BODY: {"version": {"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://192.168.214.221:8774/v2/";, "rel": "self"}, {"href": "http://docs.openstack.org/";, "type": "text/html", "rel": "describedby"}], "min_version": "", "version": "", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0"}}

  DEBUG (extension:157) found extension EntryPoint.parse('v2token = keystoneauth1.loading._plugins.identity.v2:Token')
  DEBUG (extension:157) found extension EntryPoint.parse('admin_token = keystoneauth1.loading._plugins.admin_token:AdminToken')
  DEBUG (extension:157) found extension EntryPoint.parse('v3oidcauthcode = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectAuthorizationCode')
  DEBUG (extension:157) found extension EntryPoint.parse('v2password = keystoneauth1.loading._plugins.identity.v2:Password')
  DEBUG (extension:157) found extension EntryPoint.parse('v3password = keystoneauth1.loading._plugins.identity.v3:Password')
  DEBUG (extension:157) found extension EntryPoint.parse('v3oidcpassword = keystoneauth1.loading._plugins.identity.v3:OpenIDConnectPassword')
  DEBUG (extension:157) found extension EntryPoint.parse('token = keystoneauth1.loading._plugins.identity.generic:Token')
  DEBUG (extension:157) found extension EntryPoint.parse('v3token = keystoneauth1.loading._plugins.identity.v3:Token')
  DEBUG (extension:157) found extension EntryPoint.parse('password = keystoneauth1.loading._plugins.identity.generic:Password')
  DEBUG (extension:157) found extension EntryPoint.parse('password-ceilometer-legacy = ceilometer.keystone_client:LegacyCeilometerKeystoneLoader')
  DEBUG (extension:157) found extension EntryPoint.parse('gnocchi-noauth = gnocchiclient.noauth:GnocchiNoAuthLoader')
  DEBUG (extension:157) found extension EntryPoint.parse('password-aodh-legacy = aodh.keystone_client:LegacyAodhKeystoneLoader')
  DEBUG (session:248) REQ: curl -g -i -X POST http://192.168.214.221:8774/v2/74ad52f8d08645cd89c753596f8036a6/os-networks -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}7b7bc12f67af38ed45ff636f16c3889b23685a4a" -d '{"network": {"cidr": "192.168.30.0/24", "label": "vmnet"}}'
  DEBUG (connectionpool:395) "POST /v2/74ad52f8d08645cd89c753596f8036a6/os-networks HTTP/1.1" 500 203
  DEBUG (session:277) RESP: [500] Content-Type: application/json; charset=UTF-8 Content-Length: 203 X-Compute-Request-Id: req-8d3d4b54-00ae-4fc9-b909-aa8aba273af5 Date: Sat, 13 Aug 2016 06:47:24 GMT Connection: keep-alive
  RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<type 'exceptions.NotImplementedError'>", "code": 500}}

  DEBUG (shell:1082) Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <type 'exceptions.NotImplementedError'> (HTTP 500) (Request-ID: req-8d3d4b54-00ae-4fc9-b909-aa8aba273af5)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 1080, in main
      OpenStackComputeShell().main(argv)
    File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 1007, in main
      args.func(self.cs, args)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1198, in do_network_create
      cs.networks.create(**kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/v2/networks.py", line 108, in create
      return self._create('/os-networks', body, 'network')
    File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 345, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 179, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 94, in request
      raise exceptions.from_response(resp, body, url, method)
  ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <type 'exceptions.NotImplementedError'> (HTTP 500) (Request-ID: req-8d3d4b54-00ae-4fc9-b909-aa8aba273af5)
  ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <type 'exceptions.NotImplementedError'> (HTTP 500) (Request-ID: req-8d3d4b54-00ae-4fc9-b909-aa8aba273af5)








  **************************nova-
  api-.log***************************************************************

  2016-08-13 07:25:46.491 2932 INFO nova.osapi_compute.wsgi.server [req-f0a5150b-a74a-4650-b6b2-0c93a9b7df6b 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/ HTTP/1.1" status: 200 len: 576 time: 0.0044260
  2016-08-13 07:25:46.825 2932 INFO nova.osapi_compute.wsgi.server [req-27419b33-b53a-4ffb-ba69-2875e2bfc926 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6/servers/detail HTTP/1.1" status: 200 len: 1782 time: 0.2066319
  2016-08-13 07:27:58.926 2932 INFO nova.osapi_compute.wsgi.server [req-b57081b3-6595-4734-b22c-3760030e8333 baa9b23273cd458dbdfc435629d19419 deeadcc667d04e43ac8d145be72e3a8f - - -] 192.168.214.221 "GET /v2/deeadcc667d04e43ac8d145be72e3a8f/servers/detail?all_tenants=True&changes-since=2016-08-13T06%3A17%3A59.023901%2B00%3A00 HTTP/1.1" status: 200 len: 211 time: 0.1423211
  2016-08-13 07:28:00.703 2930 INFO nova.osapi_compute.wsgi.server [req-eb0a8037-9f86-4b8c-b671-bd73aeda5038 baa9b23273cd458dbdfc435629d19419 deeadcc667d04e43ac8d145be72e3a8f - - -] 192.168.214.221 "GET /v2/deeadcc667d04e43ac8d145be72e3a8f/servers/detail?all_tenants=True&changes-since=2016-08-13T06%3A18%3A00.555114%2B00%3A00&host=srv1.fr.os.host.red HTTP/1.1" status: 200 len: 211 time: 0.1480420
  2016-08-13 07:30:46.425 2931 INFO nova.osapi_compute.wsgi.server [req-bc3cdeeb-f562-45e8-abb2-1faa1ea1f252 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6 HTTP/1.1" status: 404 len: 264 time: 0.0979941
  2016-08-13 07:30:46.432 2931 INFO nova.osapi_compute.wsgi.server [req-cebf5a84-c209-41e2-8761-6de10c0dca14 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/ HTTP/1.1" status: 200 len: 576 time: 0.0047841
  2016-08-13 07:30:46.761 2931 INFO nova.osapi_compute.wsgi.server [req-5254a093-19d7-4829-8a3d-9ac621a0e49d 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6/servers/detail HTTP/1.1" status: 200 len: 1782 time: 0.1800160
  2016-08-13 07:35:46.451 2930 INFO nova.osapi_compute.wsgi.server [req-bdce3e6a-8499-4358-aef6-17fff9a47a2b 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6 HTTP/1.1" status: 404 len: 264 time: 0.0967972
  2016-08-13 07:35:46.458 2930 INFO nova.osapi_compute.wsgi.server [req-63a93d45-81e5-41db-854d-60ae0cfed645 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/ HTTP/1.1" status: 200 len: 576 time: 0.0052650
  2016-08-13 07:35:46.775 2930 INFO nova.osapi_compute.wsgi.server [req-bd450245-1d9b-4fe6-8d26-6a36fc783ac0 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6/servers/detail HTTP/1.1" status: 200 len: 1782 time: 0.1910639
  2016-08-13 07:37:58.920 2932 INFO nova.osapi_compute.wsgi.server [req-65a6cd2d-462e-44e6-a4c6-e634883db83c baa9b23273cd458dbdfc435629d19419 deeadcc667d04e43ac8d145be72e3a8f - - -] 192.168.214.221 "GET /v2/deeadcc667d04e43ac8d145be72e3a8f/servers/detail?all_tenants=True&changes-since=2016-08-13T06%3A27%3A58.927044%2B00%3A00 HTTP/1.1" status: 200 len: 211 time: 0.1357441
  2016-08-13 07:38:00.839 2930 INFO nova.osapi_compute.wsgi.server [req-e862ef72-be38-4365-86ae-0bfb4d069ba2 baa9b23273cd458dbdfc435629d19419 deeadcc667d04e43ac8d145be72e3a8f - - -] 192.168.214.221 "GET /v2/deeadcc667d04e43ac8d145be72e3a8f/servers/detail?all_tenants=True&changes-since=2016-08-13T06%3A28%3A00.553100%2B00%3A00&host=srv1.fr.os.host.red HTTP/1.1" status: 200 len: 211 time: 0.2838712
  2016-08-13 07:40:37.989 2931 INFO nova.osapi_compute.wsgi.server [req-9457da8a-3363-4c90-b906-0e9d3316a674 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6 HTTP/1.1" status: 404 len: 264 time: 0.1101220
  2016-08-13 07:40:37.996 2931 INFO nova.osapi_compute.wsgi.server [req-4889be2c-d36a-4d00-b114-96440e9d9003 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/ HTTP/1.1" status: 200 len: 576 time: 0.0045090
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions [req-d8829ba1-4c78-4f11-a5c3-5eb2f77119e7 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] Unexpected exception in API method
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions Traceback (most recent call last):
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/extensions.py", line 478, in wrapped
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions     return f(*args, **kwargs)
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 73, in wrapper
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions     return func(*args, **kwargs)
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/networks.py", line 148, in create
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions     network = self.network_api.create(context, **params)[0]
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions   File "/usr/lib/python2.7/site-packages/nova/network/base_api.py", line 106, in create
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions     raise NotImplementedError()
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions NotImplementedError
  2016-08-13 07:40:38.126 2931 ERROR nova.api.openstack.extensions 
  2016-08-13 07:40:38.126 2931 INFO nova.api.openstack.wsgi [req-d8829ba1-4c78-4f11-a5c3-5eb2f77119e7 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] HTTP exception thrown: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <type 'exceptions.NotImplementedError'>
  2016-08-13 07:40:38.127 2931 INFO nova.osapi_compute.wsgi.server [req-d8829ba1-4c78-4f11-a5c3-5eb2f77119e7 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "POST /v2/74ad52f8d08645cd89c753596f8036a6/os-networks HTTP/1.1" status: 500 len: 434 time: 0.0064728
  2016-08-13 07:40:46.479 2931 INFO nova.osapi_compute.wsgi.server [req-760fb8c4-8e1e-4028-a74e-ea72769458cd 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6 HTTP/1.1" status: 404 len: 264 time: 0.1030049
  2016-08-13 07:40:46.486 2931 INFO nova.osapi_compute.wsgi.server [req-82ae11e4-3da9-4889-b48e-2499e3f160b1 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/ HTTP/1.1" status: 200 len: 576 time: 0.0043039
  2016-08-13 07:40:46.792 2931 INFO nova.osapi_compute.wsgi.server [req-7699b3ec-6bfa-4fdc-929f-ba05ab2e7d75 5013465fe6664553b0d58455e42c5d07 74ad52f8d08645cd89c753596f8036a6 - - -] 192.168.214.221 "GET /v2/74ad52f8d08645cd89c753596f8036a6/servers/detail HTTP/1.1" status: 200 len: 1782 time: 0.1821151

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


References