From 874943b27eb8f4d174fd13f6d284a4d9df21640d Mon Sep 17 00:00:00 2001 From: Patrick Darley Date: Thu, 19 Mar 2015 18:13:34 +0000 Subject: 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. --- openstack/usr/share/openstack/openstack-cinder-setup | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1