Public bug reported:

Description
===========
If we try to resize a host to a new flavor and resize fails due to missing ssh 
host-keys. Then the resources aren't released on the target host.

Steps to reproduce
==================
1. Check output from placement API

Output from placement API before resize command:

HOST A:
{
    "resource_provider_generation": 997,
    "usages": {
        "DISK_GB": 0,
        "MEMORY_MB": 495616,
        "VCPU": 84
    }
}

HOST B:
{
    "resource_provider_generation": 33,
    "usages": {
        "DISK_GB": 0,
        "MEMORY_MB": 221184,
        "VCPU": 40
    }
}

2. Try to resize host and check resources from placement API:

This is the output after resize (to flavor with 24GB and 12CPUs) failed:
HOST B:
{
    "resource_provider_generation": 33,
    "usages": {
        "DISK_GB": 0,
        "MEMORY_MB": 245760,
        "VCPU": 52
    }
}

3. Delete VM an check resources again
After deleting the VM the resources have been released (on source and target 
host).

Expected result
===============
If resizing fails resources must be released on target host.

Actual result
=============
Resources aren't released on target host.


Environment
===========
1. Openstack version:
nova-api 2:16.0.3-0ubuntu1~cloud0
nova-common 2:16.0.3-0ubuntu1~cloud0
nova-conductor 2:16.0.3-0ubuntu1~cloud0
nova-consoleauth 2:16.0.3-0ubuntu1~cloud0
nova-novncproxy 2:16.0.3-0ubuntu1~cloud0
nova-placement-api 2:16.0.3-0ubuntu1~cloud0
nova-scheduler 2:16.0.3-0ubuntu1~cloud0
python-nova 2:16.0.3-0ubuntu1~cloud0
python-novaclient 2:9.1.0-0ubuntu1~cloud0


2. Hypervisor:
Libvirt + KVM

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

Title:
  resources on target host aren't released if resize fails

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  If we try to resize a host to a new flavor and resize fails due to missing 
ssh host-keys. Then the resources aren't released on the target host.

  Steps to reproduce
  ==================
  1. Check output from placement API

  Output from placement API before resize command:

  HOST A:
  {
      "resource_provider_generation": 997,
      "usages": {
          "DISK_GB": 0,
          "MEMORY_MB": 495616,
          "VCPU": 84
      }
  }

  HOST B:
  {
      "resource_provider_generation": 33,
      "usages": {
          "DISK_GB": 0,
          "MEMORY_MB": 221184,
          "VCPU": 40
      }
  }

  2. Try to resize host and check resources from placement API:

  This is the output after resize (to flavor with 24GB and 12CPUs) failed:
  HOST B:
  {
      "resource_provider_generation": 33,
      "usages": {
          "DISK_GB": 0,
          "MEMORY_MB": 245760,
          "VCPU": 52
      }
  }

  3. Delete VM an check resources again
  After deleting the VM the resources have been released (on source and target 
host).

  Expected result
  ===============
  If resizing fails resources must be released on target host.

  Actual result
  =============
  Resources aren't released on target host.


  Environment
  ===========
  1. Openstack version:
  nova-api 2:16.0.3-0ubuntu1~cloud0
  nova-common 2:16.0.3-0ubuntu1~cloud0
  nova-conductor 2:16.0.3-0ubuntu1~cloud0
  nova-consoleauth 2:16.0.3-0ubuntu1~cloud0
  nova-novncproxy 2:16.0.3-0ubuntu1~cloud0
  nova-placement-api 2:16.0.3-0ubuntu1~cloud0
  nova-scheduler 2:16.0.3-0ubuntu1~cloud0
  python-nova 2:16.0.3-0ubuntu1~cloud0
  python-novaclient 2:9.1.0-0ubuntu1~cloud0

  
  2. Hypervisor:
  Libvirt + KVM

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to