Region ID should be required in DefinitionNetworks

Bug #1661761 reported by Jovon McCloud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
craton
Fix Released
High
Thomas Maddox

Bug Description

the variable "region_id" is not required in in v1/schema DefinitionNetworks.
This should be changed as failure to provide region_id in network creation yields unknown error (500)

Revision history for this message
Syed Ahsan Shamim Zaidi (ahsanmohsin04) wrote :

Jovon, can you post the logs of error ?

Changed in craton:
assignee: nobody → Thomas Maddox (thomas-maddox)
Revision history for this message
Thomas Maddox (thomas-maddox) wrote :

Example:

$ curl -X POST -s "http://127.0.0.1:8080/v1/networks" -H "Content-Type: application/json" -H "X-Auth-Token: demo_root" -H "X-Auth-User: demo_root" -H "X-Auth-Project: b9f10eca66ac4c279c139d01e65f96b4" -d '{"name": "thomas-net", "cidr": "192.168.0.0/24", "gateway": "192.168.0.1", "netmask": "255.255.255.0"}'
{
  "message": "Unknown Error",
  "status": 500
}

Changed in craton:
assignee: Thomas Maddox (thomas-maddox) → nobody
Changed in craton:
milestone: none → v0.1.0
assignee: nobody → Thomas Maddox (thomas-maddox)
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to craton (master)

Fix proposed to branch: master
Review: https://review.openstack.org/438265

Changed in craton:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to craton (master)

Reviewed: https://review.openstack.org/438265
Committed: https://git.openstack.org/cgit/openstack/craton/commit/?id=ddc18073384d14ce00b7e1e7b45ce7cf26c95bc6
Submitter: Jenkins
Branch: master

commit ddc18073384d14ce00b7e1e7b45ce7cf26c95bc6
Author: Thomas Maddox <email address hidden>
Date: Sun Feb 26 15:03:03 2017 +0000

    Require region_id and cloud_id for POST /networks

    This patch corrects the schema to include requirements
    for region_id and cloud_id when creating a network.

    Change-Id: I0edbf5efa51a55c425051cbe8d7a60c6ed0a2232
    Closes-Bug: 1661761

Changed in craton:
status: In Progress → Fix Released
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.