mysql fails to start due to df of missing directory

Bug #1270017 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Steve Kowalik

Bug Description

In upstart:
pre-start script
    #Sanity checks
    [ -r $HOME/my.cnf ]
    [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld
    /lib/init/apparmor-profile-load usr.sbin.mysqld
    LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1 | awk '{ exit ($4<4096) }'
end script

but there is no /var/lib/mysql

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-image-elements (master)

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

Changed in tripleo:
assignee: nobody → Steve Kowalik (stevenk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-image-elements (master)

Reviewed: https://review.openstack.org/67742
Committed: https://git.openstack.org/cgit/openstack/tripleo-image-elements/commit/?id=7ecbbb0e3a6a94e2e09292db59b96dbe41860cde
Submitter: Jenkins
Branch: master

commit 7ecbbb0e3a6a94e2e09292db59b96dbe41860cde
Author: Steve Kowalik <email address hidden>
Date: Mon Jan 20 11:49:11 2014 +1100

    Replace /var/lib/mysql path in the upstart script

    The Upstart script for MySQL checks /var/lib/mysql on start, but with
    the move to /mnt/state, the directory does not exist, so it fails to
    start. Replace the path in the install.d script for the element.

    Closes-Bug: 1270017
    Change-Id: I1c51c559b585bf561d9e5e0fbcf1569794b9419e

Changed in tripleo:
status: In Progress → Fix Released
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.