← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Reviewed:  https://review.opendev.org/663851
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=27b6c18c666389ee68935f28cf340b7673879d6f
Submitter: Zuul
Branch:    master

commit 27b6c18c666389ee68935f28cf340b7673879d6f
Author: zhangbailin <zhangbailin@xxxxxxxxxx>
Date:   Fri Jun 7 15:11:29 2019 +0800

    Specify availability_zone to unshelve
    
    This adds support, in a new microversion, for specifying an availability
    zone to the unshelve server action when the server is shelved offloaded.
    
    Note that the functional test changes are due to those tests using the
    "latest" microversion where an empty dict is not allowed for unshelve
    with 2.77 so the value is changed from an empty dict to None.
    
    Implements: blueprint support-specifying-az-when-restore-shelved-server
    Closes-Bug: #1723880
    
    Change-Id: I4b13483eef42bed91d69eabf1f30762d6866f957


** Changed in: nova
       Status: In Progress => Fix Released

-- 
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):
  Fix Released

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


References