From 94d8553201e50e3e9e25992bfe4735addae4ffda Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Sat, 28 Jan 2012 01:17:00 -0800 Subject: Add initiator to initialize_connection Some volumes need to know the name of the initiator that will be connecting to the iscsi volume. This adds a call down to the hypervisor driver to get the ip and the initiator name for the vm before calling initialize connection. This connection is passed down to the volume driver so that it can be used to authenticate when the hypervisor tries to connect to the volume. * Adds initiator initialize_connection * Makes a call to driver to get initiator name and ip address * Gets initiator from openiscsi for libvirt * Gets initiator from config for xenapi * Add tests for the driver calls * Fixes bug 924461 Change-Id: I5b6a2dd84560c7f7b447571e0abf0993e5512ca0 --- nova/rootwrap/compute.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nova/rootwrap') diff --git a/nova/rootwrap/compute.py b/nova/rootwrap/compute.py index 8b7736cbd..65e6dfebb 100755 --- a/nova/rootwrap/compute.py +++ b/nova/rootwrap/compute.py @@ -168,4 +168,7 @@ filterlist = [ # nova/virt/libvirt/utils.py: 'mkswap' # nova/virt/xenapi/vm_utils.py: 'mkswap' filters.CommandFilter("/sbin/mkswap", "root"), + + # nova/virt/libvirt/connection.py: + filters.ReadFileFilter("/etc/iscsi/initiatorname.iscsi"), ] -- cgit