이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 19. compute
This chapter describes the commands under the compute command.
19.1. compute agent create 링크 복사링크가 클립보드에 복사되었습니다!
Create compute agent
Usage:
| Value | Summary |
|---|---|
| <os> | Type of os |
| <architecture> | Type of architecture |
| <version> | Version |
| <url> | Url |
| <md5hash> | Md5 hash |
| <hypervisor> | Type of hypervisor |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| Value | Summary |
|---|---|
| -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml} | The output format, defaults to table |
| -c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --prefix PREFIX | Add a prefix to all variable names |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
19.2. compute agent delete 링크 복사링크가 클립보드에 복사되었습니다!
Delete compute agent(s)
Usage:
openstack compute agent delete [-h] <id> [<id> ...]
openstack compute agent delete [-h] <id> [<id> ...]
| Value | Summary |
|---|---|
| <id> | Id of agent(s) to delete |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
19.3. compute agent list 링크 복사링크가 클립보드에 복사되었습니다!
List compute agents
Usage:
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --hypervisor <hypervisor> | Type of hypervisor |
| Value | Summary |
|---|---|
| -f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml} | The output format, defaults to table |
| -c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
| --sort-column SORT_COLUMN | Specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | When to include quotes, defaults to nonnumeric |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
19.4. compute agent set 링크 복사링크가 클립보드에 복사되었습니다!
Set compute agent properties
Usage:
openstack compute agent set [-h] [--agent-version <version>]
[--url <url>] [--md5hash <md5hash>]
<id>
openstack compute agent set [-h] [--agent-version <version>]
[--url <url>] [--md5hash <md5hash>]
<id>
| Value | Summary |
|---|---|
| <id> | Id of the agent |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --agent-version <version> | Version of the agent |
| --url <url> | Url of the agent |
| --md5hash <md5hash> | Md5 hash of the agent |
19.5. compute service delete 링크 복사링크가 클립보드에 복사되었습니다!
Delete compute service(s)
Usage:
openstack compute service delete [-h] <service> [<service> ...]
openstack compute service delete [-h] <service> [<service> ...]
| Value | Summary |
|---|---|
| <service> | Compute service(s) to delete (id only). if using ``--os-compute- api-version`` 2.53 or greater, the ID is a UUID which can be retrieved by listing compute services using the same 2.53+ microversion. |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
19.6. compute service list 링크 복사링크가 클립보드에 복사되었습니다!
List compute services. Using ``--os-compute-api-version`` 2.53 or greater will return the ID as a UUID value which can be used to uniquely identify the service in a multi-cell deployment.
Usage:
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --host <host> | List services on specified host (name only) |
| --service <service> | List only specified service binaries (name only). for example, ``nova-compute``, ``nova-conductor``, etc. |
| --long | List additional fields in output |
| Value | Summary |
|---|---|
| -f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml} | The output format, defaults to table |
| -c COLUMN, --column COLUMN | Specify the column(s) to include, can be repeated |
| --sort-column SORT_COLUMN | Specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated |
| Value | Summary |
|---|---|
| --quote {all,minimal,none,nonnumeric} | When to include quotes, defaults to nonnumeric |
| Value | Summary |
|---|---|
| --noindent | Whether to disable indenting the json |
| Value | Summary |
|---|---|
| --max-width <integer> | Maximum display width, <1 to disable. you can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence. |
| --fit-width | Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable |
| --print-empty | Print empty table if there is no data to show. |
19.7. compute service set 링크 복사링크가 클립보드에 복사되었습니다!
Set compute service properties
Usage:
openstack compute service set [-h] [--enable | --disable]
[--disable-reason <reason>]
[--up | --down]
<host> <service>
openstack compute service set [-h] [--enable | --disable]
[--disable-reason <reason>]
[--up | --down]
<host> <service>
| Value | Summary |
|---|---|
| <host> | Name of host |
| <service> | Name of service (binary name), for example ``nova- compute`` |
| Value | Summary |
|---|---|
| -h, --help | Show this help message and exit |
| --enable | Enable service |
| --disable | Disable service |
| --disable-reason <reason> | Reason for disabling the service (in quotes). should be used with --disable option. |
| --up | Force up service. requires ``--os-compute-api- version`` 2.11 or greater. |
| --down | Force down service. requires ``--os-compute-api- version`` 2.11 or greater. |