server list: 'Host' is invalid column name when --long is used

Bug #1524940 reported by Chris Snell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

If i'm running a 'server list' with the --long option chosen, I should be able to select those additional columns with the [-c COLUMN] parameter. In other words, I want to be able to do this:

% openstack server list --long -c Name,Host

On second thought, I think that Host should be available as an optional displayed column regardless of whether --long is specified.

Revision history for this message
Steve Martinelli (stevemar) wrote :

I think this might be user error.

$ openstack server list --long -c Host -c Name
+-----------+--------+
| Name | Host |
+-----------+--------+
| das_cloud | ubuntu |
+-----------+--------+

regarding the second questions, having "host" in the --long output, makes it by nature optional.

Revision history for this message
Chris Snell (chris-snell) wrote : Re: [Bug 1524940] Re: server list: 'Host' is invalid column name when --long is used

OK, seems to be working now with the double -c params. However, it doesn't
seem to work if --long is not specified before -c. That's contrary to the
usage help that's displayed to the user.

On Thu, Dec 10, 2015 at 11:20 AM, Steve Martinelli <email address hidden>
wrote:

> I think this might be user error.
>
> $ openstack server list --long -c Host -c Name
> +-----------+--------+
> | Name | Host |
> +-----------+--------+
> | das_cloud | ubuntu |
> +-----------+--------+
>
> regarding the second questions, having "host" in the --long output,
> makes it by nature optional.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1524940
>
> Title:
> server list: 'Host' is invalid column name when --long is used
>
> Status in python-openstackclient:
> New
>
> Bug description:
> If i'm running a 'server list' with the --long option chosen, I should
> be able to select those additional columns with the [-c COLUMN]
> parameter. In other words, I want to be able to do this:
>
> % openstack server list --long -c Name,Host
>
> On second thought, I think that Host should be available as an
> optional displayed column regardless of whether --long is specified.
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/python-openstackclient/+bug/1524940/+subscriptions
>

Revision history for this message
Steve Martinelli (stevemar) wrote :

Right, "c" should only work if the column is going to appear:

$ openstack server list -c Name
+-----------+
| Name |
+-----------+
| das_cloud |
+-----------+

$ openstack server list -c Host
No recognized column names in ['Host']

$ openstack server list -c Host --long
+--------+
| Host |
+--------+
| ubuntu |
+--------+

Changed in python-openstackclient:
status: New → Incomplete
Changed in python-openstackclient:
status: Incomplete → Invalid
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.