Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID Sign In with Twitter

Tagged

Unified CLI now available for testing in RDO
  • Unified OpenStack Client command-line tool is now available for testing as python-openstackclient package at RDO Havana repository.

    OpenStack Client is on a mission to provide a single consistent CLI for interacting with OpenStack services. It's a thin wrapper to the stock python-*client modules that implement the actual REST API client actions. Although OpenStack Client is considered to be alpha quality as of 0.2, it already provides commands to interact with:

    • Keystone
    • Nova
    • Cinder
    • Glance

    Tips

    • With RDO Havana repository in place, install using yum install python-openstackclient
    • As with all clients, you need to supply your credentials. If you installed with packstack, . ~root/keystonerc_admin might do the trick.
    • Executable is called openstack
    • To get list of available commands, use openstack -h
    • To get usage of a specific command, use openstack help COMMAND

    Example usage

    $ openstack help image
    Command "image" matches:
      image delete
      image list
      image show
      image set
      image save
      image create
    
    
    $ openstack help image list
    usage: openstack image list [-h] [-f {csv,table}] [-c COLUMN]
                                [--quote {all,minimal,none,nonnumeric}]
                                [--page-size ]
    List available images
    [...]
    
    
    $ openstack image list
    INFO: urllib3.connectionpool Starting new HTTP connection (1): 192.168.8.81
    +--------------------------------------+---------+
    | ID                                   | Name    |
    +--------------------------------------+---------+
    | bfc2109b-ab0b-4fd7-99b7-ec394bebd355 | cirros  |
    | b0b22e14-4d20-4174-a2f8-b6dcafdb88bd | El Niño |
    +--------------------------------------+---------+
    
  • Great... thanks.

    Will the Havana unified client work with a Grizzly based cloud ?

  • Will the Havana unified client work with a Grizzly based cloud?

    Clients are supposed to be backward compatible but AFAIK it's not enforced in any way (yet).

    So it should.

  • larskslarsks +1 -1 (+1 / -0 )
    Posts: 56

    I originally posted this as a suggestion, but it's already there! If you want machine parse-able output, there are a variety of options you can use, such as -f csv. For example:

    $ openstack -q role list -f csv
    "ID","Name"
    "2bc174e4f66747e28d47381a1c38c0de","admin"
    "9fe2ff9ee4384b1894a90878d3e92bab","_member_"
    "a8cc78035b9e4a408554032677611643","Member"