Containers service command-line clientThe magnum client is the command-line
interface (CLI) for the Containers service API and its extensions.
This chapter documents magnum version
0.2.1.
For help on a specific magnum
command, enter:
$magnumCOMMANDmagnum usageusage: magnum [--version] [--debug] [--os-cache]
[--os-region-name <region-name>]
[--os-tenant-id <auth-tenant-id>]
[--service-type <service-type>]
[--endpoint-type <endpoint-type>]
[--magnum-api-version <magnum-api-ver>]
[--os-cacert <ca-certificate>] [--bypass-url <bypass-url>]
[--os-auth-system <auth-system>] [--os-username <username>]
[--os-password <password>] [--os-tenant-name <tenant-name>]
[--os-token <token>] [--os-auth-url <auth-url>]
<subcommand> ...Subcommandsbay-create
Create a bay.
bay-delete
Delete specified bay.
bay-list
Print a list of available bays.
bay-show
Show details about the given bay.
bay-update
Update information about the given bay.
baymodel-create
Create a baymodel.
baymodel-delete
Delete specified baymodel.
baymodel-list
Print a list of bay models.
baymodel-show
Show details about the given baymodel.
container-create
Create a container.
container-delete
Delete specified containers.
container-execute
Execute command in a container.
container-list
Print a list of available containers.
container-logs
Get logs of a container.
container-pause
Pause specified containers.
container-reboot
Reboot specified containers.
container-show
Show details of a container.
container-start
Start specified containers.
container-stop
Stop specified containers.
container-unpause
Unpause specified containers.
node-create
Create a node.
node-list
Print a list of configured nodes.
pod-create
Create a pod.
pod-delete
Delete specified pod.
pod-list
Print a list of registered pods.
pod-show
Show details about the given pod.
pod-update
Update information about the given pod.
rc-create
Create a replication controller.
rc-delete
Delete specified replication controller.
rc-list
Print a list of registered replication controllers.
rc-show
Show details about the given replication controller.
rc-update
Update information about the given replication
controller.
service-create
Create a service.
service-delete
Delete specified service.
service-list
Print a list of services.
service-show
Show details about the given service.
service-update
Update information about the given service.
bash-completion
Prints arguments for bash-completion. Prints all of
the commands and options to stdout so that the
magnum.bash_completion script doesn't have to hard
code them.
help
Display help about this program or one of its
subcommands.
magnum optional arguments--version
show program's version number and exit
--debug
Print debugging output.
--os-cache
Use the auth token cache. Defaults to False if
env[OS_CACHE] is not set.
--os-region-name <region-name>
Region name. Default=env[OS_REGION_NAME].
--os-tenant-id <auth-tenant-id>
Defaults to env[OS_TENANT_ID].
--service-type <service-type>
Defaults to container for all actions.
--endpoint-type <endpoint-type>
Defaults to env[MAGNUM_ENDPOINT_TYPE] or publicURL.
--magnum-api-version <magnum-api-ver>
Accepts "api", defaults to env[MAGNUM_API_VERSION].
--os-cacert <ca-certificate>
Specify a CA bundle file to use in verifying a TLS
(https) server certificate. Defaults to
env[OS_CACERT].
--bypass-url <bypass-url>
Use this API endpoint instead of the Service Catalog.
magnum common authentication arguments--os-auth-system <auth-system>
Defaults to env[OS_AUTH_SYSTEM].
--os-username <username>
Defaults to env[OS_USERNAME].
--os-password <password>
Defaults to env[OS_PASSWORD].
--os-tenant-name <tenant-name>
Defaults to env[OS_TENANT_NAME].
--os-token <token>
Defaults to env[OS_TOKEN].
--os-auth-url <auth-url>
Defaults to env[OS_AUTH_URL].
magnum bay-createusage: magnum bay-create [--name <name>] --baymodel <baymodel>
[--node-count <node-count>]
[--discovery-url <discovery-url>]
[--timeout <timeout>]
Create a bay.
Optional arguments--name <name>
Name of the bay to create.
--baymodel <baymodel>
ID or name of the baymodel.
--node-count <node-count>
The bay node count.
--discovery-url <discovery-url>
Specifies custom discovery url for node discovery.
--timeout <timeout>
The timeout for bay creation in minutes. Set to 0 for
no timeout. The default is no timeout.
magnum bay-deleteusage: magnum bay-delete <bay> [<bay> ...]
Delete specified bay.
Positional arguments<bay>
ID or name of the (bay)s to delete.
magnum bay-listusage: magnum bay-list
Print a list of available bays.
magnum bay-showusage: magnum bay-show <bay>
Show details about the given bay.
Positional arguments<bay>
ID or name of the bay to show.
magnum bay-updateusage: magnum bay-update <bay> <op> <path=value> [<path=value> ...]
Update information about the given bay.
Positional arguments<bay>
UUID or name of bay
<op>
Operations: 'add', 'replace' or 'remove'
<path=value>
Attributes to add/replace or remove (only PATH is necessary on
remove)
magnum baymodel-createusage: 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>]
[--ssh-authorized-key <ssh-authorized-key>]
[--dns-nameserver <dns-nameserver>]
[--flavor-id <flavor-id>]
[--master-flavor-id <master-flavor-id>]
[--docker-volume-size <docker-volume-size>]
Create a baymodel.
Optional arguments--name <name>
Name of the bay to create.
--image-id <image-id>
The name or UUID of the base image to customize for
the bay.
--keypair-id <keypair-id>
The name or UUID of the SSH keypair to load into the
Bay nodes.
--external-network-id <external-network-id>
The external Neutron network ID to connect to this bay
model.
--coe <coe>
Specify the Container Orchestration Engine to use.
--fixed-network <fixed-network>
The private Neutron network name to connect to this
bay model.
--ssh-authorized-key <ssh-authorized-key>
The SSH authorized key to use
--dns-nameserver <dns-nameserver>
The DNS nameserver to use for this Bay.
--flavor-id <flavor-id>
The nova flavor id to use when launching the bay.
--master-flavor-id <master-flavor-id>
The nova flavor id to use when launching the master
nodeof the bay.
--docker-volume-size <docker-volume-size>
Specify the size of the docker volume to use.
magnum baymodel-deleteusage: magnum baymodel-delete <baymodels> [<baymodels> ...]
Delete specified baymodel.
Positional arguments<baymodels>
ID or name of the (baymodel)s to delete.
magnum baymodel-listusage: magnum baymodel-list
Print a list of bay models.
magnum baymodel-showusage: magnum baymodel-show <baymodel>
Show details about the given baymodel.
Positional arguments<baymodel>
ID of the baymodel to show.
magnum container-createusage: magnum container-create [--json JSON]
Create a container.
Optional arguments--json JSON
JSON representation of container.
magnum container-deleteusage: magnum container-delete <container> [<container> ...]
Delete specified containers.
Positional arguments<container>
ID or name of the (container)s to delete.
magnum container-executeusage: magnum container-execute --command <command> <container>
Execute command in a container.
Positional arguments<container>
ID or name of the container to start.
Optional arguments--command <command>
The command to execute
magnum container-listusage: magnum container-list
Print a list of available containers.
magnum container-logsusage: magnum container-logs <container>
Get logs of a container.
Positional arguments<container>
ID or name of the container to start.
magnum container-pauseusage: magnum container-pause <container> [<container> ...]
Pause specified containers.
Positional arguments<container>
ID or name of the (container)s to start.
magnum container-rebootusage: magnum container-reboot <container> [<container> ...]
Reboot specified containers.
Positional arguments<container>
ID or name of the (container)s to start.
magnum container-showusage: magnum container-show [--json] <container>
Show details of a container.
Positional arguments<container>
ID or name of the container to show.
Optional arguments--json
Print JSON representation of the container.
magnum container-startusage: magnum container-start <container> [<container> ...]
Start specified containers.
Positional arguments<container>
ID of the (container)s to start.
magnum container-stopusage: magnum container-stop <container> [<container> ...]
Stop specified containers.
Positional arguments<container>
ID or name of the (container)s to start.
magnum container-unpauseusage: magnum container-unpause <container> [<container> ...]
Unpause specified containers.
Positional arguments<container>
ID or name of the (container)s to start.
magnum node-createusage: magnum node-create [--type <type>] [--image-id <image-id>]
Create a node.
Optional arguments--type <type>
Type of node to create (virt or bare).
--image-id <image-id>
The name or UUID of the base image to use for the
node.
magnum node-listusage: magnum node-list
Print a list of configured nodes.
magnum pod-createusage: magnum pod-create [--manifest-url <manifest-url>]
[--manifest <manifest>] --bay <bay>
Create a pod.
Optional arguments--manifest-url <manifest-url>
Name/URL of the pod file to use for creating PODs.
--manifest <manifest>
File path of the pod file to use for creating PODs.
--bay <bay>
ID or name of the bay.
magnum pod-deleteusage: magnum pod-delete <pods> [<pods> ...]
Delete specified pod.
Positional arguments<pods>
ID or name of the (pod)s to delete.
magnum pod-listusage: magnum pod-list
Print a list of registered pods.
magnum pod-showusage: magnum pod-show <pod>
Show details about the given pod.
Positional arguments<pod>
ID or name of the pod to show.
magnum pod-updateusage: magnum pod-update <pod-id> <op> <path=value> [<path=value> ...]
Update information about the given pod.
Positional arguments<pod-id>
UUID or name of pod
<op>
Operations: 'add', 'replace' or 'remove'
<path=value>
Attributes to add/replace or remove (only PATH is necessary on
remove)
magnum rc-createusage: magnum rc-create [--manifest-url <manifest-url>]
[--manifest <manifest>] --bay <bay>
Create a replication controller.
Optional arguments--manifest-url <manifest-url>
Name/URL of the replication controller file to use for
creating replication controllers.
--manifest <manifest>
File path of the replication controller file to use
for creating replication controllers.
--bay <bay>
ID or name of the bay.
magnum rc-deleteusage: magnum rc-delete <rcs> [<rcs> ...]
Delete specified replication controller.
Positional arguments<rcs>
ID or name of the replication (controller)s to delete.
magnum rc-listusage: magnum rc-list
Print a list of registered replication controllers.
magnum rc-showusage: magnum rc-show <rc>
Show details about the given replication controller.
Positional arguments<rc>
ID or name of the replication controller to show.
magnum rc-updateusage: magnum rc-update <rc> <op> <path=value> [<path=value> ...]
Update information about the given replication controller.
Positional arguments<rc>
UUID or name of replication controller
<op>
Operations: 'add', 'replace' or 'remove'
<path=value>
Attributes to add/replace or remove (only PATH is necessary on
remove)
magnum service-createusage: magnum service-create [--manifest-url <manifest-url>]
[--manifest <manifest>] --bay <bay>
Create a service.
Optional arguments--manifest-url <manifest-url>
Name/URL of the serivce file to use for creating
services.
--manifest <manifest>
File path of the service file to use for creating
services.
--bay <bay>
Id or name of the bay.
magnum service-deleteusage: magnum service-delete <services> [<services> ...]
Delete specified service.
Positional arguments<services>
ID or name of the (service)s to delete.
magnum service-listusage: magnum service-list
Print a list of services.
magnum service-showusage: magnum service-show <service>
Show details about the given service.
Positional arguments<service>
ID or name of the service to show.
magnum service-updateusage: magnum service-update <service> <op> <path=value> [<path=value> ...]
Update information about the given service.
Positional arguments<service>
UUID or name of service
<op>
Operations: 'add', 'replace' or 'remove'
<path=value>
Attributes to add/replace or remove (only PATH is necessary on
remove)