Add check which audits for Allocations against resource providers which are invalid

Bug #1940719 reported by Drew Freiberger
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-openstack-service-checks
Fix Released
Medium
Przemyslaw Lal

Bug Description

Due to various failures of VM deployments and migrations, we sometimes have stale resource allocations against resource providers in the placement/nova_api database which cause "ghost" contention when scheduling resources.

This charm should audit all allocations against each resource provider and ensure that the allocations' instance is "not deleted or shelved" and "exists on the hypervisor matching the resource provider".

Related branches

Revision history for this message
Drew Freiberger (afreiberger) wrote :

One quick-win check for this could be ensuring allocation count for a given provider matches the number of vms/servers scheduled to the host:

$ os resource provider show $server1_resource_provider_uuid --allocations --format yaml | grep resources | wc -l
37
$ os server list --all --host $server1_fqdn -fvalue | wc -l
28

Changed in charm-openstack-service-checks:
status: New → In Progress
assignee: nobody → Przemysław Lal (przemeklal)
Andrea Ieri (aieri)
Changed in charm-openstack-service-checks:
importance: Undecided → Medium
milestone: none → 22.01
Changed in charm-openstack-service-checks:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.