diff options
author | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-04-08 15:16:21 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-04-08 15:16:21 +0000 |
commit | 9297517d2793e32374297471ef53f5f0d5966f6c (patch) | |
tree | 9e3066d08ada573943527f632d0b14c180b59b61 | |
parent | 5aae293c3c63c26bb789f366bdc1c035722e0d95 (diff) | |
download | definitions-9297517d2793e32374297471ef53f5f0d5966f6c.tar.gz |
Enable and start iscsid in after configure the iscsi-initiator
-rw-r--r-- | openstack-cinder.configure | 3 | ||||
-rw-r--r-- | openstack/usr/share/openstack/openstack-cinder-configure-backends | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/openstack-cinder.configure b/openstack-cinder.configure index 3def73ac..7e252bf7 100644 --- a/openstack-cinder.configure +++ b/openstack-cinder.configure @@ -46,9 +46,6 @@ sed -f "$ROOT"/etc/openstack-cinder-setup.sed -i \ ln -sf "/usr/lib/systemd/system/lvm2-lvmetad.service" \ "$ROOT/usr/lib/systemd/system/multi-user.target.wants/lvm2-lvmetad.service" -ln -sf "/usr/lib/systemd/system/iscsid.service" \ - "$ROOT/usr/lib/systemd/system/multi-user.target.wants/iscsid.service" - ln -sf "/etc/systemd/system/openstack-cinder-setup.service" \ "$ROOT/etc/systemd/system/multi-user.target.wants/openstack-cinder-setup.service" diff --git a/openstack/usr/share/openstack/openstack-cinder-configure-backends b/openstack/usr/share/openstack/openstack-cinder-configure-backends index 487c58c0..bd65076a 100644 --- a/openstack/usr/share/openstack/openstack-cinder-configure-backends +++ b/openstack/usr/share/openstack/openstack-cinder-configure-backends @@ -26,6 +26,9 @@ sed -i 's|# filter = \[ \"a\/\.\*\/\" \]|filter = \[ \"a\/sdb\/\", \"r\/\.\*\/\" mkdir -p "$DESTDIR"/etc/iscsi echo "InitiatorName=$(iscsi-iname)" > /etc/iscsi/initiatorname.iscsi +systemctl enable iscsid.service +systemctl start iscsid.service + # Run the target service required for attaching volumes depmod -a systemctl enable target.service |