devstack swift cannot create data dirs Permission denied

Bug #1302893 reported by Geronimo Orozco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Geronimo Orozco

Bug Description

devstack fails when SWIFT_DATA_DIR is set on log sections..

cat local.conf

SWIFT_DATA_DIR=/data

./stack.sh

2014-04-04 23:40:55.883 | + swift_log_dir=/data/logs
2014-04-04 23:40:55.885 | + rm -rf /data/logs
2014-04-04 23:40:55.888 | + mkdir -p /data/logs/hourly
2014-04-04 23:40:55.890 | mkdir: cannot create directory `/data': Permission denied
2014-04-04 23:40:55.892 | + exit_trap
2014-04-04 23:40:55.896 | + local r=1
2014-04-04 23:40:55.898 | ++ jobs -p
2014-04-04 23:40:55.901 | + jobs=
2014-04-04 23:40:55.903 | + [[ -n '' ]]
2014-04-04 23:40:55.905 | + exit 1

Changed in devstack:
assignee: nobody → Geronimo Orozco (gorozco)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

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

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/165951
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=2f6576bfaf7f43d9bf820e3e5ecc0b7fd136ce3c
Submitter: Jenkins
Branch: master

commit 2f6576bfaf7f43d9bf820e3e5ecc0b7fd136ce3c
Author: Geronimo Orozco <email address hidden>
Date: Thu Mar 19 12:08:23 2015 -0600

    Creates SWIFT_DATA_DIR if it does not exist

    If SWIFT_DATA_DIR is set on local.conf we need to make sure to create
    the directory with proper permissions

    Change-Id: If29fa53f01b4c0c8a881ec3734383ecffac334ce
    Closes-Bug: 1302893

Changed in devstack:
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.