You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by al...@apache.org on 2012/08/09 03:41:08 UTC

[10/23] git commit: agent: Exit when local.storage.uuid is not set

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/vpc
Commit: a12a0081e939f6c3eddd87aafb6fc3096ef70acd
Parents: 57a1426
Author: Wido den Hollander <wi...@widodh.nl>
Authored: Wed Aug 8 22:26:37 2012 +0200
Committer: Wido den Hollander <wi...@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");