← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1277230] [NEW] Overlapping availability zones don't display properly

 

Public bug reported:

If you create two overlapping availability zones, the get availability
zones command returns odd information.

Repro:

$ nova --os-username admin --os-tenant-name admin --os-password secrete aggregate-create foo foo
+----+------+-------------------+-------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+------+-------------------+-------+----------+
| 2  | foo  | foo               |       |          |
+----+------+-------------------+-------+----------+

$ nova --os-username admin --os-tenant-name admin --os-password secrete aggregate-add-host 2 node001-cont001
Aggregate 2 has been successfully updated.
+----+------+-------------------+----------------------+--------------------------------+
| Id | Name | Availability Zone | Hosts                | Metadata                       |
+----+------+-------------------+----------------------+--------------------------------+
| 2  | foo  | foo               | [u'node001-cont001'] | {u'availability_zone': u'foo'} |
+----+------+-------------------+----------------------+--------------------------------+

$ nova availability-zone-list
+-------------+-----------+
| Name        | Status    |
+-------------+-----------+
| zone001     | available |
| zone001,foo | available |
+-------------+-----------+

Expected:
+---------+-----------+
| Name    | Status    |
+---------+-----------+
| zone001 | available |
| foo     | available |
+---------+-----------+

The admin view is a little more useful:

$ nova --os-username admin --os-tenant-name admin --os-password secrete availability-zone-list
+-----------------------+----------------------------------------+
| Name                  | Status                                 |
+-----------------------+----------------------------------------+
| internal              | available                              |
...
| zone001               | available                              |
| |- node005-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:31.000000 |
| |- node007-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
| |- node009-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:25.000000 |
| |- node003-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
| zone001,foo           | available                              |
| |- node001-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
+-----------------------+----------------------------------------+

but it could easily show two copies of the node that is in two zones:

+-----------------------+----------------------------------------+
| Name                  | Status                                 |
+-----------------------+----------------------------------------+
| internal              | available                              |
...
| zone001               | available                              |
| |- node005-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:31.000000 |
| |- node007-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
| |- node009-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:25.000000 |
| |- node003-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
| |- node001-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
| foo                   | available                              |
| |- node001-cont001    |                                        |
| | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
+-----------------------+----------------------------------------+

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1277230

Title:
  Overlapping availability zones don't display properly

Status in OpenStack Compute (Nova):
  New

Bug description:
  If you create two overlapping availability zones, the get availability
  zones command returns odd information.

  Repro:

  $ nova --os-username admin --os-tenant-name admin --os-password secrete aggregate-create foo foo
  +----+------+-------------------+-------+----------+
  | Id | Name | Availability Zone | Hosts | Metadata |
  +----+------+-------------------+-------+----------+
  | 2  | foo  | foo               |       |          |
  +----+------+-------------------+-------+----------+

  $ nova --os-username admin --os-tenant-name admin --os-password secrete aggregate-add-host 2 node001-cont001
  Aggregate 2 has been successfully updated.
  +----+------+-------------------+----------------------+--------------------------------+
  | Id | Name | Availability Zone | Hosts                | Metadata                       |
  +----+------+-------------------+----------------------+--------------------------------+
  | 2  | foo  | foo               | [u'node001-cont001'] | {u'availability_zone': u'foo'} |
  +----+------+-------------------+----------------------+--------------------------------+

  $ nova availability-zone-list
  +-------------+-----------+
  | Name        | Status    |
  +-------------+-----------+
  | zone001     | available |
  | zone001,foo | available |
  +-------------+-----------+

  Expected:
  +---------+-----------+
  | Name    | Status    |
  +---------+-----------+
  | zone001 | available |
  | foo     | available |
  +---------+-----------+

  The admin view is a little more useful:

  $ nova --os-username admin --os-tenant-name admin --os-password secrete availability-zone-list
  +-----------------------+----------------------------------------+
  | Name                  | Status                                 |
  +-----------------------+----------------------------------------+
  | internal              | available                              |
  ...
  | zone001               | available                              |
  | |- node005-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:31.000000 |
  | |- node007-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
  | |- node009-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:25.000000 |
  | |- node003-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
  | zone001,foo           | available                              |
  | |- node001-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
  +-----------------------+----------------------------------------+

  but it could easily show two copies of the node that is in two zones:

  +-----------------------+----------------------------------------+
  | Name                  | Status                                 |
  +-----------------------+----------------------------------------+
  | internal              | available                              |
  ...
  | zone001               | available                              |
  | |- node005-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:31.000000 |
  | |- node007-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
  | |- node009-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:25.000000 |
  | |- node003-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
  | |- node001-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
  | foo                   | available                              |
  | |- node001-cont001    |                                        |
  | | |- nova-compute     | enabled :-) 2014-02-06T19:18:27.000000 |
  +-----------------------+----------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1277230/+subscriptions


Follow ups

References