From cfbf99c67b6d5799b613b0819fd006a2fd8ae243 Mon Sep 17 00:00:00 2001 From: Zeeshan Ali Date: Tue, 16 Apr 2019 18:42:56 +0200 Subject: [PATCH] libvirt: Drop volume paths Volume should be identified by their names and their paths should be left to their container pools. This change is needed to allow for custom storage locations. This is the needed update in Installer for the actual change in the libvirt actuator: https://github.com/openshift/cluster-api-provider-libvirt/pull/144 --- pkg/asset/machines/libvirt/machines.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/asset/machines/libvirt/machines.go b/pkg/asset/machines/libvirt/machines.go index f597e93ccd9..1e82ddee214 100644 --- a/pkg/asset/machines/libvirt/machines.go +++ b/pkg/asset/machines/libvirt/machines.go @@ -70,7 +70,7 @@ func provider(clusterID string, networkInterfaceAddress string, platform *libvir }, Volume: &libvirtprovider.Volume{ PoolName: "default", - BaseVolumeID: fmt.Sprintf("/var/lib/libvirt/images/%s-base", clusterID), + BaseVolumeID: fmt.Sprintf("%s-base", clusterID), }, NetworkInterfaceName: clusterID, NetworkInterfaceAddress: networkInterfaceAddress,