Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge "Re-mount swift disk image in start-deps"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jul 13, 2014
2 parents 56592dd + 4aeafc2 commit 975fa34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/redstack
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,12 @@ function cmd_start_deps() {
exclaim "Reconnecting Volume Group to Backing File"
sudo losetup -f --show ${VOLUME_BACKING_FILE}
fi

if ! egrep -q ${SWIFT_DATA_DIR}/drives/sdb1 /proc/mounts; then
exclaim "Re-mounting Swift Disk Image"
sudo mount -t xfs -o loop,noatime,nodiratime,nobarrier,logbufs=8 ${SWIFT_DISK_IMAGE} ${SWIFT_DATA_DIR}/drives/sdb1
fi

if [[ -e $PATH_DEVSTACK_SRC/stack-screenrc ]]; then
screen -dmS stack -c $PATH_DEVSTACK_SRC/stack-screenrc
fi
Expand Down
4 changes: 4 additions & 0 deletions scripts/redstack.rc
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,9 @@ SERVICE_PASSWORD=7de4162d826bc5a11ad9
# Swift hash used by devstack.
SWIFT_HASH=12go358snjw24501

# Swift Disk Image
SWIFT_DATA_DIR=${DATA_DIR}/swift
SWIFT_DISK_IMAGE=${SWIFT_DATA_DIR}/drives/images/swift.img

DISTRO=${DISTRO:-ubuntu}
#DISTRO=fedora

0 comments on commit 975fa34

Please sign in to comment.