diff --git a/server/src/com/cloud/api/commands/CreateVolumeCmd.java b/server/src/com/cloud/api/commands/CreateVolumeCmd.java index 360c7e45087..75f76d238ec 100644 --- a/server/src/com/cloud/api/commands/CreateVolumeCmd.java +++ b/server/src/com/cloud/api/commands/CreateVolumeCmd.java @@ -117,6 +117,14 @@ public class CreateVolumeCmd extends BaseCmd { size = Long.valueOf(0); } + if(diskOfferingId != null){ + DiskOfferingVO dOffering = getManagementServer().findDiskOfferingById(diskOfferingId.longValue()); + + if(dOffering == null){ + throw new ServerApiException(BaseCmd.PARAM_ERROR,"Diskoffering id:"+diskOfferingId+" is invalid"); + } + } + boolean useSnapshot = false; if (snapshotId == null) { diff --git a/ui/new/jsp/instance.jsp b/ui/new/jsp/instance.jsp index d464b3860a6..e8944b43877 100644 --- a/ui/new/jsp/instance.jsp +++ b/ui/new/jsp/instance.jsp @@ -75,12 +75,10 @@
- <%=t.t("HA")%>:
+ <%=t.t("HA.Enabled")%>:
-
-
-
+
@@ -127,12 +125,10 @@
- <%=t.t("ISO")%>:
+ <%=t.t("ISO.attached")%>:
-
-
-
+
diff --git a/ui/new/jsp/iso.jsp b/ui/new/jsp/iso.jsp index 6d24907e893..b7d6ab38876 100644 --- a/ui/new/jsp/iso.jsp +++ b/ui/new/jsp/iso.jsp @@ -35,7 +35,7 @@ -
+
@@ -89,6 +91,8 @@
+ +
@@ -107,9 +111,7 @@ <%=t.t("Bootable")%>:
-
-
-
+
@@ -142,8 +144,12 @@
- - + + +
+ + +
diff --git a/ui/new/jsp/template.jsp b/ui/new/jsp/template.jsp index a6d4a200da3..c62233ec905 100644 --- a/ui/new/jsp/template.jsp +++ b/ui/new/jsp/template.jsp @@ -112,9 +112,7 @@ <%=t.t("Password.Enabled")%>:
-
-
-
+
@@ -144,9 +140,7 @@ <%=t.t("Featured")%>:
-
-
-
+