Unable to show a container by name

Bug #1452650 reported by Adrian Otto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Fix Released
Low
Andrew Melton

Bug Description

When doing a container-show with a name as an argument, an error is returned, even when there is only one container in the system:

stack@ao-magnum-metal:~$ magnum container-list
+--------------------------------------+------+
| uuid | name |
+--------------------------------------+------+
| 4a12301e-e0ba-45c2-964f-f07757deb146 | demo |
+--------------------------------------+------+
stack@ao-magnum-metal:~$ magnum container-show demo
ERROR: Invalid input for field/attribute container_uuid. Value: 'demo'. unable to convert to uuid (HTTP 400)

If I use the UUID for the container, that works. Please adjust so that the uuid can be correctly resolved from the name shown in the container-list output.

Changed in magnum:
assignee: nobody → chandan kumar (chkumar246)
Changed in magnum:
assignee: chandan kumar (chkumar246) → Andrew Melton (andrew-melton)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to magnum (master)

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

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

Reviewed: https://review.openstack.org/181990
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=769c3a423c1136b55f08dd5a7ed2711d69c21e78
Submitter: Jenkins
Branch: master

commit 769c3a423c1136b55f08dd5a7ed2711d69c21e78
Author: Andrew Melton <email address hidden>
Date: Fri May 8 10:54:53 2015 -0700

    Allow container name as identifier in API calls

    This change adds support for using a Container's name instead of
    it's UUID in Container API calls. If there is more than one
    Container with the same name, an exception will be raised and the
    user will need to provide a UUID instead.

    Closes-Bug: #1452650

    Change-Id: I058bde5f41016c91cf68a5b5c574d181a58e4836

Changed in magnum:
status: In Progress → Fix Committed
Adrian Otto (aotto)
Changed in magnum:
milestone: none → mitaka-2
status: Fix Committed → Fix Released
Adrian Otto (aotto)
Changed in magnum:
milestone: mitaka-2 → mitaka-1
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.