Skip to content
Snippets Groups Projects
  • Maksim Malchuk's avatar
    75f55d13
    Fix Apparmor libvirt profile removal · 75f55d13
    Maksim Malchuk authored
    
    The apparmor_parser actually doesn't remove the file or doesn't create
    the symlink in '/etc/apparmor.d/disable' itself so the next run of the
    baremetal role will fail with the error "Unable to remove "libvirtd".
    Even more after reboot, the profile is still active. We need to
    disable the profile completly ourselves. This change fixes the
    idempotents of the baremetal role.
    
    Closes-Bug: #1960302
    Change-Id: I162e417387393e806886b1c9ea8053b89778b4d1
    Signed-off-by: default avatarMaksim Malchuk <maksim.malchuk@gmail.com>
    75f55d13
    History
    Fix Apparmor libvirt profile removal
    Maksim Malchuk authored
    
    The apparmor_parser actually doesn't remove the file or doesn't create
    the symlink in '/etc/apparmor.d/disable' itself so the next run of the
    baremetal role will fail with the error "Unable to remove "libvirtd".
    Even more after reboot, the profile is still active. We need to
    disable the profile completly ourselves. This change fixes the
    idempotents of the baremetal role.
    
    Closes-Bug: #1960302
    Change-Id: I162e417387393e806886b1c9ea8053b89778b4d1
    Signed-off-by: default avatarMaksim Malchuk <maksim.malchuk@gmail.com>