This ensures we have version-specific references to other projects [1]. Note that this doesn't mean the URLs are actually valid - we need to do more work (linkcheck?) here, but it's an improvement nonetheless. [1] https://docs.openstack.org/openstackdocstheme/latest/#external-link-helper Change-Id: Ifb99e727110c4904a85bc4a13366c2cae300b8df
2.2 KiB
Manage the cloud
common/nova-show-usage-statistics-for-hosts-instances.rst
System administrators can use the openstack to manage their clouds.
The openstack client can be used by all users, though
specific commands might be restricted by the Identity service.
Managing the cloud with the openstack client
The
python-openstackclientpackage provides anopenstackshell that enables Compute API interactions from the command line. Install the client, and provide your user name and password (which can be set as environment variables for convenience), for the ability to administer the cloud from the command line.For more information on
python-openstackclient, refer to thedocumentation <>.Confirm the installation was successful:
$ openstack help usage: openstack [--version] [-v | -q] [--log-file LOG_FILE] [-h] [--debug] [--os-cloud <cloud-config-name>] [--os-region-name <auth-region-name>] [--os-cacert <ca-bundle-file>] [--verify | --insecure] [--os-default-domain <auth-domain>] ...Running
openstack helpreturns a list ofopenstackcommands and parameters. To get help for a subcommand, run:$ openstack help SUBCOMMANDFor a complete list of
openstackcommands and parameters, refer to theOpenStack Command-Line Reference <cli/index.html>.Set the required parameters as environment variables to make running commands easier. For example, you can add
--os-usernameas anopenstackoption, or set it as an environment variable. To set the user name, password, and project as environment variables, use:$ export OS_USERNAME=joecool $ export OS_PASSWORD=coolword $ export OS_TENANT_NAME=cooluThe Identity service gives you an authentication endpoint, which Compute recognizes as
OS_AUTH_URL:$ export OS_AUTH_URL=http://hostname:5000/v2.0