sous-chefs / mysql

Development repository for the mysql cookbook
https://supermarket.chef.io/cookbooks/mysql
Apache License 2.0
337 stars 691 forks source link

Version 9.0.0 apparmor error #654

Closed itinneed closed 3 years ago

itinneed commented 3 years ago

Cookbook version

9.0.0

Chef-client version

16.6.14

Platform Details

Ubuntu 18.04 virtualbox vm running on top of Windows 10

Scenario:

Install MySQL 5.7

Steps to Reproduce:

Run chef-client

Expected Result:

Successful install

Actual Result:

1

stacktrace.txt

ramereth commented 3 years ago

I've confirm this happening if you remove the apparmor cookbook and references from the test cookbook. It seems to be related to node['apparmor']['disable'] being nil as noted here:

https://github.com/sous-chefs/mysql/blob/844036bde95721c401ce5309007787babdfc412d/libraries/mysql_service_base.rb#L126

I bet you if you include the apparmor cookbook in your wrapper cookbook, this problem will go away. We should probably fix that line of code to account for the fact if the apparmor cookbook isn't included.

Feel free to make a PR to fix this otherwise we'll get to this as soon as we can.

Thanks!