Jiří Moskovčák has uploaded a new change for review. Change subject: use blank storage pool when connecting the volumes ......................................................................
use blank storage pool when connecting the volumes We're not connected to a pool. To prepare an image when you're not connected to a pool (general HE use case) you should specify a blank pool uuid (00000000-0000-0000-0000-000000000000) Change-Id: I3d7683b8dd10097344cb1d5fd036e549fc25ef8c Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1129261 Signed-off-by: Jiri Moskovcak <jmosk...@redhat.com> --- M ovirt_hosted_engine_ha/lib/storage_backends.py 1 file changed, 5 insertions(+), 3 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha refs/changes/89/32689/1 diff --git a/ovirt_hosted_engine_ha/lib/storage_backends.py b/ovirt_hosted_engine_ha/lib/storage_backends.py index 29970a8..cf88d67 100644 --- a/ovirt_hosted_engine_ha/lib/storage_backends.py +++ b/ovirt_hosted_engine_ha/lib/storage_backends.py @@ -306,7 +306,7 @@ response = connection.getVolumePath( self._sd_uuid, - self._sp_uuid, + '00000000-0000-0000-0000-000000000000', image_uuid, volume_uuid ) @@ -358,7 +358,9 @@ for service, volume in self._services.iteritems(): # Activate volumes and set the volume.path to proper path response = connection.prepareImage( - self._sp_uuid, + # we're not connected to any storage pool, so we need to use + # blank pool uuid suggested by fsimonce rhbz#1130038 + '00000000-0000-0000-0000-000000000000', self._sd_uuid, volume.image_uuid, volume.volume_uuid @@ -369,7 +371,7 @@ response = connection.getVolumePath( self._sd_uuid, - self._sp_uuid, + '00000000-0000-0000-0000-000000000000', volume.image_uuid, volume.volume_uuid ) -- To view, visit http://gerrit.ovirt.org/32689 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3d7683b8dd10097344cb1d5fd036e549fc25ef8c Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-ha Gerrit-Branch: ovirt-hosted-engine-ha-1.2 Gerrit-Owner: Jiří Moskovčák <jmosk...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches