The magnum client is the command-line interface (CLI) for the Container Infrastructure Management service (magnum) API and its extensions.
This chapter documents magnum version 2.5.0
.
For help on a specific magnum command, enter:
$ magnum help COMMAND
usage: magnum [--version] [--debug] [--os-cache]
[--os-region-name <region-name>] [--os-auth-url <auth-auth-url>]
[--os-user-id <auth-user-id>] [--os-username <auth-username>]
[--os-user-domain-id <auth-user-domain-id>]
[--os-user-domain-name <auth-user-domain-name>]
[--os-project-id <auth-project-id>]
[--os-project-name <auth-project-name>]
[--os-project-domain-id <auth-project-domain-id>]
[--os-project-domain-name <auth-project-domain-name>]
[--os-token <auth-token>] [--os-password <auth-password>]
[--service-type <service-type>]
[--os-endpoint-type <os-endpoint-type>]
[--os-cloud <auth-cloud>]
[--magnum-api-version <magnum-api-ver>]
[--os-cacert <ca-certificate>]
[--os-endpoint-override <endpoint-override>] [--insecure]
[--profile HMAC_KEY]
<subcommand> ...
Subcommands:
baymodel-create
baymodel-delete
baymodel-list
baymodel-show
baymodel-update
bay-config
bay-create
bay-delete
bay-list
bay-show
bay-update
ca-show
ca-sign
cluster-config
cluster-create
cluster-delete
cluster-list
cluster-show
cluster-update
cluster-template-create
cluster-template-delete
cluster-template-list
cluster-template-show
cluster-template-update
service-list
stats-list
bash-completion
help
--version
--debug
--os-cache
env[OS_CACHE]
is not set.--os-region-name <region-name>
env[OS_REGION_NAME]
.--os-auth-url <auth-auth-url>
env[OS_AUTH_URL]
.--os-user-id <auth-user-id>
env[OS_USER_ID]
.--os-username <auth-username>
env[OS_USERNAME]
.--os-user-domain-id <auth-user-domain-id>
env[OS_USER_DOMAIN_ID]
.--os-user-domain-name <auth-user-domain-name>
env[OS_USER_DOMAIN_NAME]
.--os-project-id <auth-project-id>
env[OS_PROJECT_ID]
.--os-project-name <auth-project-name>
env[OS_PROJECT_NAME]
.--os-project-domain-id <auth-project-domain-id>
env[OS_PROJECT_DOMAIN_ID]
.--os-project-domain-name <auth-project-domain-name>
env[OS_PROJECT_DOMAIN_NAME]
.--os-token <auth-token>
env[OS_TOKEN]
.--os-password <auth-password>
env[OS_PASSWORD]
.--service-type <service-type>
--os-endpoint-type <os-endpoint-type>
env[OS_ENDPOINT_TYPE]
--os-cloud <auth-cloud>
env[OS_CLOUD]
.--magnum-api-version <magnum-api-ver>
env[MAGNUM_API_VERSION]
.--os-cacert <ca-certificate>
env[OS_CACERT]
.--os-endpoint-override <endpoint-override>
--insecure
--profile HMAC_KEY
usage: magnum ca-show [--bay <bay>] [--cluster <cluster>]
Show details about the CA certificate for a bay or cluster.
Optional arguments:
--bay <bay>
--cluster <cluster>
usage: magnum ca-sign [--csr <csr>] [--bay <bay>] [--cluster <cluster>]
Generate the CA certificate for a bay or cluster.
Optional arguments:
--csr <csr>
--bay <bay>
--cluster <cluster>
usage: magnum cluster-config [--dir <dir>] [--force] <cluster>
Configure native client to access cluster. You can source the output of this command to get the native client of the corresponding COE configured to access the cluster. Example: eval $(magnum cluster-config <cluster-name>).
Positional arguments:
<cluster>
Optional arguments:
--dir <dir>
--force
usage: magnum cluster-create [--keypair-id <keypair> | --keypair <keypair>]
[--name <name>] --cluster-template
<cluster_template> [--node-count <node-count>]
[--master-count <master-count>]
[--discovery-url <discovery-url>]
[--timeout <timeout>]
Create a cluster.
Optional arguments:
--keypair-id <keypair>
--keypair <keypair>
--name <name>
--cluster-template <cluster_template>
--node-count <node-count>
--master-count <master-count>
--discovery-url <discovery-url>
--timeout <timeout>
usage: magnum cluster-delete <cluster> [<cluster> ...]
Delete specified cluster.
Positional arguments:
<cluster>
usage: magnum cluster-list [--marker <marker>] [--limit <limit>]
[--sort-key <sort-key>] [--sort-dir <sort-dir>]
[--fields <fields>]
Print a list of available clusters.
Optional arguments:
--marker <marker>
--limit <limit>
--sort-key <sort-key>
--sort-dir <sort-dir>
--fields <fields>
usage: magnum cluster-show [--long] <cluster>
Show details about the given cluster.
Positional arguments:
<cluster>
Optional arguments:
--long
usage: magnum cluster-template-create
[--keypair-id <keypair> | --keypair <keypair>]
(--external-network-id <external-network> | --external-network <external-network>)
[--master-flavor-id <master-flavor> | --master-flavor <master-flavor>]
[--flavor-id <flavor> | --flavor <flavor>]
(--image-id <image> | --image <image>)
[--name <name>] --coe <coe>
[--fixed-network <fixed-network>]
[--fixed-subnet <fixed-subnet>]
[--network-driver <network-driver>]
[--volume-driver <volume-driver>]
[--dns-nameserver <dns-nameserver>]
[--docker-volume-size <docker-volume-size>]
[--docker-storage-driver <docker-storage-driver>]
[--http-proxy <http-proxy>]
[--https-proxy <https-proxy>]
[--no-proxy <no-proxy>]
[--labels <KEY1=VALUE1,KEY2=VALUE2;KEY3=VALUE3...>]
[--tls-disabled] [--public]
[--registry-enabled]
[--server-type <server-type>]
[--master-lb-enabled]
[--floating-ip-enabled]
Create a cluster template.
Optional arguments:
--keypair-id <keypair>
--keypair <keypair>
--external-network-id <external-network>
--external-network <external-network>
--master-flavor-id <master-flavor>
--master-flavor <master-flavor>
--flavor-id <flavor>
--flavor <flavor>
--image-id <image>
--image <image>
--name <name>
--coe <coe>
--fixed-network <fixed-network>
--fixed-subnet <fixed-subnet>
--network-driver <network-driver>
--volume-driver <volume-driver>
--dns-nameserver <dns-nameserver>
--docker-volume-size <docker-volume-size>
--docker-storage-driver <docker-storage-driver>
--http-proxy <http-proxy>
--https-proxy <https-proxy>
--no-proxy <no-proxy>
--labels <KEY1=VALUE1,KEY2=VALUE2;KEY3=VALUE3...>
--tls-disabled
--public
--registry-enabled
--server-type <server-type>
--master-lb-enabled
--floating-ip-enabled
usage: magnum cluster-template-delete <cluster_templates>
[<cluster_templates> ...]
Delete specified cluster template.
Positional arguments:
<cluster_templates>
usage: magnum cluster-template-list [--limit <limit>] [--sort-key <sort-key>]
[--sort-dir <sort-dir>]
[--fields <fields>]
Print a list of cluster templates.
Optional arguments:
--limit <limit>
--sort-key <sort-key>
--sort-dir <sort-dir>
--fields <fields>
usage: magnum cluster-template-show <cluster_template>
Show details about the given cluster template.
Positional arguments:
<cluster_template>
usage: magnum cluster-template-update <cluster_template> <op> <path=value>
[<path=value> ...]
Updates one or more cluster template attributes.
Positional arguments:
<cluster_template>
<op>
<path=value>
usage: magnum cluster-update [--rollback]
<cluster> <op> <path=value> [<path=value> ...]
Update information about the given cluster.
Positional arguments:
<cluster>
<op>
<path=value>
Optional arguments:
--rollback
usage: magnum stats-list [--project-id <project-id>]
Show stats for the given project_id
Optional arguments:
--project-id <project-id>
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.