summaryrefslogtreecommitdiff
path: root/openstack/usr/share/openstack/openstack-cinder-setup
diff options
context:
space:
mode:
Diffstat (limited to 'openstack/usr/share/openstack/openstack-cinder-setup')
-rw-r--r--openstack/usr/share/openstack/openstack-cinder-setup16
1 files changed, 11 insertions, 5 deletions
diff --git a/openstack/usr/share/openstack/openstack-cinder-setup b/openstack/usr/share/openstack/openstack-cinder-setup
index 01baf80d..59fd0085 100644
--- a/openstack/usr/share/openstack/openstack-cinder-setup
+++ b/openstack/usr/share/openstack/openstack-cinder-setup
@@ -15,7 +15,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-set -e
+set -xe
# Create required system users and groups
@@ -117,18 +117,24 @@ systemctl start openstack-cinder-volume
systemctl start openstack-cinder-backup
# Create the links to run nova services when system start next times.
-ln -s "/etc/systemd/system/openstack-cinder-api.service" \
+ln -sf "/etc/systemd/system/openstack-cinder-api.service" \
"/etc/systemd/system/multi-user.target.wants/openstack-cinder-api.service"
-ln -s "/etc/systemd/system/openstack-cinder-scheduler.service" \
+ln -sf "/etc/systemd/system/openstack-cinder-scheduler.service" \
"/etc/systemd/system/multi-user.target.wants/openstack-cinder-scheduler.service"
-ln -s "/etc/systemd/system/openstack-cinder-volume.service" \
+ln -sf "/etc/systemd/system/openstack-cinder-volume.service" \
"/etc/systemd/system/multi-user.target.wants/openstack-cinder-volume.service"
-ln -s "/etc/systemd/system/openstack-cinder-backup.service" \
+ln -sf "/etc/systemd/system/openstack-cinder-backup.service" \
"/etc/systemd/system/multi-user.target.wants/openstack-cinder-backup.service"
+# Create the cinder LVM type and set a volume backend name
+export OS_SERVICE_TOKEN=##KEYSTONE_TEMPORARY_ADMIN_TOKEN##
+export OS_SERVICE_ENDPOINT='http://onenode:35357/v2.0'
+cinder type-create lvms
+cinder type-key lvms set volume_backend_name=LVM_iSCSI
+
# Run the target service required for attaching volumes
depmod -a
systemctl enable target