← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1541760] Re: nova-network create return wrong error number

 

Reviewed:  https://review.openstack.org/276144
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=2d038f79be4afcb5f2cffab14a047f17c7eca274
Submitter: Jenkins
Branch:    master

commit 2d038f79be4afcb5f2cffab14a047f17c7eca274
Author: jichenjc <jichenjc@xxxxxxxxxx>
Date:   Tue Jan 26 14:53:34 2016 +0800

    Return 409 instead of 503 when cidr conflict
    
    In create a network in nova-network, we should check
    whether it's a conflict cidr ,but we reported 503
    service unavailable to user, we should report 409
    HTTPConflict.
    
    Closes-Bug: 1541760
    
    Change-Id: I80a07222f44017448d1877d6b821eebe462d9fec


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

Title:
  nova-network create return wrong error number

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  jichen@devstack1:~$ nova network-list
  +--------------------------------------+---------+-----------------+
  | ID                                   | Label   | Cidr            |
  +--------------------------------------+---------+-----------------+
  | e0b9ae95-5bd9-4eda-a41d-e8b3135b5e5b | ji4     | 192.168.59.0/24 |
  +--------------------------------------+---------+-----------------+

  
  jichen@devstack1:~$ nova tenant-network-create ji4 192.168.59.1/24
  ERROR (ClientException): Create networks failed (HTTP 503) (Request-ID: req-ea32935d-4f28-4fdf-9cd2-3a191f9b4882)

  we should return conflict (409) instead of 503

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


References