2015-10-23 06:08:27 |
Kan |
bug |
|
|
added bug |
2015-10-23 06:11:21 |
Kan |
python-ironicclient: assignee |
|
Kan (kansks) |
|
2015-10-23 06:12:22 |
Kan |
description |
Take 'node' as an example, the valid fields are as follows:
Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
But when using the fields in resource.lables such as 'UUID' instead of 'uuid' in resource.fileds, there will be an error like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields UUID
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: Invalid field(s) requested: UUID. Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
When using the correct field 'uuid', the output is like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields uuid
+--------------------------------------+
| UUID |
+--------------------------------------+
| 0a1d4968-8dcf-42c7-93b5-5cca074430db |
| a62fb720-d5e1-4c37-b171-fb3c55139f43 |
| 7feb31d8-366b-4b17-9e36-f2802c07df5f |
+--------------------------------------+
So, although the output is shown as 'UUID', it can not be used in the fields arguments.
Comparing with the 'sort-key' arguments in list command:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --sort-key abc
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: abc is an invalid field for sorting, valid values for --sort-key are: ['target_power_state', 'target_provision_state', 'last_error', 'updated_at', 'maintenance_reason', 'Target Power State', 'Maintenance', 'provision_state', 'Created At', 'Console Enabled', 'Maintenance Reason', 'uuid', 'name', 'console_enabled', 'Driver', 'Target Provision State', 'provision_updated_at', 'maintenance', 'Reservation', 'power_state', 'Power State', 'inspection_started_at', 'inspection_finished_at', 'Name', 'Provisioning State', 'driver', 'reservation', 'Inspection Started At', 'Instance UUID', 'instance_uuid', 'UUID', 'Inspection Finished At', 'created_at', 'Last Error', 'Updated At', 'Provision Updated At']
The error info shows the valid values containing resource.fields and resource.labels.
So, for 'fields' argument, the error info of valid fields should contain both resource.fields and resource.labels, just like 'sort-key' does. |
Take 'node' as an example, the valid fields are as follows:
Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
But when using the fields in resource.lables such as 'UUID' instead of 'uuid' in resource.fileds, there will be an error like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields UUID
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: Invalid field(s) requested: UUID. Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
When using the correct field 'uuid', the output is like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields uuid
+--------------------------------------+
| UUID |
+--------------------------------------+
| 0a1d4968-8dcf-42c7-93b5-5cca074430db |
| a62fb720-d5e1-4c37-b171-fb3c55139f43 |
| 7feb31d8-366b-4b17-9e36-f2802c07df5f |
+--------------------------------------+
So, although the output is shown as 'UUID', it can not be used in the fields arguments.
Comparing with the 'sort-key' arguments in list command:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --sort-key abc
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: abc is an invalid field for sorting, valid values for --sort-key are: ['target_power_state', 'target_provision_state', 'last_error', 'updated_at', 'maintenance_reason', 'Target Power State', 'Maintenance', 'provision_state', 'Created At', 'Console Enabled', 'Maintenance Reason', 'uuid', 'name', 'console_enabled', 'Driver', 'Target Provision State', 'provision_updated_at', 'maintenance', 'Reservation', 'power_state', 'Power State', 'inspection_started_at', 'inspection_finished_at', 'Name', 'Provisioning State', 'driver', 'reservation', 'Inspection Started At', 'Instance UUID', 'instance_uuid', 'UUID', 'Inspection Finished At', 'created_at', 'Last Error', 'Updated At', 'Provision Updated At']
The error info shows the valid values containing resource.fields and resource.labels.
So, for 'fields' argument, the error info of valid fields should contain both resource.fields and resource.labels, just like 'sort-key' does. |
|
2015-10-23 07:20:20 |
Kan |
description |
Take 'node' as an example, the valid fields are as follows:
Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
But when using the fields in resource.lables such as 'UUID' instead of 'uuid' in resource.fileds, there will be an error like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields UUID
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: Invalid field(s) requested: UUID. Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
When using the correct field 'uuid', the output is like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields uuid
+--------------------------------------+
| UUID |
+--------------------------------------+
| 0a1d4968-8dcf-42c7-93b5-5cca074430db |
| a62fb720-d5e1-4c37-b171-fb3c55139f43 |
| 7feb31d8-366b-4b17-9e36-f2802c07df5f |
+--------------------------------------+
So, although the output is shown as 'UUID', it can not be used in the fields arguments.
Comparing with the 'sort-key' arguments in list command:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --sort-key abc
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: abc is an invalid field for sorting, valid values for --sort-key are: ['target_power_state', 'target_provision_state', 'last_error', 'updated_at', 'maintenance_reason', 'Target Power State', 'Maintenance', 'provision_state', 'Created At', 'Console Enabled', 'Maintenance Reason', 'uuid', 'name', 'console_enabled', 'Driver', 'Target Provision State', 'provision_updated_at', 'maintenance', 'Reservation', 'power_state', 'Power State', 'inspection_started_at', 'inspection_finished_at', 'Name', 'Provisioning State', 'driver', 'reservation', 'Inspection Started At', 'Instance UUID', 'instance_uuid', 'UUID', 'Inspection Finished At', 'created_at', 'Last Error', 'Updated At', 'Provision Updated At']
The error info shows the valid values containing resource.fields and resource.labels.
So, for 'fields' argument, the error info of valid fields should contain both resource.fields and resource.labels, just like 'sort-key' does. |
Take 'node' as an example, the valid fields are as follows:
Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
But when using the fields in resource.lables such as 'UUID' instead of 'uuid' in resource.fileds, there will be an error like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields UUID
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: Invalid field(s) requested: UUID. Valid fields are: chassis_uuid, created_at, clean_step, console_enabled, driver, driver_info, driver_internal_info, extra, instance_info, instance_uuid, last_error, maintenance, maintenance_reason, power_state, properties, provision_state, provision_updated_at, reservation, target_power_state, target_provision_state, updated_at, inspection_finished_at, inspection_started_at, uuid, name.
When using the correct field 'uuid', the output is like:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --fields uuid
+--------------------------------------+
| UUID |
+--------------------------------------+
| 0a1d4968-8dcf-42c7-93b5-5cca074430db |
| a62fb720-d5e1-4c37-b171-fb3c55139f43 |
| 7feb31d8-366b-4b17-9e36-f2802c07df5f |
+--------------------------------------+
So, although the output is shown as 'UUID', it can not be used in the fields arguments.
Comparing with the 'sort-key' arguments in list command:
ubuntu@acdc-ironicclient:~/devstack$ ironic node-list --sort-key abc
usage: ironic node-list [--limit <limit>] [--marker <node>]
[--sort-key <field>] [--sort-dir <direction>]
[--maintenance <boolean>] [--associated <boolean>]
[--provision-state <provision-state>] [--detail]
[--fields <field> [<field> ...]]
ironic node-list: error: abc is an invalid field for sorting, valid values for --sort-key are: ['target_power_state', 'target_provision_state', 'last_error', 'updated_at', 'maintenance_reason', 'Target Power State', 'Maintenance', 'provision_state', 'Created At', 'Console Enabled', 'Maintenance Reason', 'uuid', 'name', 'console_enabled', 'Driver', 'Target Provision State', 'provision_updated_at', 'maintenance', 'Reservation', 'power_state', 'Power State', 'inspection_started_at', 'inspection_finished_at', 'Name', 'Provisioning State', 'driver', 'reservation', 'Inspection Started At', 'Instance UUID', 'instance_uuid', 'UUID', 'Inspection Finished At', 'created_at', 'Last Error', 'Updated At', 'Provision Updated At']
The error info shows the valid values containing resource.fields and resource.labels.
So, for 'fields' argument, the error info of valid fields should contain both resource.fields and resource.labels, just like 'sort-key' does.
The commands are:
chassis-list
chassis-node-list
node-list
node-port-list
port-list
chassis-show
node-show
port-show |
|
2015-11-15 15:01:26 |
OpenStack Infra |
python-ironicclient: status |
New |
In Progress |
|
2015-11-23 15:38:18 |
Dmitry Tantsur |
python-ironicclient: importance |
Undecided |
Medium |
|
2016-09-14 12:06:45 |
Dmitry Tantsur |
python-ironicclient: status |
In Progress |
Triaged |
|
2016-09-14 12:06:49 |
Dmitry Tantsur |
python-ironicclient: assignee |
Kan (kansks) |
|
|
2016-09-14 12:07:12 |
Dmitry Tantsur |
tags |
|
low-hanging-fruit |
|
2016-09-17 05:31:10 |
Harish Kumar |
python-ironicclient: assignee |
|
Harish Kumar (hkumarmk) |
|
2016-09-17 07:16:20 |
Harish Kumar |
python-ironicclient: assignee |
Harish Kumar (hkumarmk) |
|
|
2016-09-29 10:41:44 |
haris |
python-ironicclient: assignee |
|
haris (haristanvir) |
|
2016-09-30 15:16:13 |
haris |
python-ironicclient: assignee |
haris (haristanvir) |
|
|
2016-09-30 17:19:53 |
haris |
python-ironicclient: assignee |
|
haris (haristanvir) |
|
2016-09-30 23:41:45 |
OpenStack Infra |
python-ironicclient: status |
Triaged |
In Progress |
|