Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Adds svc-map to cinder elements
Browse files Browse the repository at this point in the history
This patch changes the use of map-services to svc-map for the
cinder-tgt and cinder-volume elements.

Change-Id: I58da499d723957534d022112e261e20bff0c9e67
  • Loading branch information
Ryan Brady committed Oct 15, 2014
1 parent a64a326 commit e9530f0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
Expand Up @@ -2,4 +2,4 @@

set -eu

os-svc-restart -n tgt
os-svc-restart -an tgt
4 changes: 4 additions & 0 deletions elements/cinder-tgt/svc-map
@@ -0,0 +1,4 @@
tgt:
default: tgt
redhat: tgtd

Expand Up @@ -3,7 +3,7 @@ set -eu

IS_NFS=$(os-apply-config --key cinder.include_nfs_backend --type raw --key-default 'false')

os-svc-enable -n cinder-volume
os-svc-enable -an cinder-volume

if [ "$IS_NFS" != "false" ] ; then
# If *shared* NFS backend is used then running multiple instances
Expand All @@ -12,5 +12,5 @@ if [ "$IS_NFS" != "false" ] ; then
# As a workaround we run cinder-volume in a/p mode using pacemaker.
pcmk-service-create -n cinder-volume
else
os-svc-restart -n cinder-volume
os-svc-restart -an cinder-volume
fi
3 changes: 3 additions & 0 deletions elements/cinder-volume/svc-map
@@ -0,0 +1,3 @@
cinder-volume:
default: openstack-cinder-volume
debian: cinder-volume

0 comments on commit e9530f0

Please sign in to comment.