Bug 1520577
| Summary: | systemd unit file for mariadb server should include alias for mysqld.service | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Garri <g.djavadyan> | |
| Component: | mariadb | Assignee: | Michal Schorm <mschorm> | |
| Status: | CLOSED CANTFIX | QA Contact: | qe-baseos-daemons | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 7.4 | CC: | databases-maint, g.djavadyan, hhorak, mmuzila | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1520905 (view as bug list) | Environment: | ||
| Last Closed: | 2018-05-14 09:29:49 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1520905 | |||
|
Description
Garri
2017-12-04 18:38:40 UTC
Hello, That looks like a good idea It will make it more convenient and as a bonus we will close up with upstream. This issue doesn't seem to hurry, so I'll start this change in Fedora first. I don't think this is a good idea -- we deliberately stopped shipping mysqld name of the service when we worked on RHEL-7 package, to not be mistaken with MySQL. Also, upstream ships mariadb.service now for RHEL-7 and Fedora (at least for version 10.2). (In reply to Honza Horak from comment #3) > I don't think this is a good idea -- we deliberately stopped shipping mysqld > name of the service when we worked on RHEL-7 package, to not be mistaken > with MySQL. If possible, please specify what issues may arise by installing extra alias (mysqld.service) for the service (mariadb.service). Thanks. > Also, upstream ships mariadb.service now for RHEL-7 and Fedora > (at least for version 10.2). The report is not about unit file name, but about additional aliases. For example, the upstream version MariaDB-10.2.11-centos7-x86_64-server.rpm installs following aliases: $ grep -A 3 mariadb.service [Install] WantedBy=multi-user.target Alias=mysql.service Alias=mysqld.service The fix was added into Fedora Rawhide, mariadb-10.2.11-1.fc28 release. Once this bugzilla gets approved by Product Management (and few others), it will find its way to the RHEL. -- A date of next MariaDB update in RHEL is not yet known. I consider this an easy fix on your side too, however if you are really in hurry and you would like to see this feature in RHEL sooner, you should consider creating a customer ticket. I'm afraid I found a blocker. https://jira.mariadb.org/browse/MDEV-14944 Wihtout systemd rebase to like - today's version - or backporting the patch atleast it won't ever work properly and I'd consider that as no-go, as I won't like to ship broken software intentionaly. What's your opinion, Honza? I think we may just recommend to override system's services by adding drop-in files into /etc/systemd/... as recommended in: https://jira.mariadb.org/browse/MDEV-14944?focusedCommentId=106454&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-106454 ...which mentions: "Distro's installing links in /etc/systemd/system/ seems the wrong place to do it. Seems like this was meant to be user configurable space only." Garri, does this solution fix your use case? (In reply to Honza Horak from comment #8) > Garri, does this solution fix your use case? Yes, it fixes my use case from end user side. I just looked for a way to supply universal unit files by software developers not relying on specific MySQL implementation. Summary: * Can't be fixed in RHEL without systemd v237 or later. * The systemd v>=237 is present in Fedora 28+ and the feature was added there. Thank you for the report. This feature is likely to be seen in new RH products based on systemd v>=237. |