nova cli commands can not distinguish upper or lower

Bug #1318503 reported by lizheming
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Low
Tomofumi Hayashi

Bug Description

when I use nova cli commands, I find some issues.

1. Creat 2 vms.
+--------------------------------------+--------+--------+------------+-------------+-------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------+--------+------------+-------------+-------------------------------------+
| fe3ae889-dbd3-43c0-abcf-6791e6896648 | TESTLI | ACTIVE | - | Running | public=172.24.4.4 |
| 42b8b7ab-d4c2-4f83-839a-784a6506a5d2 | testli | ACTIVE | - | Running | public=172.24.4.3; private=10.0.0.2 |
+--------------------------------------+--------+--------+------------+-------------+-------------------------------------+
the first is upper, the second is lover.

2. nova show the vm.
1) nova show TESTLI
return is OK

2)nova show testli
return like this:
ERROR (CommandError): Multiple server matches found for 'testli', use an ID to be more specific.

3. use other nova cli commands
nova suspend, nova start and so on, it is the same as "nova show"

lizheming (lizheming-li)
Changed in python-novaclient:
assignee: nobody → lizheming (lizheming-li)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

Changed in python-novaclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-novaclient (master)

Change abandoned by lizheming (<email address hidden>) on branch: master
Review: https://review.openstack.org/100819

lizheming (lizheming-li)
Changed in python-novaclient:
assignee: lizheming (lizheming-li) → nobody
Changed in python-novaclient:
assignee: nobody → Tomofumi Hayashi (s1061123)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

melanie witt (melwitt)
Changed in python-novaclient:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/152422
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=0fd8816aa51b69034929c56d5e053d87d93ce021
Submitter: Jenkins
Branch: master

commit 0fd8816aa51b69034929c56d5e053d87d93ce021
Author: Tomofumi Hayashi <email address hidden>
Date: Thu Feb 5 02:32:58 2015 +0000

    Change logic in find_resource() to identify upper-case/lower-case name.

    Currently find_resource() searches resource with human_id before does
    with name_attr. With this logic, find_resource() cannot identify
    upper/lower case. In find_resource(), human_id always matches and
    name_attr never used in find_resource() because human_id made from
    small letters of name_attr string (see bug/1318503).

    To identify upper/lower case, name_attr should be used before human_id.
    This fix moves name_attr to ahead of human_id with unit-test cases.

    Change-Id: I9b821d7111c11a97be38f19de06172daf410022d
    Closes-Bug: #1318503

Changed in python-novaclient:
status: In Progress → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
milestone: none → 2.21.0
Michael Still (mikal)
Changed in python-novaclient:
status: Fix Committed → 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.