-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84b7f8f
commit 84f3cd2
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
$ ./cli.py | ||
Welcome to the OpenStack interactive shell. | ||
Type 'help' or '?' to list commands. | ||
|
||
(openstack) ? | ||
|
||
Documented commands (type help <topic>): | ||
======================================== | ||
help q quit run set | ||
|
||
(openstack) ? set | ||
|
||
Set a resource or set properties for the currently selected resource. | ||
|
||
Usage: | ||
set resource <servers|users|projects|flavors|hypervisors> | ||
set properties <comma_separated_list_of_properties> | ||
set domain | ||
|
||
(openstack) ? set resource | ||
Usage: | ||
set resource <servers|users|projects|flavors|hypervisors> | ||
|
||
Description: | ||
- Selects the type of resource you want to work with. | ||
|
||
(openstack) ? set properties | ||
You must set a resource first before setting properties. | ||
|
||
Usage: | ||
set properties <prop1, prop2, ...> | ||
|
||
Description: | ||
- Sets properties on the currently selected resource. | ||
- Properties must be valid for that resource. | ||
- Comma-separated, whitespace is ignored. | ||
|
||
(openstack) set resource servers | ||
Resource set to servers. | ||
(openstack) ? set properties | ||
Valid properties for the current resource: | ||
flavor_id [type: string] - The ID of the Flavor the Server is using | ||
hypervisor_name [type: string] - Name of the Hypervisor | ||
image_id [type: string] - The ID of the Image the Server is using | ||
project_id [type: string] - The ID of the Project | ||
created_at [type: string] - Timestamp of creation. | ||
description [type: string] - User-provided server description. | ||
desc [type: string] - User-provided server description. | ||
id [type: string] - Unique ID assigned to the server. | ||
uuid [type: string] - Unique ID assigned to the server. | ||
updated_at [type: string] - Last updated timestamp. | ||
vm_name [type: string] - User-provided name for the server. | ||
name [type: string] - User-provided name for the server. | ||
vm_status [type: string] - State of this server. | ||
status [type: string] - State of this server. | ||
user_id [type: string] - ID of the owner of the server. | ||
ips [type: string] - IP addresses associated with the server. | ||
vm_ips [type: string] - IP addresses associated with the server. | ||
server_ips [type: string] - IP addresses associated with the server. | ||
(openstack) q | ||
Quitting the OpenStack shell... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
$ ./cli.py | ||
Welcome to the OpenStack interactive shell. | ||
Type 'help' or '?' to list commands. | ||
|
||
(openstack) set resource servers | ||
Resource set to servers. | ||
(openstack) set properties name, id | ||
openstackquery.api.query_api - DEBUG - selected props are now: ['SERVER_NAME', 'SERVER_ID'] | ||
Properties set to: name, id | ||
(openstack) set domain openstack | ||
Domain set to: openstack | ||
(openstack) run | ||
openstackquery.query_blocks.query_executor - DEBUG - openstack connection established - using cloud account 'openstack' | ||
openstackquery.runners.server_runner - WARNING - Query will only work on the scoped project id: ce3c1ed2fb19421e9bf0291a14e13256 | ||
openstackquery.runners.runner_utils - DEBUG - running conn.identity.find_project(ce3c1ed2fb19421e9bf0291a14e13256, ignore_missing=False) | ||
openstackquery.query_blocks.query_executor - DEBUG - running query 1 / 1 | ||
openstackquery.runners.server_runner - DEBUG - running query on 1 projects | ||
openstackquery.runners.server_runner - DEBUG - running query on project 1 / 1 (id: ce3c1ed2fb19421e9bf0291a14e13256) | ||
openstackquery.runners.server_runner - DEBUG - running openstacksdk command conn.compute.servers (project_id=ce3c1ed2fb19421e9bf0291a14e13256) | ||
openstackquery.runners.runner_utils - DEBUG - starting page loop, completed 1 loops | ||
openstackquery.runners.runner_utils - DEBUG - page loop terminated | ||
openstackquery.query_blocks.query_executor - INFO - Query Complete! Found 7 items. Time elapsed: 2.1897 seconds | ||
+----------------------------------------+--------------------------------------+ | ||
| server_name | server_id | | ||
+========================================+======================================+ | ||
| Gitlab CI CD Pipeline Image Builder VM | 7e9a1ee7-938f-480a-a973-5611876b9910 | | ||
+----------------------------------------+--------------------------------------+ | ||
| FTS-official-rpm-test | f9335de8-0f69-4724-b7f4-27263e972417 | | ||
+----------------------------------------+--------------------------------------+ | ||
| test_openstack_python | 009eedc7-d69b-4796-86e5-a3da0f7bbb40 | | ||
+----------------------------------------+--------------------------------------+ | ||
| test_openstack_python | c596d083-4ecf-42ba-9105-60dfbbd7d008 | | ||
+----------------------------------------+--------------------------------------+ | ||
| fts-rpm-build-rocky9 | 9acd6c69-64b0-4d01-9195-73a066a9688a | | ||
+----------------------------------------+--------------------------------------+ | ||
| test fts rocky 9 | 84dad552-245f-423d-9dca-5ab620c8fc39 | | ||
+----------------------------------------+--------------------------------------+ | ||
| docker_build_sandbox | 33971f2f-5af7-4538-b82c-be59901686e5 | | ||
+----------------------------------------+--------------------------------------+ | ||
|
||
|
||
Query run successfully. |