diff options
author | Patrick Darley <patrick.darley@codethink.co.uk> | 2015-03-19 18:11:49 +0000 |
---|---|---|
committer | Francisco Redondo Marchena <francisco.marchena@codethink.co.uk> | 2015-03-20 17:47:04 +0000 |
commit | 4c41298313afbd064b7adde19eca4776e5e4a8de (patch) | |
tree | 20a828997349e75d7d1d68998df48c07ee22a87c | |
parent | a6819eb4cd86a2cac2892258a9def81b04a15586 (diff) | |
download | definitions-4c41298313afbd064b7adde19eca4776e5e4a8de.tar.gz |
Add tartget.service required by cinder to run the `nova volume-attach`
via iscsi protocol
-rw-r--r-- | strata/openstack-services.morph | 1 | ||||
-rw-r--r-- | strata/openstack-services/rtslib-fb.morph | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/strata/openstack-services.morph b/strata/openstack-services.morph index 2b17c85b..90d5681c 100644 --- a/strata/openstack-services.morph +++ b/strata/openstack-services.morph @@ -341,6 +341,7 @@ chunks: repo: upstream:python-packages/rtslib-fb ref: a020fbadfe530bc0773b73501c2cee420c435f87 unpetrify-ref: v2.1.fb50 + morph: strata/openstack-services/rtslib-fb.morph build-depends: [] - name: netifaces repo: upstream:python-packages/netifaces diff --git a/strata/openstack-services/rtslib-fb.morph b/strata/openstack-services/rtslib-fb.morph new file mode 100644 index 00000000..6e21d2fc --- /dev/null +++ b/strata/openstack-services/rtslib-fb.morph @@ -0,0 +1,20 @@ +name: rtslib-fb +kind: chunk +post-install-commands: +- | + cat <<EOF > "$DESTDIR$PREFIX"/lib/systemd/system/target.service + [Unit] + Description=Restore LIO kernel target configuration + Requires=sys-kernel-config.mount + After=sys-kernel-config.mount network.target local-fs.target + + [Service] + Type=oneshot + RemainAfterExit=yes + ExecStart=/usr/bin/targetctl restore + ExecStop=/usr/bin/targetctl clear + SyslogIdentifier=target + + [Install] + WantedBy=multi-user.target + EOF |