multinic nova network-create Unexpected API Error

Bug #1626402 reported by surajkumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

Hi,

I was going through the the openstack link and doing hands on practice as well.

link: http://docs.openstack.org/admin-guide/compute-networking-nova.html

Heading: Using multinic

Below error I got after running the command:

stack@mirantis-HP-Z400-Workstation:/opt/devstack/devstack$ nova network-create first-net --fixed-range-v4 20.20.0.0/24 --project-id nova
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-8ee17d86-7d8b-438a-a80e-26389fbf565a)
stack@mirantis-HP-Z400-Workstation:/opt/devstack/devstack$
stack@mirantis-HP-Z400-Workstation:/opt/devstack/devstack$

I am using mitaka version in devstack.

Thanks and Regards,
Suraj

Chuck Short (zulcss)
affects: nova (Ubuntu) → nova
Revision history for this message
Augustina Ragwitz (auggy) wrote :

Thanks for taking the time to file a bug! Could you provide your n-api and n-net logs?

Changed in nova:
status: New → Incomplete
summary: - ERROR (ClientException): Unexpected API Error
+ multinic nova network-create Unexpected API Error
Revision history for this message
surajkumar (surajkumar47) wrote :

Hi Augustina,

Please find the attached log, there is not any log file with the name of n-net.

Revision history for this message
Augustina Ragwitz (auggy) wrote :

Thanks for the logs! I've pasted the full error below. The error you are seeing typically happens if you are using neutron networking and you try to run nova-net commands. Check the "use_neutron" value in your nova.conf. If that doesn't appear to be the issue, then please attach your nova.conf to this bug.

2016-10-03 20:12:17.859 DEBUG nova.api.openstack.wsgi [req-d57d9caa-0d68-42b9-885e-36f2757a47a5 admin admin] Action: 'create', calling method: <bound method NetworkController.create of <nova.api.openstack.compute.networks.NetworkController object at 0x7f1a3839b9d0>>, body: {"network": {"cidr": "20.20.0.0/24", "project_id": "nova", "label": "first-net"}} from (pid=30098) _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:696
2016-10-03 20:12:17.860 ERROR nova.api.openstack.extensions [req-d57d9caa-0d68-42b9-885e-36f2757a47a5 admin admin] Unexpected exception in API method
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/extensions.py", line 478, in wrapped
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions return f(*args, **kwargs)
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/validation/__init__.py", line 73, in wrapper
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions return func(*args, **kwargs)
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/compute/networks.py", line 148, in create
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions network = self.network_api.create(context, **params)[0]
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/network/base_api.py", line 106, in create
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions raise NotImplementedError()
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions NotImplementedError
2016-10-03 20:12:17.860 TRACE nova.api.openstack.extensions
2016-10-03 20:12:17.875 INFO nova.api.openstack.wsgi [req-d57d9caa-0d68-42b9-885e-36f2757a47a5 admin admin] 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-10-03 20:12:17.875 DEBUG nova.api.openstack.wsgi [req-d57d9caa-0d68-42b9-885e-36f2757a47a5 admin admin] Returning 500 to user: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.NotImplementedError'> from (pid=30098) __call__ /opt/stack/nova/nova/api/openstack/wsgi.py:1070

Revision history for this message
surajkumar (surajkumar47) wrote :

Thanks for the reply!

In my nova.conf the variable is marked as true

"use_neutron = True"

Plz correct me if i am wrong, It means that my devstack is using neutron not nova-network ?

Revision history for this message
Augustina Ragwitz (auggy) wrote :

Based on your config, your devstack is using Neutron for networking. Nova-network commands won't work.

Changed in nova:
status: Incomplete → Invalid
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.