My Oracle Support Banner

OLVM: KVM Host Stuck at 'Preparing to Maintenance' (Doc ID 2675432.1)

Last updated on MAY 29, 2020

Applies to:

Linux OS - Version Oracle Linux 7.6 and later
Linux x86-64

Symptoms

When putting the KVM Host in maintenance in AdminPortal, it stuck at 'Preparing to maintenance'

Engine log reports Migration VM failure.

2020-05-29 13:05:20,799+12 ERROR [org.ovirt.engine.core.vdsbroker.monitoring.VmsMonitoring] (ForkJoinPool-1-worker-6) [] Rerun VM '<VM UUID>'. Called from VDS '<KVM Host-Migration Source>'
2020-05-29 13:05:20,824+12 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-641144) [] EVENT_ID: VM_MIGRATION_TO_SERVER_FAILED(120), 
 Migration failed (VM: VM xxx;, Source:<KVM Host-Migration Source>;,  Destination:<KVM Host-Migration Destination>;).
2020-05-29 13:10:22,946+12 ERROR [org.ovirt.engine.core.vdsbroker.monitoring.VmsMonitoring] (ForkJoinPool-1-worker-15) [] Rerun VM '<VM UUID>;'. Called from VDS '<KVM Host-Migration Source>;'
2020-05-29 13:10:22,948+12 INFO [org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateStatusVDSCommand] (EE-ManagedThreadFactory-engine-Thread-641228) [] START, MigrateStatusVDSCommand
 (HostName = <KVM Host-Migration Source>;, MigrateStatusVDSCommandParameters:{hostId='xxxxxx',  vmId='<VM UUID>;'}), log id: 67f1713c
2020-05-29 13:10:23,004+12 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-Thread-641228) [] EVENT_ID: VM_MIGRATION_TO_SERVER_FAILED(120),
 Migration failed (VM: VM xxx;, Source:<KVM Host-Migration Source>;,  Destination: <KVM Host-Migration Destination>;).

Source KVM Host vdsm.log reports with 'libvirtError: unsupported configuration: Unable to find security driver for model SELinux' error:

2020-05-29 13:05:20,358+1200 INFO (migsrc/eeefafa3) [virt.vm] (vmId='VM UUID;') starting migration to qemu+tls://<KVM Host-Migration Destination IP>;/system with miguri 
 tcp://<KVM Host-Migration Destination IP>; (migration:498)
2020-05-29 13:05:20,581+1200 ERROR (migsrc/eeefafa3) [virt.vm] (vmId='VM UUID;') unsupported configuration: Unable to find security driver for model selinux (migration:282)
2020-05-29 13:05:20,781+1200 ERROR (migsrc/eeefafa3) [virt.vm] (vmId='VM UUID;') Failed to migrate (migration:450)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/vdsm/virt/migration.py", line 431, in _regular_run
time.time(), migrationParams, machineParams
File "/usr/lib/python2.7/site-packages/vdsm/virt/migration.py", line 505, in _startUnderlyingMigration
self._perform_with_conv_schedule(duri, muri)
File "/usr/lib/python2.7/site-packages/vdsm/virt/migration.py", line 591, in _perform_with_conv_schedule
self._perform_migration(duri, muri)
File "/usr/lib/python2.7/site-packages/vdsm/virt/migration.py", line 525, in _perform_migration
self._migration_flags)
File "/usr/lib/python2.7/site-packages/vdsm/virt/virdomain.py", line 100, in f
ret = attr(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/common/libvirtconnection.py", line 131, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/vdsm/common/function.py", line 94, in wrapper
return func(inst, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1781, in migrateToURI3
if ret == -1: raise libvirtError ('virDomainMigrateToURI3() failed', dom=self)
libvirtError: unsupported configuration: Unable to find security driver for model selinux

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.