cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [2/9] git commit: agent: Exit when local.storage.uuid is not set
Date Wed, 08 Aug 2012 20:34:39 GMT
agent: Exit when local.storage.uuid is not set

We used to generate a UUID when this wasn't set, but since we aren't writing to
agent.properties anymore we have to make sure the UUID is persistent across restarts.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/a12a0081
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/a12a0081
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/a12a0081

Branch: refs/heads/master
Commit: a12a0081e939f6c3eddd87aafb6fc3096ef70acd
Parents: 57a1426
Author: Wido den Hollander <wido@widodh.nl>
Authored: Wed Aug 8 22:26:37 2012 +0200
Committer: Wido den Hollander <wido@widodh.nl>
Committed: Wed Aug 8 22:31:06 2012 +0200

----------------------------------------------------------------------
 .../kvm/resource/LibvirtComputingResource.java     |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/a12a0081/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
index 5e38d82..b5f0103 100755
--- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
+++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
@@ -617,8 +617,7 @@ public class LibvirtComputingResource extends ServerResourceBase implements
 
         _localStorageUUID = (String) params.get("local.storage.uuid");
         if (_localStorageUUID == null) {
-            _localStorageUUID = UUID.randomUUID().toString();
-            params.put("local.storage.uuid", _localStorageUUID);
+            throws new ConfigurationException("local.storage.uuid is not set! Please set
this to a valid UUID");
         }
 
         value = (String) params.get("scripts.timeout");


Mime
View raw message