diff options
author | Patrick Darley <patrick.darley@codethink.co.uk> | 2015-03-19 18:13:34 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-03-20 17:47:04 +0000 |
commit | 874943b27eb8f4d174fd13f6d284a4d9df21640d (patch) | |
tree | 33d8bec572c8b36b3c20d248e4eb594d06e536f5 /openstack/usr/share/openstack/openstack-cinder-setup | |
parent | 4c41298313afbd064b7adde19eca4776e5e4a8de (diff) | |
download | definitions-874943b27eb8f4d174fd13f6d284a4d9df21640d.tar.gz |
Run target.service as part of the cinder setup. Necessary for using
`nova volume attach`.
Note the `depmod -a` is required to prevent the service from working,
did not look into this too much. To do with generating a map of the
kernel modules in the tree for the other kmod commands.
Diffstat (limited to 'openstack/usr/share/openstack/openstack-cinder-setup')
-rw-r--r-- | openstack/usr/share/openstack/openstack-cinder-setup | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openstack/usr/share/openstack/openstack-cinder-setup b/openstack/usr/share/openstack/openstack-cinder-setup index cc427f76..01baf80d 100644 --- a/openstack/usr/share/openstack/openstack-cinder-setup +++ b/openstack/usr/share/openstack/openstack-cinder-setup @@ -129,4 +129,9 @@ ln -s "/etc/systemd/system/openstack-cinder-volume.service" \ ln -s "/etc/systemd/system/openstack-cinder-backup.service" \ "/etc/systemd/system/multi-user.target.wants/openstack-cinder-backup.service" +# Run the target service required for attaching volumes +depmod -a +systemctl enable target +systemctl start target + exit 0 |