The magnum client is the command-line interface (CLI) for the Container Infrastructure Management service API and its extensions.
This chapter documents magnum version 2.3.1
.
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]
<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
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
usage: magnum bay-config [--dir <dir>] [--force] <bay>
Configure native client to access bay. You can source the output of this command to get the native client of the corresponding COE configured to access the bay. Example: eval $(magnum bay-config <bay-name>).
Positional arguments:
<bay>
Optional arguments:
--dir <dir>
--force
usage: magnum bay-create [--name <name>] --baymodel <baymodel>
[--node-count <node-count>]
[--master-count <master-count>]
[--discovery-url <discovery-url>]
[--timeout <timeout>]
Create a bay.
Optional arguments:
--name <name>
--baymodel <baymodel>
--node-count <node-count>
--master-count <master-count>
--discovery-url <discovery-url>
--timeout <timeout>
usage: magnum bay-delete <bay> [<bay> ...]
Delete specified bay.
Positional arguments:
<bay>
usage: magnum bay-list [--marker <marker>] [--limit <limit>]
[--sort-key <sort-key>] [--sort-dir <sort-dir>]
[--fields <fields>]
Print a list of available bays.
Optional arguments:
--marker <marker>
--limit <limit>
--sort-key <sort-key>
--sort-dir <sort-dir>
--fields <fields>
usage: magnum bay-show [--long] <bay>
Show details about the given bay.
Positional arguments:
<bay>
Optional arguments:
--long
usage: magnum bay-update <bay> <op> <path=value> [<path=value> ...]
Update information about the given bay.
Positional arguments:
<bay>
<op>
<path=value>
usage: magnum baymodel-create [--name <name>] --image-id <image-id>
--keypair-id <keypair-id> --external-network-id
<external-network-id> --coe <coe>
[--fixed-network <fixed-network>]
[--fixed-subnet <fixed-subnet>]
[--network-driver <network-driver>]
[--volume-driver <volume-driver>]
[--dns-nameserver <dns-nameserver>]
[--flavor-id <flavor-id>]
[--master-flavor-id <master-flavor-id>]
[--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 baymodel.
Optional arguments:
--name <name>
--image-id <image-id>
--keypair-id <keypair-id>
--external-network-id <external-network-id>
--coe <coe>
--fixed-network <fixed-network>
--fixed-subnet <fixed-subnet>
--network-driver <network-driver>
--volume-driver <volume-driver>
--dns-nameserver <dns-nameserver>
--flavor-id <flavor-id>
--master-flavor-id <master-flavor-id>
--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 baymodel-delete <baymodels> [<baymodels> ...]
Delete specified baymodel.
Positional arguments:
<baymodels>
usage: magnum baymodel-list [--limit <limit>] [--sort-key <sort-key>]
[--sort-dir <sort-dir>] [--fields <fields>]
Print a list of baymodels.
Optional arguments:
--limit <limit>
--sort-key <sort-key>
--sort-dir <sort-dir>
--fields <fields>
usage: magnum baymodel-show <baymodel>
Show details about the given baymodel.
Positional arguments:
<baymodel>
usage: magnum baymodel-update <baymodel> <op> <path=value> [<path=value> ...]
Updates one or more baymodel attributes.
Positional arguments:
<baymodel>
<op>
<path=value>
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 [--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:
--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 [--name <name>] --image-id <image-id>
--keypair-id <keypair-id>
--external-network-id
<external-network-id> --coe <coe>
[--fixed-network <fixed-network>]
[--fixed-subnet <fixed-subnet>]
[--network-driver <network-driver>]
[--volume-driver <volume-driver>]
[--dns-nameserver <dns-nameserver>]
[--flavor-id <flavor-id>]
[--master-flavor-id <master-flavor-id>]
[--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:
--name <name>
--image-id <image-id>
--keypair-id <keypair-id>
--external-network-id <external-network-id>
--coe <coe>
--fixed-network <fixed-network>
--fixed-subnet <fixed-subnet>
--network-driver <network-driver>
--volume-driver <volume-driver>
--dns-nameserver <dns-nameserver>
--flavor-id <flavor-id>
--master-flavor-id <master-flavor-id>
--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 <cluster> <op> <path=value> [<path=value> ...]
Update information about the given cluster.
Positional arguments:
<cluster>
<op>
<path=value>
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.