← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1691274] Re: Error on adding duplicated secgroup

 

Reviewed:  https://review.openstack.org/465173
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=083bc89f99e007c400b9f89c63ac0459da910df8
Submitter: Zuul
Branch:    master

commit 083bc89f99e007c400b9f89c63ac0459da910df8
Author: Hongbin Lu <hongbin.lu@xxxxxxxxxx>
Date:   Tue May 16 20:54:25 2017 +0000

    Handle exception on adding secgroup
    
    If user adds security group to an instance and the instance already
    has that security group, neutron will return a 400 response. Nova
    should handle the 400 response properly. In before, Nova doesn't
    seem to handle this case and end-user gets a 500 response. This
    commit fixed it.
    
    Closes-Bug: #1691274
    Change-Id: I58b19ef6b537d690df90e542b6af3c64773ecc87


** Changed in: nova
       Status: In Progress => Fix Released

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

Title:
  Error on adding duplicated secgroup

Status in OpenStack Compute (nova):
  Fix Released
Status in OpenStack Compute (nova) newton series:
  New
Status in OpenStack Compute (nova) ocata series:
  New

Bug description:
  Steps to reproduce:

  openstack server create --flavor m1.tiny --security-group default --image cirros-0.3.5-x86_64-disk myinstance
  $ openstack server add security group myinstance default
  Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'neutronclient.common.exceptions.BadRequest'> (HTTP 500) (Request-ID: req-b5f07687-7b4d-4ff3-90b4-0835dbeef9c4)

  The error in n-api: http://paste.openstack.org/show/609722/

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


References