summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorChuck Short <chuck.short@canonical.com>2012-07-27 10:25:51 -0500
committerChuck Short <chuck.short@canonical.com>2012-07-27 14:25:24 -0500
commit1ba3dfec786c60e53ceb3b682bcf927224102a0b (patch)
tree2f7bf68003c72c1574f3b4834e3a0b6e20d6651f /nova/openstack
parent0bd693056e04f97345e76ab06a9c4344d4a4cfaf (diff)
downloadnova-1ba3dfec786c60e53ceb3b682bcf927224102a0b.tar.gz
nova-1ba3dfec786c60e53ceb3b682bcf927224102a0b.tar.xz
nova-1ba3dfec786c60e53ceb3b682bcf927224102a0b.zip
Add persistent volumes for tgtd.
Currently if you restart the server running nova-volume or restart tgt, you will loose your iscsi targets that have been created. This is not good. In order for iscsi targets to be persistent across reboots or restarts, one has to have the target's configuration information in /etc/tgt/targets.conf or /etc/tgt/conf.d. So when tgtd is restarted then the iscsi targets will be there as expected. This patch will add a configuration file to $state_path/volumes when the volume is created. The configuration file is identified by the volume uuid. It creates a logicalunit when the volume is created as well. The iscsi target and configuration file will be removed once the volume has been removed as well. In order to use this, you have to include the following in your /etc/tgt/targets.conf include $state_path/volumes/* For upgrades, it will just re-create the volumes already in the volumes table. Fixes LP: #1011159 Change-Id: I38fc096ab881ccb52cb688ae46d9d36b0a7b3a45 Signed-off-by: Chuck Short <chuck.short@canonical.com>
Diffstat (limited to 'nova/openstack')
0 files changed, 0 insertions, 0 deletions