From b5aaa65e48d85e2d5018af1df5859489d17e4a54 Mon Sep 17 00:00:00 2001 From: micafer Date: Mon, 2 Sep 2019 08:21:09 +0200 Subject: [PATCH] Fix: #895 --- IM/connectors/OCCI.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IM/connectors/OCCI.py b/IM/connectors/OCCI.py index b13149a1d..75f8bc572 100644 --- a/IM/connectors/OCCI.py +++ b/IM/connectors/OCCI.py @@ -1089,7 +1089,8 @@ def add_new_disks(self, vm, radl, auth_data, auth_header): disk_device = "vd" + disk_device[-1] system.setValue("disk." + str(cont) + ".device", disk_device) self.log_info("Creating a %d GB volume for the disk %d" % (int(disk_size), cont)) - success, volume_id = self.create_volume(int(disk_size), "im-disk-%d" % cont, auth_data, auth_header) + storage_name = "im-disk-%s" % str(uuid.uuid1()) + success, volume_id = self.create_volume(int(disk_size), storage_name, auth_data, auth_header) if success: self.log_info("Volume id %s successfuly created." % volume_id)