Jump to: navigation, search

Difference between revisions of "WholeHostAllocation-pcloud-example"

(Created page with "Examples of using the nova client to create and manage pclouds Create a Pcloud ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-create phil +----------+--------------------...")
 
 
Line 1: Line 1:
 
Examples of using the nova client to create and manage pclouds
 
Examples of using the nova client to create and manage pclouds
  
Create a Pcloud  
+
=== Nova Pcloud Commands ===
ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-create phil
+
 
  +----------+--------------------------------------+
+
ubuntu@pcloud:/mnt/devstack$ nova help | grep pcloud
  | Property | Value                                |  
+
    pcloud-host-flavor-add-host
  +----------+--------------------------------------+
+
                        Add a host to a pcloud host flavor.
  | uuid    | a3e9a336-1277-496c-90b1-bba2ec9050ee |
+
    pcloud-host-flavor-create
  | name     | phil                                |
+
                        Create a new pcloud host flavor with the specified
  +----------+--------------------------------------+
+
    pcloud-host-flavor-delete
 +
                        Delete the pcloud host flavor by its id.
 +
    pcloud-host-flavor-remove-host
 +
                        Remove a host from a pcloud host flavor.
 +
    pcloud-host-flavor-show
 +
                        Show details of the specified pcloud.
 +
    pcloud-add-host    Allocates a host for the specified Pcloud.
 +
    pcloud-add-project  Add the project to the specified pcloud as a tenant.
 +
    pcloud-create      Create a new pcloud with the specified details.
 +
    pcloud-delete      Delete the pcloud by its id.
 +
    pcloud-disable-host
 +
    pcloud-enable-host  Enables a host in the specified Pcloud.
 +
    pcloud-host-flavor-list
 +
                        Print a list of all pclouds.
 +
    pcloud-list        Print a list of all pclouds.
 +
    pcloud-remove-host  Removes a host from the specified Pcloud.
 +
    pcloud-remove-project
 +
                        Remove the project from the specified pcloud.
 +
    pcloud-rename      Changes the name of the specificed Pcloud.
 +
    pcloud-set-cpu-allocation-ratio
 +
    pcloud-set-ram-allocation-ratio
 +
    pcloud-show        Show details of the specified pcloud.
 +
 
 +
 
 +
 
 +
 
 +
=== Create Pcloud Host Flavors (Administrator) ===
 +
 
 +
$ nova pcloud-host-flavor-create host.small "HP DL320, 2 x E-5240, 48GB" 10
 +
+------------+----------------------------+-------+
 +
| Flavor_Id  | Description                | Units |
 +
+------------+----------------------------+-------+
 +
| host.small | HP DL320, 2 x E-5240, 48GB | 10    |
 +
+------------+----------------------------+-------+
 +
 
 +
$ nova pcloud-host-flavor-create host.medium "HP DL360, 2 x E-5260, 96GB" 20
 +
+-------------+----------------------------+-------+
 +
| Flavor_Id  | Description                | Units |
 +
+-------------+----------------------------+-------+
 +
| host.medium | HP DL360, 2 x E-5260, 96GB | 20    |
 +
+-------------+----------------------------+-------+
 +
 
 +
$ nova pcloud-host-flavor-create host.large "HP DL370, 2 x E-5600, 128GB" 30
 +
+------------+-----------------------------+-------+
 +
| Flavor_Id  | Description                | Units |
 +
+------------+-----------------------------+-------+
 +
| host.large | HP DL370, 2 x E-5600, 128GB | 30    |
 +
+------------+-----------------------------+-------+
 +
 
 +
 
 +
=== Add a host to a Host Flavor Pool (Administrator) ===
 +
$ nova pcloud-host-flavor-add-host  host.small  testhost1
 +
  +------------+----------------------------+-------+-------------+
 +
  | Flavor_Id  | Description                | Units | Hosts      |
 +
  +------------+----------------------------+-------+-------------+
 +
  | host.small | HP DL320, 2 x E-5240, 48GB | 10    | [u'testhost1'] |
 +
+------------+----------------------------+-------+-------------+
 +
 
 +
 
 +
=== Create a Pcloud ===
 +
$ nova pcloud-create my-pcloud
 +
+--------------------------------------+-----------+-------+-------+
 +
| Id                                  | Name      | Role  | Hosts |
 +
  +--------------------------------------+-----------+-------+-------+
 +
| 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 | my-pcloud | Owner | 0     |  
 +
+--------------------------------------+-----------+-------+-------+
 +
 
 +
 
 +
=== Find the available Host Flavors ===
 +
$ nova pcloud-host-flavor-list
 +
+-------------+-----------------------------+-------+
 +
| Flavor_Id  | Description                | Units |
 +
  +-------------+-----------------------------+-------+
 +
| host.small  | HP DL320, 2 x E-5240, 48GB  | 10    |
 +
| host.medium | HP DL360, 2 x E-5260, 96GB  | 20    |
 +
| host.large  | HP DL370, 2 x E-5600, 128GB | 30    |
 +
+-------------+-----------------------------+-------+
 +
 
 
   
 
   
List the Pclouds (Note we can see the Nr of Hosts as we own it)
+
=== Allocate a Host of type "host.small" from az1 and call it "my-host" ===
  ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-list
+
  $ nova pcloud-add-host 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 my-host host.small --availability-zone az1
+--------------------------------------+------+-------+-------+
 
| Id                                  | Name | Role  | Hosts |
 
  +--------------------------------------+------+-------+-------+
 
| a3e9a336-1277-496c-90b1-bba2ec9050ee | phil | Owner | 0    |
 
+--------------------------------------+------+-------+-------+
 
 
 
Show the details of a Pcloud
 
ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-show a51edd73-3667-4c6f-b19c-daf4dc369ea9
 
 
  +----------+---------------------------------------+
 
  +----------+---------------------------------------+
 
  | Property | Value                                |
 
  | Property | Value                                |
 
  +----------+---------------------------------------+
 
  +----------+---------------------------------------+
  | owner    | 6c1db1a4abde4170a29dc299e645ab0f     |
+
  | owner    | 536205b4724f47d2b412cc0a3add1e5a     |
  | tenants  | [u'6c1db1a4abde4170a29dc299e645ab0f'] |
+
  | tenants  | [u'536205b4724f47d2b412cc0a3add1e5a'] |
  | id      | a3e9a336-1277-496c-90b1-bba2ec9050ee |
+
  | id      | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 |
  | name    | phil                                  |
+
  | name    | my-pcloud                            |
 
  +----------+---------------------------------------+
 
  +----------+---------------------------------------+
 +
+-------------------+------------+
 +
| Property          | Value      |
 +
+-------------------+------------+
 +
| status            | disabled  |
 +
| host_id          | my-host    |
 +
| flavor            | host.small |
 +
| availability_zone | az1        |
 +
| instances        | []        |
 +
+-------------------+------------+
  
As Admin Add a host directly to the Aggregate 
 
(As we don't have the allocation code in place yet)
 
ubuntu@pcloud2(admin):/mnt/devstack$ nova aggregate-add-host 1 pcloud3
 
 
 
As the user list the Pclouds again – see we now have 1 host
 
ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-list
 
+--------------------------------------+------+-------+-------+
 
| Id                                  | Name | Role  | Hosts |
 
+--------------------------------------+------+-------+-------+
 
| a3e9a336-1277-496c-90b1-bba2ec9050ee | phil | Owner | 1    |
 
+--------------------------------------+------+-------+-------+
 
  
Show details of the Pcloud with the host (and get a list of instances)
+
=== Enable the host ===
Note that host_id is the same hash as used in Server Details
+
  $ nova pcloud-enable-host 0b26dc22-56f7-4444-a3e3-bfbcbb550b51  my-host
  ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-show a51edd73-3667-4c6f-b19c-daf4dc369ea9
 
 
  +----------+---------------------------------------+
 
  +----------+---------------------------------------+
 
  | Property | Value                                |
 
  | Property | Value                                |
 
  +----------+---------------------------------------+
 
  +----------+---------------------------------------+
  | owner    | 6c1db1a4abde4170a29dc299e645ab0f     |
+
  | owner    | 536205b4724f47d2b412cc0a3add1e5a     |
  | tenants  | [u'6c1db1a4abde4170a29dc299e645ab0f'] |
+
  | tenants  | [u'536205b4724f47d2b412cc0a3add1e5a'] |
  | id      | a3e9a336-1277-496c-90b1-bba2ec9050ee |
+
  | id      | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 |
  | name    | phil                                  |
+
  | name    | my-pcloud                            |
 
  +----------+---------------------------------------+
 
  +----------+---------------------------------------+
  +-----------+----------------------------------------------------------+
+
  +-------------------+------------+
  | Property | Value                                                   |
+
  | Property         | Value     |
  +-----------+----------------------------------------------------------+
+
  +-------------------+------------+
  | host_id   | 0e162c89056b0e3fba937e3202b94bccf1b848feb2a772c9873fe3c8 |
+
| status            | enabled    |
  | instances | [u'39f846ee-a4b8-40ab-aa2f-6fbd3f36a749']               |
+
  | host_id           | my-host    |
  +-----------+----------------------------------------------------------+
+
| flavor            | host.small |
 +
| availability_zone | az1        |
 +
  | instances         | []         |
 +
  +-------------------+------------+
  
Add another project to the Pcloud
+
 
  ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-add-project a3e9a336-1277-496c-90b1-bba2ec9050ee 0ef23163e7e3422b80f9c872a1bb1521
+
=== Grant another tenant access to the Pcloud ===
  Project 0ef23163e7e3422b80f9c872a1bb1521 has been successfully added to Pcloud a3e9a336-1277-496c-90b1-bba2ec9050ee as a Tenant
+
  $ nova pcloud-add-project 0b26dc22-56f7-4444-a3e3-bfbcbb550b51  290aa41d7ad4464998702fbb1157a1ab
 +
  Project 290aa41d7ad4464998702fbb1157a1ab has been successfully added to Pcloud 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 as a Tenant
 
  +----------+----------------------------------------------------------------------------+
 
  +----------+----------------------------------------------------------------------------+
 
  | Property | Value                                                                      |
 
  | Property | Value                                                                      |
 
  +----------+----------------------------------------------------------------------------+
 
  +----------+----------------------------------------------------------------------------+
  | owner    | 6c1db1a4abde4170a29dc299e645ab0f                                           |
+
  | owner    | 536205b4724f47d2b412cc0a3add1e5a                                           |
  | tenants  | [u'6c1db1a4abde4170a29dc299e645ab0f', u'0ef23163e7e3422b80f9c872a1bb1521'] |
+
  | tenants  | [u'290aa41d7ad4464998702fbb1157a1ab', u'536205b4724f47d2b412cc0a3add1e5a'] |
  | id      | a3e9a336-1277-496c-90b1-bba2ec9050ee                                       |
+
  | id      | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51                                       |
  | name    | phil                                                                      |
+
  | name    | my-pcloud                                                                  |
 
  +----------+----------------------------------------------------------------------------+
 
  +----------+----------------------------------------------------------------------------+
  
  
See the Pcloud from the other project (note can’t see # Hosts as we don’t own the Pcloud)
+
=== See the list of available Pclouds (as a Tenant not Owner) ===
ubuntu@pcloud2(demo2):/mnt/devstack$ nova pcloud-list  
+
$ nova pcloud-list
  +--------------------------------------+------+--------+-------+
+
  +--------------------------------------+-----------+--------+-------+
  | Id                                  | Name | Role  | Hosts |
+
  | Id                                  | Name     | Role  | Hosts |
  +--------------------------------------+------+--------+-------+
+
  +--------------------------------------+-----------+--------+-------+
  | a3e9a336-1277-496c-90b1-bba2ec9050ee | phil | Tenant | -    |            
+
  | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 | my-pcloud | Tenant | -    |
  +--------------------------------------+------+--------+-------+
+
  +--------------------------------------+-----------+--------+-------+
  
  
But we can’t show detsils Pclouds we don’t own
+
=== Create an instance in a Pcloud ===
ubuntu@pcloud2(demo2):/mnt/devstack$ nova pcloud-show a3e9a336-1277-496c-90b1-bba2ec9050ee
+
$ nova boot --image cirros-0.3.1-x86_64-uec --flavor 1 --hint pcloud=0b26dc22-56f7-4444-a3e3-bfbcbb550b51 --availability-zone az1  my_instance
  ERROR: Not authorized. (HTTP 403) (Request-ID: req-283b1dd7-8730-4360-b6c6-f490538c7612)
+
+-----------------------------+--------------------------------------+
 +
| Property                    | Value                                |
 +
+-----------------------------+--------------------------------------+
 +
| status                      | BUILD                                |
 +
| updated                    | 2013-10-26T00:26:40Z                |
 +
| hostId                      |                                      |
 +
| key_name                    | None                                |
 +
| image                      | cirros-0.3.1-x86_64-uec              |
 +
| OS-EXT-STS:task_state      | scheduling                          |
 +
  | OS-EXT-STS:vm_state        | building                            |
 +
| flavor                      | m1.tiny                              |
 +
| id                          | 668bd437-8a7f-4e23-871c-310794b52f34 |
 +
| security_groups            | [{u'name': u'default'}]              |
 +
| user_id                    | bfe8c66cfb394ebdac0cc5af8c859152    |
 +
| name                        | my_instance                          |
 +
| adminPass                  | ESAHoR926gjb                        |
 +
| tenant_id                  | 290aa41d7ad4464998702fbb1157a1ab    |
 +
| created                    | 2013-10-26T00:26:40Z                |
 +
| accessIPv4                  |                                      |
 +
| accessIPv6                  |                                      |
 +
| progress                    | 0                                    |
 +
| OS-EXT-STS:power_state      | 0                                    |
 +
| OS-EXT-AZ:availability_zone | nova                                |
 +
| metadata                    | {}                                  |
 +
+-----------------------------+--------------------------------------+
  
Or delete Pclouds we don’t own
+
ubuntu@pcloud:~$ nova list
ubuntu@pcloud2(demo2):/mnt/devstack$ nova pcloud-delete a3e9a336-1277-496c-90b1-bba2ec9050ee
+
+--------------------------------------+-------------+--------+------------+-------------+---------------------+
  ERROR: Not authorized. (HTTP 403) (Request-ID: req-2959c227-0b7e-4da9-85b1-1066a318db8d)
+
| ID                                  | Name        | Status | Task State | Power State | Networks            |
 +
+--------------------------------------+-------------+--------+------------+-------------+---------------------+
 +
  | 668bd437-8a7f-4e23-871c-310794b52f34 | my_instance | ACTIVE | None      | Running    | public=172.24.4.227 |
 +
+--------------------------------------+-------------+--------+------------+-------------+---------------------+
  
Remove the project form the Pcloud
 
ubuntu@pcloud2(demo):/mnt/devstack$ nova pcloud-remove-project a3e9a336-1277-496c-90b1-bba2ec9050ee 0ef23163e7e3422b80f9c872a1bb1521
 
Project 0ef23163e7e3422b80f9c872a1bb1521 has been successfully removed from Pcloud a3e9a336-1277-496c-90b1-bba2ec9050ee.
 
+----------+---------------------------------------+
 
| Property | Value                                |
 
+----------+---------------------------------------+
 
| owner    | 6c1db1a4abde4170a29dc299e645ab0f      |
 
| tenants  | [u'6c1db1a4abde4170a29dc299e645ab0f'] |
 
| id      | a3e9a336-1277-496c-90b1-bba2ec9050ee  |
 
| name    | phil                                  |
 
+----------+---------------------------------------+
 
  
 +
=== See the details of the Pcloud, including hosts and instances ===
  
Check that the other user can’t see it any more
+
$ nova pcloud-show 0b26dc22-56f7-4444-a3e3-bfbcbb550b51
ubuntu@pcloud2(demo2):/mnt/devstack$ nova pcloud-list
+
  +----------+----------------------------------------------------------------------------+
  +----+------+------+-------+
+
| Property | Value                                                                      |
  | Id | Name | Role | Hosts |
+
+----------+----------------------------------------------------------------------------+
  +----+------+------+-------+
+
  | owner    | 536205b4724f47d2b412cc0a3add1e5a                                          |
  +----+------+------+-------+
+
| tenants  | [u'290aa41d7ad4464998702fbb1157a1ab', u'536205b4724f47d2b412cc0a3add1e5a'] |
 +
| id      | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51                                      |
 +
| name    | my-pcloud                                                                  |
 +
  +----------+----------------------------------------------------------------------------+
 +
+-------------------+----------------------------------------------------------------------------------------------------------+
 +
| Property          | Value                                                                                                    |
 +
  +-------------------+----------------------------------------------------------------------------------------------------------+
 +
| status            | enabled                                                                                                  |
 +
| host_id          | my-host                                                                                                  |
 +
| flavor            | host.small                                                                                              |
 +
| availability_zone | az1                                                                                                      |
 +
| instances        | [{u'project_id': u'290aa41d7ad4464998702fbb1157a1ab', u'uuid': u'668bd437-8a7f-4e23-871c-310794b52f34'}] |
 +
+-------------------+----------------------------------------------------------------------------------------------------------+

Latest revision as of 00:48, 26 October 2013

Examples of using the nova client to create and manage pclouds

Nova Pcloud Commands

ubuntu@pcloud:/mnt/devstack$ nova help | grep pcloud

   pcloud-host-flavor-add-host
                       Add a host to a pcloud host flavor.
   pcloud-host-flavor-create
                       Create a new pcloud host flavor with the specified
   pcloud-host-flavor-delete
                       Delete the pcloud host flavor by its id.
   pcloud-host-flavor-remove-host
                       Remove a host from a pcloud host flavor.
   pcloud-host-flavor-show
                       Show details of the specified pcloud.
   pcloud-add-host     Allocates a host for the specified Pcloud.
   pcloud-add-project  Add the project to the specified pcloud as a tenant.
   pcloud-create       Create a new pcloud with the specified details.
   pcloud-delete       Delete the pcloud by its id.
   pcloud-disable-host
   pcloud-enable-host  Enables a host in the specified Pcloud.
   pcloud-host-flavor-list
                       Print a list of all pclouds.
   pcloud-list         Print a list of all pclouds.
   pcloud-remove-host  Removes a host from the specified Pcloud.
   pcloud-remove-project
                       Remove the project from the specified pcloud.
   pcloud-rename       Changes the name of the specificed Pcloud.
   pcloud-set-cpu-allocation-ratio
   pcloud-set-ram-allocation-ratio
   pcloud-show         Show details of the specified pcloud.
  


Create Pcloud Host Flavors (Administrator)

$ nova pcloud-host-flavor-create host.small "HP DL320, 2 x E-5240, 48GB" 10
+------------+----------------------------+-------+
| Flavor_Id  | Description                | Units |
+------------+----------------------------+-------+
| host.small | HP DL320, 2 x E-5240, 48GB | 10    |
+------------+----------------------------+-------+
$ nova pcloud-host-flavor-create host.medium "HP DL360, 2 x E-5260, 96GB" 20
+-------------+----------------------------+-------+
| Flavor_Id   | Description                | Units |
+-------------+----------------------------+-------+
| host.medium | HP DL360, 2 x E-5260, 96GB | 20    |
+-------------+----------------------------+-------+
$ nova pcloud-host-flavor-create host.large "HP DL370, 2 x E-5600, 128GB" 30
+------------+-----------------------------+-------+
| Flavor_Id  | Description                 | Units |
+------------+-----------------------------+-------+
| host.large | HP DL370, 2 x E-5600, 128GB | 30    |
+------------+-----------------------------+-------+


Add a host to a Host Flavor Pool (Administrator)

$ nova pcloud-host-flavor-add-host  host.small   testhost1
+------------+----------------------------+-------+-------------+
| Flavor_Id  | Description                | Units | Hosts       |
+------------+----------------------------+-------+-------------+
| host.small | HP DL320, 2 x E-5240, 48GB | 10    | [u'testhost1'] |
+------------+----------------------------+-------+-------------+


Create a Pcloud

$ nova pcloud-create my-pcloud
+--------------------------------------+-----------+-------+-------+
| Id                                   | Name      | Role  | Hosts |
+--------------------------------------+-----------+-------+-------+
| 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 | my-pcloud | Owner | 0     | 
+--------------------------------------+-----------+-------+-------+


Find the available Host Flavors

$ nova pcloud-host-flavor-list
+-------------+-----------------------------+-------+
| Flavor_Id   | Description                 | Units |
+-------------+-----------------------------+-------+
| host.small  | HP DL320, 2 x E-5240, 48GB  | 10    |
| host.medium | HP DL360, 2 x E-5260, 96GB  | 20    |
| host.large  | HP DL370, 2 x E-5600, 128GB | 30    |
+-------------+-----------------------------+-------+


Allocate a Host of type "host.small" from az1 and call it "my-host"

$ nova pcloud-add-host 0b26dc22-56f7-4444-a3e3-bfbcbb550b51  my-host host.small --availability-zone az1
+----------+---------------------------------------+
| Property | Value                                 |
+----------+---------------------------------------+
| owner    | 536205b4724f47d2b412cc0a3add1e5a      |
| tenants  | [u'536205b4724f47d2b412cc0a3add1e5a'] |
| id       | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51  |
| name     | my-pcloud                             |
+----------+---------------------------------------+
+-------------------+------------+
| Property          | Value      |
+-------------------+------------+
| status            | disabled   |
| host_id           | my-host    |
| flavor            | host.small |
| availability_zone | az1        |
| instances         | []         | 
+-------------------+------------+


Enable the host

$ nova pcloud-enable-host 0b26dc22-56f7-4444-a3e3-bfbcbb550b51  my-host 
+----------+---------------------------------------+
| Property | Value                                 |
+----------+---------------------------------------+
| owner    | 536205b4724f47d2b412cc0a3add1e5a      |
| tenants  | [u'536205b4724f47d2b412cc0a3add1e5a'] |
| id       | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51  |
| name     | my-pcloud                             |
+----------+---------------------------------------+
+-------------------+------------+
| Property          | Value      |
+-------------------+------------+
| status            | enabled    |
| host_id           | my-host    |
| flavor            | host.small |
| availability_zone | az1        |
| instances         | []         |
+-------------------+------------+


Grant another tenant access to the Pcloud

$ nova pcloud-add-project 0b26dc22-56f7-4444-a3e3-bfbcbb550b51   290aa41d7ad4464998702fbb1157a1ab
Project 290aa41d7ad4464998702fbb1157a1ab has been successfully added to Pcloud 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 as a Tenant
+----------+----------------------------------------------------------------------------+
| Property | Value                                                                      |
+----------+----------------------------------------------------------------------------+
| owner    | 536205b4724f47d2b412cc0a3add1e5a                                           |
| tenants  | [u'290aa41d7ad4464998702fbb1157a1ab', u'536205b4724f47d2b412cc0a3add1e5a'] |
| id       | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51                                       |
| name     | my-pcloud                                                                  |
+----------+----------------------------------------------------------------------------+


See the list of available Pclouds (as a Tenant not Owner)

$ nova pcloud-list

+--------------------------------------+-----------+--------+-------+
| Id                                   | Name      | Role   | Hosts |
+--------------------------------------+-----------+--------+-------+
| 0b26dc22-56f7-4444-a3e3-bfbcbb550b51 | my-pcloud | Tenant | -     |
+--------------------------------------+-----------+--------+-------+


Create an instance in a Pcloud

$ nova boot --image cirros-0.3.1-x86_64-uec --flavor 1 --hint pcloud=0b26dc22-56f7-4444-a3e3-bfbcbb550b51 --availability-zone az1 my_instance

+-----------------------------+--------------------------------------+
| Property                    | Value                                |
+-----------------------------+--------------------------------------+
| status                      | BUILD                                |
| updated                     | 2013-10-26T00:26:40Z                 |
| hostId                      |                                      |
| key_name                    | None                                 |
| image                       | cirros-0.3.1-x86_64-uec              |
| OS-EXT-STS:task_state       | scheduling                           |
| OS-EXT-STS:vm_state         | building                             |
| flavor                      | m1.tiny                              |
| id                          | 668bd437-8a7f-4e23-871c-310794b52f34 |
| security_groups             | [{u'name': u'default'}]              |
| user_id                     | bfe8c66cfb394ebdac0cc5af8c859152     |
| name                        | my_instance                          |
| adminPass                   | ESAHoR926gjb                         |
| tenant_id                   | 290aa41d7ad4464998702fbb1157a1ab     |
| created                     | 2013-10-26T00:26:40Z                 |
| accessIPv4                  |                                      |
| accessIPv6                  |                                      |
| progress                    | 0                                    |
| OS-EXT-STS:power_state      | 0                                    |
| OS-EXT-AZ:availability_zone | nova                                 |
| metadata                    | {}                                   |
+-----------------------------+--------------------------------------+

ubuntu@pcloud:~$ nova list

+--------------------------------------+-------------+--------+------------+-------------+---------------------+
| ID                                   | Name        | Status | Task State | Power State | Networks            |
+--------------------------------------+-------------+--------+------------+-------------+---------------------+
| 668bd437-8a7f-4e23-871c-310794b52f34 | my_instance | ACTIVE | None       | Running     | public=172.24.4.227 | 
+--------------------------------------+-------------+--------+------------+-------------+---------------------+


See the details of the Pcloud, including hosts and instances

$ nova pcloud-show 0b26dc22-56f7-4444-a3e3-bfbcbb550b51

+----------+----------------------------------------------------------------------------+
| Property | Value                                                                      | 
+----------+----------------------------------------------------------------------------+
| owner    | 536205b4724f47d2b412cc0a3add1e5a                                           |
| tenants  | [u'290aa41d7ad4464998702fbb1157a1ab', u'536205b4724f47d2b412cc0a3add1e5a'] |
| id       | 0b26dc22-56f7-4444-a3e3-bfbcbb550b51                                       |
| name     | my-pcloud                                                                  |
+----------+----------------------------------------------------------------------------+
+-------------------+----------------------------------------------------------------------------------------------------------+
| Property          | Value                                                                                                    |
+-------------------+----------------------------------------------------------------------------------------------------------+
| status            | enabled                                                                                                  |
| host_id           | my-host                                                                                                  |
| flavor            | host.small                                                                                               |
| availability_zone | az1                                                                                                      |
| instances         | [{u'project_id': u'290aa41d7ad4464998702fbb1157a1ab', u'uuid': u'668bd437-8a7f-4e23-871c-310794b52f34'}] |
+-------------------+----------------------------------------------------------------------------------------------------------+