From 0bc6026d6b249faa576bd36396a65991321d5ea7 Mon Sep 17 00:00:00 2001 From: Edison Su Date: Mon, 1 Aug 2011 14:28:34 -0700 Subject: [PATCH] fix description of addcluster api, and a typo in one script --- api/src/com/cloud/api/commands/AddClusterCmd.java | 4 ++-- scripts/vm/hypervisor/kvm/rundomrpre.sh | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/api/src/com/cloud/api/commands/AddClusterCmd.java b/api/src/com/cloud/api/commands/AddClusterCmd.java index 07490e50c04..a5cac7c2654 100644 --- a/api/src/com/cloud/api/commands/AddClusterCmd.java +++ b/api/src/com/cloud/api/commands/AddClusterCmd.java @@ -58,10 +58,10 @@ public class AddClusterCmd extends BaseCmd { @Parameter(name=ApiConstants.ZONE_ID, type=CommandType.LONG, required=true, description="the Zone ID for the cluster") private Long zoneId; - @Parameter(name=ApiConstants.HYPERVISOR, type=CommandType.STRING, required=true, description="hypervisor type of the cluster") + @Parameter(name=ApiConstants.HYPERVISOR, type=CommandType.STRING, required=true, description="hypervisor type of the cluster: XenServer,KVM,VMware,Hyperv,BareMetal,Simulator") private String hypervisor; - @Parameter(name=ApiConstants.CLUSTER_TYPE, type=CommandType.STRING, required=true, description="hypervisor type of the cluster") + @Parameter(name=ApiConstants.CLUSTER_TYPE, type=CommandType.STRING, required=true, description="type of the cluster: CloudManaged, ExternalManaged") private String clusterType; @Parameter(name=ApiConstants.ALLOCATION_STATE, type=CommandType.STRING, description="Allocation state of this cluster for allocation of new resources") diff --git a/scripts/vm/hypervisor/kvm/rundomrpre.sh b/scripts/vm/hypervisor/kvm/rundomrpre.sh index c8a6d919ff4..29050a75100 100755 --- a/scripts/vm/hypervisor/kvm/rundomrpre.sh +++ b/scripts/vm/hypervisor/kvm/rundomrpre.sh @@ -23,7 +23,7 @@ # $Id: rundomrpre.sh 10427 2010-07-09 03:30:48Z edison $ $HeadURL: svn://svn.lab.vmops.com/repos/vmdev/java/scripts/vm/hypervisor/kvm/rundomrpre.sh $ set -x -cert="/root/.ssh/id_rsa.cloud" +pubKey="/root/.ssh/id_rsa.pub.cloud" mntpath() { local vmname=$1 if [ ! -d /mnt/$vmname ] @@ -87,9 +87,9 @@ patch_all() { local datadisk=$3 local path=$(mntpath $vmname) - if [ -f $cert ] + if [ -f $pubKey ] then - cp $cert $path/authorized_keys + cp $pubKey $path/authorized_keys fi echo $cmdline > $path/cmdline sed -i "s/,/\ /g" $path/cmdline