List (server) details API ignores 'host' filter

Bug #1055983 reported by Unmesh Gurjar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Medium
Unmesh Gurjar
python-novaclient
Fix Released
Undecided
Unmesh Gurjar

Bug Description

Branch: master

Scenario:
1. Use the 'nova list --host <host-name>' command to list instances on a specific Compute host.
2. Observe the result returned.

Actual Results:
The 'host' filter is ignored and all the 'active' instances are reported.

Expected Result:
Only the instances running on the specified host should be reported.

Observation:
1. The API specification for List details server ( v2/{tenant-id}/servers/detail ) does not list 'host' in the request parameters.

Solution:
1. Support should be added in Nova list server details API to consider the 'host' parameter.
2. The 'nova list' command help should be updated (remove the 'host' parameter from it).

Tags: ntt
Changed in nova:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
tags: added: ntt
Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Rohan (kanaderohan) wrote :

For the 'nova list' command the flags '--host' , '--instance-name' , '--ip', '--ip6' are allowed for use by user which have "admin" role. So to fix this bug , we should

Update the "nova help list" output in python-novaclient such that these flags '--host' , '--instance-name' , '--ip', '--ip6' contain a help note "(Admin only)" in the end of their description.

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/15387

Changed in python-novaclient:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/15387
Committed: http://github.com/openstack/python-novaclient/commit/e9c16ca33ad035fda38d42ec3f7e9e40e56cbf6b
Submitter: Jenkins
Branch: master

commit e9c16ca33ad035fda38d42ec3f7e9e40e56cbf6b
Author: Unmesh Gurjar <email address hidden>
Date: Sun Nov 4 23:20:37 2012 -0800

    Updated the help text for nova list command.

    Few options in the nova list command are admin specific. Updated the help text
    to specify the admin only options explitcitly.

    Fixes LP: #1055983

    Change-Id: Icf8a76e79b9d5399298dacce31b1cc0873f63d71

Changed in python-novaclient:
status: In Progress → Fix Committed
Revision history for this message
wangpan (hzwangpan) wrote :

I think this bug doesn't need to be fixed in nova, so I change it to 'invalid', if its incorrect, fix me pls.

Changed in nova:
status: Confirmed → Invalid
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.