Return 409 at neutron-client conflict
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Rajesh Tailor |
Bug Description
Description
===========
When attaching a stateless and stateful security group to a VM, nova returns a 500 error but it's a user issue and a 409 conflict error should be returned.
Steps to reproduce
==================
1. create network
2. create VM "test-vm" attached to the network
3. may create a statefull security group, but default group should already do
4. openstack securit group create --stateless stateless-group
5. openstack server add security group test-vm stateless-group
Expected result
===============
Nova forwards the 409 error from Neutron with the error description from Neutron.
Actual result
=============
Nova returns:
Unexpected API Error. Please report this at http://
<class 'neutronclient.
Environment
===========
1. Exact version of OpenStack you are running. See the following
list for all releases: http://
# nova-api --version
26.2.2 (Zed)
3. Which networking type did you use?
(For example: nova-network, Neutron with OpenVSwitch, ...)
Neutron with OVN
Logs & Configs
==============
Stacktrace:
Traceback (most recent call last):,
File "/usr/local/
return f(*args, **kwargs),
File "/usr/local/
return security_
File "/usr/local/
raise e,
File "/usr/local/
neutron.
File "/usr/local/
ret = obj(*args, **kwargs),
File "/usr/local/
return self._update_
File "/usr/local/
ret = obj(*args, **kwargs),
File "/usr/local/
return self.put(path, **kwargs),
File "/usr/local/
ret = obj(*args, **kwargs),
File "/usr/local/
return self.retry_
File "/usr/local/
ret = obj(*args, **kwargs),
File "/usr/local/
return self.do_
File "/usr/local/
ret = obj(*args, **kwargs),
File "/usr/local/
self.
File "/usr/local/
ret = obj(*args, **kwargs),
File "/usr/local/
exception_
File "/usr/local/
raise client_
Error Cannot apply both stateful and stateless security groups on the same port at the same time while attempting the operation.,
Neutron server returns request_ids: ['req-1007ffaa-
Changed in nova: | |
status: | Invalid → New |
Changed in nova: | |
assignee: | nobody → Rajesh Tailor (ratailor) |
This appears to me a configuration issue as said in the exception : 3501-4566- 9ad9-c540931138 f0']
Error Cannot apply both stateful and stateless security groups on the same port at the same time while attempting the operation.,
Neutron server returns request_ids: ['req-1007ffaa-
I don't think this is a bug in Nova, so closing the bug accordinly but feel free to reopen if if you can prove the contrary.