← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1409613] [NEW] nova evacuate allows to evacuate to a host which are not in same aggregate with origin host

 

Public bug reported:

nova allows evacuate an instance to a host which doesn't have specify
feature.


how to reproduce :

1 create aggregate
[tagett@stack-01 devstack]$ nova aggregate-details 2
+----+------+-------------------+----------------+--------------------------------------+
| Id | Name | Availability Zone | Hosts          | Metadata                             |
+----+------+-------------------+----------------+--------------------------------------+
| 2  | s    | nova              | 'stack-kvm110' | 'availability_zone=nova', 'ssd=true' 
2 create flavor
[tagett@stack-01 devstack]$ nova flavor-show 100
+----------------------------+----------------------------------------------+
| Property                   | Value                                        |
+----------------------------+----------------------------------------------+
| OS-FLV-DISABLED:disabled   | False                                        |
| OS-FLV-EXT-DATA:ephemeral  | 0                                            |
| disk                       | 10                                           |
| extra_specs                | {"ssd": "true", "availability_zone": "nova"} |
| id                         | 100                                          |
| name                       | stack110                                     |
| os-flavor-access:is_public | True                                         |
| ram                        | 1024                                         |
| rxtx_factor                | 1.0                                          |
| swap                       |                                              |
| vcpus                      | 2                                            |
+----------------------------+----------------------------------------------+

3 create an instance with flavor 100
[tagett@stack-01 devstack]$ nova list
+--------------------------------------+------------------+---------+------------+-------------+--------------------+
| ID                                   | Name             | Status  | Task State | Power State | Networks           |
+--------------------------------------+------------------+---------+------------+-------------+--------------------+
| 428f0235-be54-462f-8916-f32965d42e63 | boot_from_volume | SHUTOFF | -          | Shutdown    | public=172.24.4.3  |
| b48aa410-769e-4f10-bb9c-181250bb4441 | test             | ACTIVE  | 1          | Running     | public=172.24.4.21 |

4 stop compute service on stack-kvm110
5 nova evacuate test to another host which don't in aggregate 2

** Affects: nova
     Importance: Undecided
     Assignee: Eli Qiao (taget-9)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Eli Qiao (taget-9)

-- 
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/1409613

Title:
  nova evacuate allows to evacuate to a host which are not in same
  aggregate with origin host

Status in OpenStack Compute (Nova):
  New

Bug description:
  nova allows evacuate an instance to a host which doesn't have specify
  feature.

  
  how to reproduce :

  1 create aggregate
  [tagett@stack-01 devstack]$ nova aggregate-details 2
  +----+------+-------------------+----------------+--------------------------------------+
  | Id | Name | Availability Zone | Hosts          | Metadata                             |
  +----+------+-------------------+----------------+--------------------------------------+
  | 2  | s    | nova              | 'stack-kvm110' | 'availability_zone=nova', 'ssd=true' 
  2 create flavor
  [tagett@stack-01 devstack]$ nova flavor-show 100
  +----------------------------+----------------------------------------------+
  | Property                   | Value                                        |
  +----------------------------+----------------------------------------------+
  | OS-FLV-DISABLED:disabled   | False                                        |
  | OS-FLV-EXT-DATA:ephemeral  | 0                                            |
  | disk                       | 10                                           |
  | extra_specs                | {"ssd": "true", "availability_zone": "nova"} |
  | id                         | 100                                          |
  | name                       | stack110                                     |
  | os-flavor-access:is_public | True                                         |
  | ram                        | 1024                                         |
  | rxtx_factor                | 1.0                                          |
  | swap                       |                                              |
  | vcpus                      | 2                                            |
  +----------------------------+----------------------------------------------+

  3 create an instance with flavor 100
  [tagett@stack-01 devstack]$ nova list
  +--------------------------------------+------------------+---------+------------+-------------+--------------------+
  | ID                                   | Name             | Status  | Task State | Power State | Networks           |
  +--------------------------------------+------------------+---------+------------+-------------+--------------------+
  | 428f0235-be54-462f-8916-f32965d42e63 | boot_from_volume | SHUTOFF | -          | Shutdown    | public=172.24.4.3  |
  | b48aa410-769e-4f10-bb9c-181250bb4441 | test             | ACTIVE  | 1          | Running     | public=172.24.4.21 |

  4 stop compute service on stack-kvm110
  5 nova evacuate test to another host which don't in aggregate 2

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


Follow ups

References