AppArmor support

Bug #1807522 reported by Noel McLoughlin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Expired
Undecided
Unassigned

Bug Description

On Ubuntu 18.04 stack.sh failed because MySQL cannot write to /var/lib/mysql/

This is caused by Apparmor. The following workaround was required-

$ echo '/var/lib/mysql/ r,' > /etc/apparmor.d/local/usr.sbin.mysqld
$ echo '/var/lib/mysql/** rwk,' > /etc/apparmor.d/local/usr.sbin.mysqld

Revision history for this message
Noel McLoughlin (noelmcloughlin) wrote :

Correction.

$ echo '/var/lib/mysql/ r,' > /etc/apparmor.d/local/usr.sbin.mysqld
$ echo '/var/lib/mysql/** rwk,' >> /etc/apparmor.d/local/usr.sbin.mysqld

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Please show details of how you are seeing issues, how did you install Ubuntu, which version of devstack are you using? Please attach your local.conf and the complete log from the stack.sh run on a fresh machine.

For my setup, I cannot reproduce this and I find that /etc/apparmor.d/usr.sbin.mysqld which belongs to mysql-server-5.7==5.7.24-0ubuntu0.18.04.1 already has the lines you want to add.

Changed in devstack:
status: New → Incomplete
Revision history for this message
Noel McLoughlin (noelmcloughlin) wrote :

I think this was related to https://bugs.launchpad.net/devstack/+bug/1735097 where mariadb is installed before devstack runs. I made sure mariadb is not installed before devstack. I'm happy to close the issue.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for devstack because there has been no activity for 60 days.]

Changed in devstack:
status: Incomplete → Expired
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.