yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #89154
[Bug 1890244] Re: nova scheduler should ignore removed groups
I was able to reproduce this bug.
This is due to the fact we look at the RequestSpec https://github.com/openstack/nova/blob/ebe08834f311e8e22bfd9685d7e6e91dab967382/nova/compute/manager.py#L3657
and then we direcly ask to get the group by the hint there
https://github.com/openstack/nova/blob/ebe08834f311e8e22bfd9685d7e6e91dab967382/nova/compute/manager.py#L1733
Eventually, if the group is deleted, we'll return a
InstanceGroupNotFound exception by
https://github.com/openstack/nova/blob/ebe08834f311e8e22bfd9685d7e6e91dab967382/nova/objects/instance_group.py#L223
** Changed in: nova
Status: Expired => Triaged
** Changed in: nova
Importance: Undecided => Medium
--
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/1890244
Title:
nova scheduler should ignore removed groups
Status in OpenStack Compute (nova):
Triaged
Bug description:
Description
===========
We created a server group and started some instances in it.
Later we removed the server group.
Some time later, we had to evacuate these instances, but this failed, because the
scheduler removed all available hosts during filtering.
Steps to reproduce
==================
* create a server group
* start some instances in this group
* delete the server group
* ( hard poweroff your hypervisor )
* evacuate the instances
Expected result
===============
The instances are evacuated
Actual result
=============
The instances run into ERROR-state, because the server group is not found.
Environment
===========
* Kolla deployed OpenStack Train
* Ubuntu 18.04 / KVM + Libvirt
Logs & Configs
==============
scheduler tells:
Filtering removed all hosts for the request with instance ID
'adddf2c9-0252-4463-a97c-f1ec209d9f49'. Filter results:
['AvailabilityZoneFilter: (start: 2, end: 2)', 'ComputeFilter: (start:
2, end: 2)', 'ComputeCapabilitiesFilter: (start: 2, end: 2)',
'ImagePropertiesFilter: (start: 2, end: 2)',
'ServerGroupAntiAffinityFilter: (start: 2, end: 2)',
'ServerGroupAffinityFilter: (start: 2, end: 0)']
instance show:
| fault | {'code': 404, 'created': '2020-08-04T06:13:41Z', 'message':
'Instance group 7e84dc57-de05-4c92-9e3b-6e2d06c1d85b could not be
found.'} |
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1890244/+subscriptions
References