Live Migration Failure With Error "Unable to find security driver for model apparmor"

Problem

The live migration of an instance is failing with the following error observed in the /var/log/pf9/ostackhost.log.

Copy

Environment

  • Platform9 Managed OpenStack - All versions.
  • Nova
  • Libvirt
  • AppArmor

Cause

The live migration is failing because the libvirt profile was not loaded in AppArmor.

Resolution

  1. Run the following command to check if the libvirt__profile is loaded in AppArmor.
Copy
  1. Run the following commands to add the libvirt profiles to AppArmor.
Copy
  1. Restart the libvirtd service.
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard