[MDEV-12231] MariaDB fails to restart after 10.0.30-1.el7 update Created: 2017-03-11 Updated: 2017-04-17 Resolved: 2017-04-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform RedHat |
| Affects Version/s: | 10.0.30 |
| Fix Version/s: | 5.5.55, 10.1.23, 10.0.31 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Jarrod Farncomb | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
CentOS 7.3 |
||
| Issue Links: |
|
||||||||
| Description |
|
The issue reported in I have just installed MariaDB 10.0.30 on a fresh CentOS 7.3 minimal system and cannot start it with SELinux enabled. The errors are exactly the same as outlined in
|
| Comments |
| Comment by Sergei Golubchik [ 2017-03-11 ] | |
|
So, do you have /usr/sbin/semodule executable? What hapens if you run
| |
| Comment by Jarrod Farncomb [ 2017-03-11 ] | |
|
Yes, /usr/sbin/semodule is present. The /usr/share/mysql/policy/ directory however is not. I cannot find maradb.pp within /usr/share/mysql/* | |
| Comment by Sergei Golubchik [ 2017-03-12 ] | |
|
dbart, it turns out that our CentOS7 builder didn't have SELinux tools installed (checkmodule and semodule_package), so the mariadb.pp was not built. I've now commited and pushed (into 5.5) a change that will fail the build if these files are not present (only on release RPM builds). It seems to fail only on CentOS7 and SuSE, so other builders are fine. Could you please install these tools on affected VMs? And then restart failed bulds, to make sure everything's ok now. Thanks! | |
| Comment by Daniel Bartholomew [ 2017-03-14 ] | |
|
The policycoreutils-python package had the necessary semodule_package tool, and it has a dependency to pull in the checkpolicy package, which has the checkmodule tool. Installed on CentOS 7 and suse/opensuse builders and it appears the builds are now working. The next versions of 5.5, 10.0, and 10.1 should all work properly now. serg: Does anything else need to be done for this? Thanks. | |
| Comment by Sergei Golubchik [ 2017-03-14 ] | |
|
Looks ok in buildbot, thanks! | |
| Comment by Maarten Bremer [ 2017-03-16 ] | |
|
This issue is also present with the policycoreutils-python package installed. During installation the following error is shown: libsemanage.map_file: Unable to open /usr/share/mysql/SELinux/mariadb.pp The directory /usr/share/mysql/SELinux/ contains the following files: | |
| Comment by Daniel Bartholomew [ 2017-03-17 ] | |
|
maarten: The policycoreutils-python package issue was with the machine that builds our RHEL/CentOS 7 packages. Because it wasn't installed the build system didn't generate the mariadb.pp file, which is why it doesn't exist in our current RPMs. Now that the builder has been fixed the file will be generated properly and will be present in our future releases. |