diff --git a/v2/src/app/appDev.js b/v2/src/app/appDev.js index f1f0bdc..fc01848 100644 --- a/v2/src/app/appDev.js +++ b/v2/src/app/appDev.js @@ -23,37 +23,18 @@ compassAppDev.run(function($httpBackend, settings, $http) { "display": "OpenStack", "os_installer": "cobbler", "package_installer": "chef", - "flavors": [{ - "display_name": "allinone", - "id": 1, - "name": "allinone", - "roles": [{ - "display_name": "Compute", - "name": "os-compute-worker" - }, { - "display_name": "Controller", - "name": "os-controller" - }, { - "display_name": "Network", - "name": "os-network" - }, { - "display_name": "Storage", - "name": "os-block-storage-worker" - }] + "roles": [{ + "display_name": "Compute", + "name": "os-compute-worker" }, { - "display_name": "multiroles", - "id": 2, - "name": "multiroles", - "roles": [{ - "display_name": "Compute", - "name": "os-compute-worker" - }, { - "display_name": "Controller", - "name": "os-controller" - }, { - "display_name": "Network", - "name": "os-network" - }] + "display_name": "Controller", + "name": "os-controller" + }, { + "display_name": "Network", + "name": "os-network" + }, { + "display_name": "Storage", + "name": "os-block-storage-worker" }], "supported_oses": [{ "name": "CentOs", @@ -68,14 +49,20 @@ compassAppDev.run(function($httpBackend, settings, $http) { "display": "Hadoop", "os_installer": "cobbler", "package_installer": "chef", + "roles": [{ + "display_name": "Compute", + "name": "os-compute-worker" + }, { + "display_name": "Controller", + "name": "os-controller" + }, { + "display_name": "Network", + "name": "os-network" + }], "supported_oses": [{ "name": "CentOs", "os_id": 1 - }, { - "name": "Ubuntu", - "os_id": 2 - }], - "flavors": [] + }] }]; return [200, adapters, {}]; }); @@ -88,37 +75,18 @@ compassAppDev.run(function($httpBackend, settings, $http) { "display": "OpenStack", "os_installer": "cobbler", "package_installer": "chef", - "flavors": [{ - "display_name": "allinone", - "id": 1, - "name": "allinone", - "roles": [{ - "display_name": "Compute", - "name": "os-compute-worker" - }, { - "display_name": "Controller", - "name": "os-controller" - }, { - "display_name": "Network", - "name": "os-network" - }, { - "display_name": "Storage", - "name": "os-block-storage-worker" - }] + "roles": [{ + "display_name": "Compute", + "name": "os-compute-worker" }, { - "display_name": "multiroles", - "id": 2, - "name": "multiroles", - "roles": [{ - "display_name": "Compute", - "name": "os-compute-worker" - }, { - "display_name": "Controller", - "name": "os-controller" - }, { - "display_name": "Network", - "name": "os-network" - }] + "display_name": "Controller", + "name": "os-controller" + }, { + "display_name": "Network", + "name": "os-network" + }, { + "display_name": "Storage", + "name": "os-block-storage-worker" }], "supported_oses": [{ "name": "CentOs", @@ -420,22 +388,6 @@ compassAppDev.run(function($httpBackend, settings, $http) { "adapter_id": 1, "os_id": 1, "editable": true, - "flavor": { - "id": 1, - "roles": [{ - "display_name": "Compute", - "name": "os-compute-worker" - }, { - "display_name": "Controller", - "name": "os-controller" - }, { - "display_name": "Network", - "name": "os-network" - }, { - "display_name": "Storage", - "name": "os-block-storage-worker" - }] - }, "create_by": "user@someemail.com", "create_at": "2014-3-25 12:00:00", "updated_at": "2014-3-26 13:00:00", @@ -447,7 +399,6 @@ compassAppDev.run(function($httpBackend, settings, $http) { return [201, mockResponse, {}]; }); - $httpBackend.whenGET(/\.*\/clusters\/[1-9][0-9]*\/state/).respond(function(method, url, data) { console.log(method, url, data); var states = ["UNINITIALIZED", "INITIALIZED", "INSTALLING", "SUCCESSFUL", "ERROR"]; @@ -575,23 +526,7 @@ compassAppDev.run(function($httpBackend, settings, $http) { "create_by": "user@someemail.com", "create_at": "2014-3-25 12:00:00", "updated_at": "2014-3-26 13:00:00", - "flavor": { - "id": 1, - "roles": [{ - "display_name": "Compute", - "name": "os-compute-worker" - }, { - "display_name": "Controller", - "name": "os-controller" - }, { - "display_name": "Network", - "name": "os-network" - }, { - "display_name": "Storage", - "name": "os-block-storage-worker" - }] - }, - "links": [{ + " links": [{ "href": "/clusters/" + id, "rel": "self" }, { diff --git a/v2/src/app/cluster/cluster-create.tpl.html b/v2/src/app/cluster/cluster-create.tpl.html index 3111f8e..d16a65c 100644 --- a/v2/src/app/cluster/cluster-create.tpl.html +++ b/v2/src/app/cluster/cluster-create.tpl.html @@ -31,7 +31,7 @@
Required
-
+
@@ -43,7 +43,7 @@
Required
-
+
@@ -54,18 +54,6 @@
Required
- -
- - -
- -
-
-
- - - - - - - - - - +
@@ -81,6 +67,18 @@ + + + + + + +