Nova - Security Group rules and Default Rules type should be UUID IDs in kilo

Bug #1394145 reported by Jamie Hannaford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Duncan.C

Bug Description

The "id" attribute for a security group is consistently defined as an int (see http://developer.openstack.org/api-ref-compute-v2-ext.html#ext-os-security-groups), but really it's a string UUID.

Revision history for this message
Jamie Hannaford (jamie-hannaford) wrote :

I reinstalled Juno devstack and it's now appearing as an int, which is strange. So the above docs are correct.

If you look at a few other related operations, however, such as Security Group rules and Default Rules, they also have int IDs. But the documentation specifies them as string UUIDs.

Anne Gentle (annegentle)
summary: - Nova - Security Group ID type is wrong
+ Nova - Security Group rules and Default Rules type should be int IDs
Changed in openstack-api-site:
status: New → Confirmed
importance: Undecided → Medium
Duncan.C (duncan-c)
Changed in openstack-api-site:
assignee: nobody → Duncan.C (duncan-c)
Revision history for this message
Duncan.C (duncan-c) wrote : Re: Nova - Security Group rules and Default Rules type should be int IDs

Hi
In devstack env (kilo version),
The "id" shows uuid string.
It's returns
{
    "security_groups": [
        {
            "description": "Default security group",
            "id": "a5defa86-79b3-4b98-bde6-baf139a819c9",
            "name": "default",
            "rules": [],
            "tenant_id": "3864806dbb914d43a1c74f14d57acbec"
        }
    ]
}

Duncan.C (duncan-c)
summary: - Nova - Security Group rules and Default Rules type should be int IDs
+ Nova - Security Group rules and Default Rules type should be UUID IDs in
+ kilo
Changed in openstack-api-site:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

Changed in openstack-api-site:
milestone: none → liberty
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/214632
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=4e2c0a861c76a7650beb7a069cf2d3ad4d5c54f7
Submitter: Jenkins
Branch: master

commit 4e2c0a861c76a7650beb7a069cf2d3ad4d5c54f7
Author: Duncan.C <email address hidden>
Date: Wed Aug 19 22:05:33 2015 +0800

    Modify parameter type in Compute v2.0 ext

    Modify "id" response parameter type to UUID in security groups section.

    Change-Id: Id58a4674018c16ce0815bad423e641559aaccd12
    Closes-Bug: #1394145

Changed in openstack-api-site:
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.