Ask Your Question

Question regarding Neutron exception while executing nova commands

asked 2015-07-14 20:25:22 -0500

chirag-shahani gravatar image

Here is what I am doing:

I am trying do a nova interface-attach vm --net <uuid>

The expected behavior as per the vendor plugin is to throw an error when the interface that is being attached to the vm is in another enterprise.

I however get the following error in the cli. I am sure that my code (plugin) is sending a BadReq. exception.

However, the exception on cli is as follows:

ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-758cbcdf-4722-4849-8cf1-26491f782ddc)

I am guessing that this exception is a nova exception. Is there a way to throw neutron exception while executin nova commands. I don't think so..

Any comments w.r.t the above behavior is much appreciated!


edit retag flag offensive close merge delete


dbaxps gravatar imagedbaxps ( 2015-07-15 01:42:24 -0500 )edit

I understand how to add an interface to a running instance. My question is regarding how to handle neutron exception when a nova command is being executed?

chirag-shahani gravatar imagechirag-shahani ( 2015-07-15 02:36:17 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-15 02:18:05 -0500

chirag-shahani gravatar image

I guess I made some progress. So, the exception that is raised from the neutron plugin during the nova operation reaches nova. I could see the BadReq. exception in n-api and n-cpu logs. However, when nova tries to send this exception it encountered back to neutron, the neutron client cannot handle this as it is not in what it can accept.

Hence, I get the ClientException. Is my understanding correct?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-07-14 20:25:22 -0500

Seen: 139 times

Last updated: Jul 15 '15