diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-03-20 17:45:54 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-03-20 17:47:04 +0000 |
commit | 4694c396210b704e50c0bbb85c57d3866afc2772 (patch) | |
tree | 163b8bfabb058b7e267f90b728076fde8b6d5daf | |
parent | b3558afd5779d8bf4e755840d60599482600e76b (diff) | |
download | definitions-4694c396210b704e50c0bbb85c57d3866afc2772.tar.gz |
WIP: modify cinder-setup to create LVM volume backend
-rw-r--r-- | openstack/usr/share/openstack/openstack-cinder-setup | 16 |
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 |