diff --git a/lib/cinder b/lib/cinder index f0715a4d9f..5b38719a16 100644 --- a/lib/cinder +++ b/lib/cinder @@ -106,6 +106,11 @@ function init_cinder() { fi if sudo vgs $VOLUME_GROUP; then + if [[ "$os_PACKAGE" = "rpm" ]]; then + # RPM doesn't start the service + start_service tgtd + fi + # Remove iscsi targets sudo tgtadm --op show --mode target | grep $VOLUME_NAME_PREFIX | grep Target | cut -f3 -d ' ' | sudo xargs -n1 tgt-admin --delete || true # Clean out existing volumes diff --git a/stack.sh b/stack.sh index d3de7162f2..e4b79448f7 100755 --- a/stack.sh +++ b/stack.sh @@ -1704,6 +1704,11 @@ elif is_service_enabled n-vol; then fi if sudo vgs $VOLUME_GROUP; then + if [[ "$os_PACKAGE" = "rpm" ]]; then + # RPM doesn't start the service + start_service tgtd + fi + # Remove nova iscsi targets sudo tgtadm --op show --mode target | grep $VOLUME_NAME_PREFIX | grep Target | cut -f3 -d ' ' | sudo xargs -n1 tgt-admin --delete || true # Clean out existing volumes