Enabling of mysql on Fedora20 doesn't work after latest operating system update

Bug #1402410 reported by Sergey Gotliv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Undecided
Sergey Gotliv

Bug Description

After latest update of Fedora installation of mysql with Trove guestagent is broken. It looks like systemd stopped supporting absolute path to the unit file.

For exmaple:

systemctl enable /usr/lib/systemd/system/mariadb.service

returns "Failed to issue method call: Invalid argument"

while "systemctl enable mariadb.service" works.

According to the systemctl man page absolute path should be supported:

"For Unit File Commands the NAME represents full name of the unit file, or absolute path to the unit file.

           systemctl start /path/to/foo.service
"

But till systemd will fix the issue, I have to fix it in Trove to make it possible to install mysql on Fedora guest.

Sergey Gotliv (sgotliv)
Changed in trove:
assignee: nobody → Sergey Gotliv (sgotliv)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

Fix proposed to branch: master
Review: https://review.openstack.org/141656

Changed in trove:
status: New → In Progress
Sergey Gotliv (sgotliv)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/141656
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=bdb3f3b3b9bda93055ac20ee0bfbbe5aecf1d37b
Submitter: Jenkins
Branch: master

commit bdb3f3b3b9bda93055ac20ee0bfbbe5aecf1d37b
Author: Sergey Gotliv <email address hidden>
Date: Sun Dec 14 19:32:24 2014 +0200

    Use unit file to enable systemd service

    Although systemd's systemctl should support an absolute path for unit
    file commands like for example 'enable', it seems like after latest
    update of my Fedora 20 environment, the following doesn't work anymore,
    see:

    https://bugzilla.redhat.com/show_bug.cgi?id=1174370

    Following command fails with absolute path:

    systemctl enable /usr/lib/systemd/system/mariadb.service

    But works when replacing absolute path by unit file name only:

    systemctl enable mariadb.service

    Change-Id: Icfb7118d641ae7f9326e57817f854d6cd5983246
    Closes-Bug: #1402410

Changed in trove:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in trove:
milestone: none → kilo-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: kilo-2 → 2015.1.0
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.