← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1723880] [NEW] Unshelve instance failed with availability zone which be deleted

 

Public bug reported:

I create an instance with the availability zone named 'test_az' and host named 'compute', and then shelve the instance, then delete the availability zone test_az.
But the instance availability zone is still 'test_az',and unshelve the instance failed with the message "No valid host found for unshelve instance"
[root@controller ~(admin)]$ nova show test3
+--------------------------------------+---------------------------------------------------+
| Property                             | Value                                             |
+--------------------------------------+---------------------------------------------------+
| OS-DCF:diskConfig                    | AUTO                                              |
| OS-EXT-AZ:availability_zone          | test_az                                           |
| OS-EXT-SRV-ATTR:host                 | -                                                 |
| OS-EXT-SRV-ATTR:hostname             | test3                                             |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                 |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000004                                 |
| OS-EXT-SRV-ATTR:kernel_id            |                                                   |
| OS-EXT-SRV-ATTR:launch_index         | 0                                                 |
| OS-EXT-SRV-ATTR:ramdisk_id           |                                                   |
| OS-EXT-SRV-ATTR:reservation_id       | r-3i45u68y                                        |
| OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                                          |
| OS-EXT-SRV-ATTR:user_data            | -                                                 |
| OS-EXT-STS:power_state               | 4                                                 |
| OS-EXT-STS:task_state                | -                                                 |
| OS-EXT-STS:vm_state                  | shelved_offloaded                                 |
| OS-SRV-USG:launched_at               | 2017-10-16T07:05:18.000000                        |
| OS-SRV-USG:terminated_at             | -                                                 |
| accessIPv4                           |                                                   |
| accessIPv6                           |                                                   |
| config_drive                         |                                                   |
| created                              | 2017-10-16T07:05:12Z                              |
| description                          | test3                                             |
| flavor                               | m1.small (2)                                      |
| hostId                               |                                                   |
| host_status                          |                                                   |
| id                                   | 8cf627b7-fe67-405b-92b1-a42a6c66f8a6              |
| image                                | centos_7_2 (090d5564-9c64-459e-8d10-4382f1c72488) |
| key_name                             | -                                                 |
| locked                               | False                                             |
| metadata                             | {}                                                |
| name                                 | test3                                             |
| os-extended-volumes:volumes_attached | []                                                |
| security_groups                      | default                                           |
| status                               | SHELVED_OFFLOADED                                 |
| tenant_id                            | 764169e694474ba0a40030e6c8531704                  |
| test network                         | 192.168.0.5                                       |
| updated                              | 2017-10-16T07:07:33Z                              |
| user_id                              | 2ccb44e4ce2e42d5b805b898f2c10243                  |
+--------------------------------------+---------------------------------------------------+

** 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/1723880

Title:
  Unshelve instance failed with availability zone which be deleted

Status in OpenStack Compute (nova):
  New

Bug description:
  I create an instance with the availability zone named 'test_az' and host named 'compute', and then shelve the instance, then delete the availability zone test_az.
  But the instance availability zone is still 'test_az',and unshelve the instance failed with the message "No valid host found for unshelve instance"
  [root@controller ~(admin)]$ nova show test3
  +--------------------------------------+---------------------------------------------------+
  | Property                             | Value                                             |
  +--------------------------------------+---------------------------------------------------+
  | OS-DCF:diskConfig                    | AUTO                                              |
  | OS-EXT-AZ:availability_zone          | test_az                                           |
  | OS-EXT-SRV-ATTR:host                 | -                                                 |
  | OS-EXT-SRV-ATTR:hostname             | test3                                             |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                                 |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00000004                                 |
  | OS-EXT-SRV-ATTR:kernel_id            |                                                   |
  | OS-EXT-SRV-ATTR:launch_index         | 0                                                 |
  | OS-EXT-SRV-ATTR:ramdisk_id           |                                                   |
  | OS-EXT-SRV-ATTR:reservation_id       | r-3i45u68y                                        |
  | OS-EXT-SRV-ATTR:root_device_name     | /dev/vda                                          |
  | OS-EXT-SRV-ATTR:user_data            | -                                                 |
  | OS-EXT-STS:power_state               | 4                                                 |
  | OS-EXT-STS:task_state                | -                                                 |
  | OS-EXT-STS:vm_state                  | shelved_offloaded                                 |
  | OS-SRV-USG:launched_at               | 2017-10-16T07:05:18.000000                        |
  | OS-SRV-USG:terminated_at             | -                                                 |
  | accessIPv4                           |                                                   |
  | accessIPv6                           |                                                   |
  | config_drive                         |                                                   |
  | created                              | 2017-10-16T07:05:12Z                              |
  | description                          | test3                                             |
  | flavor                               | m1.small (2)                                      |
  | hostId                               |                                                   |
  | host_status                          |                                                   |
  | id                                   | 8cf627b7-fe67-405b-92b1-a42a6c66f8a6              |
  | image                                | centos_7_2 (090d5564-9c64-459e-8d10-4382f1c72488) |
  | key_name                             | -                                                 |
  | locked                               | False                                             |
  | metadata                             | {}                                                |
  | name                                 | test3                                             |
  | os-extended-volumes:volumes_attached | []                                                |
  | security_groups                      | default                                           |
  | status                               | SHELVED_OFFLOADED                                 |
  | tenant_id                            | 764169e694474ba0a40030e6c8531704                  |
  | test network                         | 192.168.0.5                                       |
  | updated                              | 2017-10-16T07:07:33Z                              |
  | user_id                              | 2ccb44e4ce2e42d5b805b898f2c10243                  |
  +--------------------------------------+---------------------------------------------------+

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


Follow ups