OpenStack nova 服务指令

在OpenStack juno版本中,使用指令 add-floating-ip 时,help中提示:

DEPRECATED, use floating-ip-associate instead,建议使用 floating-ip-associate 指令,参数格式相同。

两个指令目前都可以使用。


以下至结尾为转载内容

转载地址:http://www.360doc.com/content/13/0827/11/8504707_310209645.shtml

nova commands

OpenStack nova 服务指令

Describes commands for nova, which is the command-line interface for the OpenStack Compute API and its extensions.

For help on a specific nova command, enter:

描述了有关OpenStack Compute API的命令行接口及其扩展。查看nova的帮助说明,请输入:

nova help COMMAND
 

Example 10. Usage

例10:使用说明

nova [--version] [--debug] [--os-cache] [--timings]
     [--timeout <seconds>] [--os-username <auth-user-name>]
     [--os-password <auth-password>]
     [--os-tenant-name <auth-tenant-name>] [--os-auth-url <auth-url>]
     [--os-region-name <region-name>] [--os-auth-system <auth-system>]
     [--service-type <service-type>] [--service-name <service-name>]
     [--volume-service-name <volume-service-name>]
     [--endpoint-type <endpoint-type>]
     [--os-compute-api-version <compute-api-ver>]
     [--os-cacert <ca-certificate>] [--insecure]
     [--bypass-url <bypass-url>]
     <subcommand> ...

 

Example 11. Positional arguments

例11:位置参数

<subcommand>
    absolute-limits     Print a list of absolute limits for a user(单个用户的限制列表)
    add-fixed-ip        Add new IP address on a network to server.(在网络上,为服务器添加一个新的IP地址)
    add-floating-ip     Add a floating IP address to a server.(为服务器添加一个非固定的IP地址)
    add-secgroup        Add a Security Group to a server.(为服务器添加一个安全组)
    agent-create        Creates a new agent build.(创建一个新的代理构件)
    agent-delete        Deletes an existing agent build.(删除一个已存在的代理构件)
    agent-list          List all builds(列出所有的构件)
    agent-modify        Modify an existing agent build.(修改一个已存在的代理构件)
    aggregate-add-host  Add the host to the specified aggregate.(为指定的聚合添加主机)
    aggregate-create    Create a new aggregate with the specified details.(使用指定的详细信息,创建一个新的聚合)
    aggregate-delete    Delete the aggregate by its id.(通过ID,删除一个聚合)
    aggregate-details   Show details of the specified aggregate.(显示指定聚合的详细信息)
    aggregate-list      Print a list of all aggregates.(打印所有聚合的列表)
    aggregate-remove-host
                        Remove the specified host from the specified
                        aggregate.(从指定的聚合上移除指定的主机)
    aggregate-set-metadata
                        Update the metadata associated with the aggregate.(更新聚合相关联的元数据)
    aggregate-update    Update the aggregate's name and optionally
                        availability zone.(更新聚合的名称以及区域的选择性)
    availability-zone-list
                        List all the availability zones.(列出所有可用的区域)
    backup              Backup a instance by create a 'backup' type snapshot (通过创建一个backup类型的快照来备份一个实例
    boot                Boot a new server. (引导起动一个新的服务器)
    clear-password      Clear password for a server. (清空服务器的密码)
    cloudpipe-configure
                        Update the VPN IP/port of a cloudpipe instance (更新云通道实例的VPN IP、端口)
    cloudpipe-create    Create a cloudpipe instance for the given project (为指定的项目创建一个云通道实例)
    cloudpipe-list      Print a list of all cloudpipe instances. (打印所有云通道实例的列表)
    console-log         Get console log output of a server. (取得服务器的控制台输出日志)
    coverage-report     Generate a coverage report (生成覆盖率报告)
    coverage-reset      Reset coverage data. (重置覆盖率数据)
    coverage-start      Start Nova coverage reporting (开始Nova的覆盖率报告)
    coverage-stop       Stop Nova coverage reporting (停止Nova覆盖率报告)
    credentials         Show user credentials returned from auth (显示从授权中心返回的用户凭证)
    delete              Immediately shut down and delete specified server(s). (立即关闭、同时删除指定的一个或多个服务器)
    diagnostics         Retrieve server diagnostics. (取得服务器诊断结果)
    dns-create          Create a DNS entry for domain, name and ip. (创建一个DNS,包括域名、名称、IP)
    dns-create-private-domain
                        Create the specified DNS domain. (创建一个指定的DNS域)
    dns-create-public-domain
                        Create the specified DNS domain. (创建一个指定的DNS域)
    dns-delete          Delete the specified DNS entry. (删除指定的DNS)
    dns-delete-domain   Delete the specified DNS domain. (删除指定的DNS域)
    dns-domains         Print a list of available dns domains. (打印可用的DNS域名列表)
    dns-list            List current DNS entries for domain and ip or domain
                        and name. (列出当前的DNS,包括域名和IP,或者域名和名称)
    endpoints           Discover endpoints that get returned from the
                        authenticate services (查找从授权服务返回的endpoint)
    evacuate            Evacuate server from failed host to specified one. (从故障主机撤离到一个指定的主机上)
    fixed-ip-get        Get info on a fixed ip (从固定IP上取得信息)
    fixed-ip-reserve    Reserve a fixed ip (预定一个固定IP)
    fixed-ip-unreserve  Unreserve a fixed ip(不保留一个固定IP)
    flavor-access-add   Add flavor access for the given tenant. (给指定的租户添加一个访问配制)
    flavor-access-list  Print access information about the given flavor. (打印指定的配制的访问信息)
    flavor-access-remove
                        Remove flavor access for the given tenant. (移除指定租户的访问配制)
    flavor-create       Create a new flavor (创建一个新的配置)
    flavor-delete       Delete a specific flavor (删除一个指定的配置)
    flavor-key          Set or unset extra_spec for a flavor. (设置或取消一个额外的配置)
    flavor-list         Print a list of available 'flavors' (sizes of
                        servers). (打印可用的配置的列表)
    flavor-show         Show details about the given flavor. (显示指定配置的详细信息)
    floating-ip-bulk-create
                        Bulk create floating ips by range (在指定范围里,批量创建非固定IP)
    floating-ip-bulk-delete
                        Bulk delete floating ips by range (在指定范围内,批量删除非固定IP)
    floating-ip-bulk-list
                        List all floating ips (列出所有非固定IP)
    floating-ip-create  Allocate a floating IP for the current tenant. (为当前租户分配一个非固定IP)
    floating-ip-delete  De-allocate a floating IP. (释放一个非固定IP)
    floating-ip-list    List floating ips for this tenant. (列出指定租户的非固定IP)
    floating-ip-pool-list
                        List all floating ip pools. (列出所有的非固定IP池)
    get-password        Get password for a server. (取得服务器的密码)
    get-spice-console   Get a spice console to a server. ()
    get-vnc-console     Get a vnc console to a server. (得到服务器的VNC控制台)
    host-action         Perform a power action on a host. (在主机上执行一个权限操作)
    host-describe       Describe a specific host (描述指定的主机)
    host-list           List all hosts by service (护照服务来列出所有的主机)
    host-update         Update host settings. (更新主机设置)
    hypervisor-list     List hypervisors. (列出管理程序)
    hypervisor-servers  List instances belonging to specific hypervisors. (列出指定管理程序的实例)
    hypervisor-show     Display the details of the specified hypervisor. (显示指定管理程序的详细信息)
    hypervisor-stats    Get hypervisor statistics over all compute nodes. (取得所有计算结点的监控统计)
    hypervisor-uptime   Display the uptime of the specified hypervisor. (显示管理程序的运行时间)
    image-create        Create a new image by taking a snapshot of a running
                        server. (通过一个运行中的服务器的快照,创建一个新的镜像)
    image-delete        Delete specified image(s). (删除指定的镜像)
    image-list          Print a list of available images to boot from. (打印可用于引导的镜像列表)
    image-meta          Set or Delete metadata on an image. (设置或删除一个镜像的元数据)
    image-show          Show details about the given image. (显示指定镜像的详细信息)
    interface-attach    Attach a network interface to an instance. (为实例附加一个网络接口)
    interface-detach    Detach a network interface from an instance. (从实例中分离一个网络接口)
    interface-list      List interfaces attached to an instance. (列出某个实例上附加的所有接口)
    keypair-add         Create a new key pair for use with instances (为实例创建一个新的密钥)
    keypair-delete      Delete keypair by its name (通过名称,删除一个密钥)
    keypair-list        Print a list of keypairs for a user (打印某个用户的密钥列表)
    list                List active servers. (列出处于活动状态的服务器)
    live-migration      Migrates a running instance to a new machine.(迁移一个运行中的实例到一个新的机器)
    lock                Lock a server. (锁定一个服务器)
    meta                Set or Delete metadata on a server. (设置或删除一个服务器的元数据)
    migrate             Migrate a server. The new host will be selected by the
                        scheduler. (迁移一个服务器。新的主机将由调度器来选择)
    network-associate-host
                        Associate host with network. (关联主机与网络)
    network-associate-project
                        Associate project with network. (关联项目与网络)
    network-create      Create a network. (创建一个网络)
    network-disassociate
                        Disassociate host and/or project from the given
                        network. (分离主机与网络,或者项目与网络)
    network-list        Print a list of available networks. (打印可用的网络的列表)
    network-show        Show details about the given network. (显示指定网络的详细信息)
    pause               Pause a server. (暂停一个服务器)
    quota-class-show    List the quotas for a quota class. (列出一个配额分类的配额)
    quota-class-update  Update the quotas for a quota class. (更新一个配额分类的配额)
    quota-defaults      List the default quotas for a tenant. (列出租户的配额)
    quota-delete        Delete quota for a tenant so their quota will revert
                        back to default. (删除租户的配额后,它的配额将回恢到缺省值)
    quota-show          List the quotas for a tenant. (列出租户的配额)
    quota-update        Update the quotas for a tenant. (更新租户的配额)
    rate-limits         Print a list of rate limits for a user (打印用户的限制速率列表)
    reboot              Reboot a server.  (重启服务器)
    rebuild             Shutdown, re-image, and re-boot a server. (停止、重镜像、重新启动一个服务器)
    remove-fixed-ip     Remove an IP address from a server. (从一个服务器删除IP地址)
    remove-floating-ip  Remove a floating IP address from a server. (从一个服务器删除一个非固定的IP地址)
    remove-secgroup     Remove a Security Group from a server. (从一个服务器删除一个安全组)
    rename              Rename a server. (重命名一个服务器)
    rescue              Rescue a server. (解救一个服务器)
    reset-network       Reset network of an instance. (重置实例的网络)
    reset-state         Reset the state of an instance (重置实例的状态)
    resize              Resize a server. (调整服务器)
    resize-confirm      Confirm a previous resize. (确认之前的调整)
    resize-revert       Revert a previous resize (and return to the previous
                        VM). (恢复之前的调整(同时返回给之前的虚拟机))
    resume              Resume a server. (重新开始一个服务器)
    root-password       Change the root password for a server. (改变服务器的根密钥)
    scrub               Deletes data associated with the project (删除项目关联的数据)
    secgroup-add-group-rule
                        Add a source group rule to a security group. (为安全组添加原始组规则)
    secgroup-add-rule   Add a rule to a security group. (向安全组添加一条规则)
    secgroup-create     Create a security group. (创建一个安全组)
    secgroup-delete     Delete a security group. (删除一个安全组)
    secgroup-delete-group-rule
                        Delete a source group rule from a security group. (从安全组删除一个原始组规则)
    secgroup-delete-rule
                        Delete a rule from a security group. (从安全组删除一个规则)
    secgroup-list       List security groups for the current tenant. (列出当前租户的安全组)
    secgroup-list-rules
                        List rules for a security group. (列出某个安全组的规则)
    secgroup-update     Update a security group. (更新一个安全组)
    service-disable     Disable the service (禁用服务)
    service-enable      Enable the service (启用服务)
    service-list        Show a list of all running services. Filter by host &
                        binary. (显示所有运行中的服务的列表)
    show                Show details about the given server. (显示指定服务器的详细信息)
    ssh                 SSH into a server. (SSH指令连接到服务器)
    start               Start a server. (启动一个服务器)
    stop                Stop a server. (停止一个服务器)
    suspend             Suspend a server. (挂起一个服务器)
    unlock              Unlock a server. (解锁一个服务器
    unpause             Unpause a server. (解除暂停一个服务器)
    unrescue            Unrescue a server. (取消解救一个服务器)
    usage               Show usage data for a single tenant (显示单个租户的惯用数据)
    usage-list          List usage data for all tenants (列出所有租户的惯用数据)
    volume-attach       Attach a volume to a server. (为服务器附加一个卷)
    volume-create       Add a new volume. (添加一个新的卷)
    volume-delete       Remove a volume. (删除一个卷)
    volume-detach       Detach a volume from a server. (从一个服务器分离一个卷)
    volume-list         List all the volumes. (列出所有的卷)
    volume-show         Show details about a volume. (显示一个卷的详细信息)
    volume-snapshot-create
                        Add a new snapshot. (添加一个新的快照)
    volume-snapshot-delete
                        Remove a snapshot. (删除一个快照)
    volume-snapshot-list
                        List all the snapshots. (列出所有的快照)
    volume-snapshot-show
                        Show details about a snapshot. (显示一个快照的详细信息)
    volume-type-create  Create a new volume type. (创建一个卷类型)
    volume-type-delete  Delete a specific flavor. (删除一个指定的配置)
    volume-type-list    Print a list of available 'volume types'. (打印可用卷分类的列表)
    x509-create-cert    Create x509 cert for a user in tenant (为租户的一个用户创建x509 cert)
    x509-get-root-cert  Fetches the x509 root cert. (获取x509的根密钥)
    bash-completion     Prints all of the commands and options to stdout so
                        that the (打印所有的指令和选项到标准输出)
    help                Display help about this program or one of its
                        subcommands. (显示nova的指令的帮助)
    baremetal-interface-add
                        Add a network interface to a baremetal node. (添加一个网络接口到baremetal结点)
    baremetal-interface-list
                        List network interfaces associated with a baremetal
                        node. (列出一个baremetal结点的所有关联的网络接口)
    baremetal-interface-remove
                        Remove a network interface from a baremetal node. (从一个baremetal结点删除一个网络接口)
    baremetal-node-create
                        Create a baremetal node. (创建一个baremetal结点)
    baremetal-node-delete
                        Remove a baremetal node and any associated interfaces. (删除一个baremetal结点,及其任何相关的网络接口)
    baremetal-node-list
                        Print a list of available baremetal nodes. (打印可用的baremetal结点的列表)
    baremetal-node-show
                        Show information about a baremetal node. (显示一个baremetal结点的信息)
    host-evacuate       Evacuate all instances from failed host to specified
                        one. (从故障主机撤离所有的实例到一个指定的主机上)
    instance-action     Show an action. (显示一个操作)
    instance-action-list
                        List actions on a server. (列出服务器上的操作)
    list-extensions     List all the os-api extensions that are available. (列出所有可用的os-api的扩展)
    host-meta           Set or Delete metadata on all instances of a host. (设置或删除一台主机上的所有实例的元数据)
    net                 Show a network. (显示一个网络)
    net-create          Create a network. (创建一个网络)
    net-delete          Delete a network. (删除一个网络)
    net-list            List networks (列出网络列表)

 

Example 12. Optional arguments

例12:参数选项

  --version             Show program's version number and exit. (显示nova服务的版本)
  --debug               Print debugging output. (打印调试信息到标准输出)
  --force               Force quota-update. (强制更新配额)
  --os-cache            Use the auth token cache. (使用授权token缓存)
  --timings             Print call timing info. (打印调用耗时信息)
  --timeout <seconds>   Set HTTP call timeout (in seconds). (设置HTTP调用超时时长,单位:秒)
  --os-username <auth-user-name>
                        Defaults to env[OS_USERNAME]. (默认值是:env[OS_USERNAME])
  --os-password <auth-password>
                        Defaults to env[OS_PASSWORD]. (默认值是:env[OS_PASSWORD])
  --os-tenant-name <auth-tenant-name>
                        Defaults to env[OS_TENANT_NAME]. (默认值是:env[OS_TENANT_NAME])
  --os-auth-url <auth-url>
                        Defaults to env[OS_AUTH_URL]. (默认值是:env[OS_AUTH_URL])
  --os-region-name <region-name>
                        Defaults to env[OS_REGION_NAME]. (默认值是:env[OS_REGION_NAME])
  --os-auth-system <auth-system>
                        Defaults to env[OS_AUTH_SYSTEM]. (默认值是:env[OS_AUTH_SYSTEM])
  --service-type <service-type>
                        Defaults to compute for most actions. (缺省计算所有操作)
  --service-name <service-name>
                        Defaults to env[NOVA_SERVICE_NAME]. (默认值是:env[NOVA_SERVICE_NAME])
  --volume-service-name <volume-service-name>
                        Defaults to env[NOVA_VOLUME_SERVICE_NAME]. (默认值是:env[NOVA_VOLUME_SERVICE_NAME])
  --endpoint-type <endpoint-type>
                        Defaults to env[NOVA_ENDPOINT_TYPE] or publicURL. (默认值是:env[NOVA_ENDPOINT_TYPE] 或者公共URL)
  --os-compute-api-version <compute-api-ver>
                        Accepts 1.1, defaults to env[OS_COMPUTE_API_VERSION]. (接受 1.1版本,默认值是:env[OS_COMPUTE_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] (指定一个CA文件,用于验证TLS服务器证书。默认值是:env[OS_CACERT])
  --insecure            Explicitly allow novaclient to perform "insecure" SSL
                        (https) requests. The server's certificate will not be
                        verified against any certificate authorities. This
                        option should be used with caution. (明确指出允许novaclient执行insecure SSL请求。服务器证书将不再验证任何证书授权。 这个操作要小心使用。)
  --bypass-url <bypass-url>
                        Use this API endpoint instead of the Service Catalog. (使用API endpoint代替服务栏目)
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值