Only alphanumeric and underscore characters are allowed.
+
-
{{event.message || "NA"}}
+
{{event.name}}
{{event.timeStamp| date: 'dd MMM yyyy HH:mm:ss'}}
@@ -85,4 +85,4 @@
No Events Detected
-
\ No newline at end of file
+
diff --git a/src/modules/hosts/host-list/host-list.js b/src/modules/hosts/host-list/host-list.js
index 09600b5a..3a96a955 100644
--- a/src/modules/hosts/host-list/host-list.js
+++ b/src/modules/hosts/host-list/host-list.js
@@ -15,7 +15,7 @@
});
/*@ngInject*/
- function hostController($scope, $filter, $rootScope, $state, $interval, $uibModal, utils, config, nodeStore, clusterStore) {
+ function hostController($scope, $filter, $rootScope, $state, $interval, $uibModal, utils, config, peerStore, clusterStore) {
var vm = this,
clusterObj,
hostListTimer;
@@ -139,7 +139,7 @@
itemField: "ipAddress"
}];
- nodeStore.getNodeList(vm.expandCluster.clusterId)
+ peerStore.getNodeList(vm.expandCluster.clusterId)
.then(function(list) {
vm.expandCluster.hostList = $filter("filter")(list, { managed: "No" });
vm.expandCluster.filteredHostList = vm.expandCluster.hostList;
@@ -175,7 +175,7 @@
.then(function(data) {
$interval.cancel(hostListTimer);
vm.cluster = data;
- return nodeStore.getNodeList(vm.clusterId, vm.cluster.state);
+ return peerStore.getNodeList(vm.clusterId, vm.cluster.state);
}).catch(function(e) {
vm.cluster = {};
})
@@ -223,9 +223,9 @@
cls = "pficon pficon-in-progress";
} else if (host.managed === "No") {
cls = "fa ffont fa-question";
- } else if (host.status === "DOWN") {
+ } else if (host.online === false) {
cls = "fa ffont fa-arrow-circle-o-down";
- } else if (host.status === "UP") {
+ } else if (host.online === true) {
cls = "pficon pficon-ok";
}
diff --git a/src/modules/volumes/volume-list/volume-list.html b/src/modules/volumes/volume-list/volume-list.html
index 6b9a1226..934093a3 100644
--- a/src/modules/volumes/volume-list/volume-list.html
+++ b/src/modules/volumes/volume-list/volume-list.html
@@ -46,7 +46,7 @@
No Volumes Detected
-
+
@@ -57,8 +57,8 @@
No Volumes Detected
{{volume.brickCount}}
-
Running
-
{{volume.status === 'Stopped'? "No": "Yes"}}
+
Status
+
{{volume.state}}
Rebalance
@@ -76,6 +76,8 @@
No Volumes Detected
+
+
@@ -85,4 +87,4 @@
No Volumes Detected
-
\ No newline at end of file
+
diff --git a/src/modules/volumes/volume-list/volume-list.js b/src/modules/volumes/volume-list/volume-list.js
index 8e8a94d8..cc52587b 100644
--- a/src/modules/volumes/volume-list/volume-list.js
+++ b/src/modules/volumes/volume-list/volume-list.js
@@ -29,6 +29,8 @@
vm.getRebalStatus = volumeStore.getRebalStatus;
vm.redirectToGrafana = redirectToGrafana;
+ vm.startVolume = startVolume;
+ vm.stopVolume = stopVolume;
vm.goToVolumeDetail = goToVolumeDetail;
vm.addTooltip = addTooltip;
vm.toggleProfiling = toggleProfiling;
@@ -118,21 +120,20 @@
}
function getVolumeIcon(state) {
-
var cls;
cls = "fa ffont fa-question";
- if (state.indexOf("up") !== -1) {
+ if (state.indexOf("Started") !== -1) {
cls = "pficon pficon-ok";
- } else if (state.indexOf("down") !== -1) {
+ } else if (state.indexOf("Stopped") !== -1) {
cls = "fa ffont fa-arrow-circle-o-down";
- } else if (state.indexOf("partial") !== -1) {
- cls = "pficon pficon-degraded icon-red";
- } else if (state.indexOf("degraded") !== -1) {
- cls = "pficon pficon-degraded icon-orange";
- } else if (state.indexOf("unknown") !== -1) {
- cls = "fa ffont fa-question";
- }
+ } else if (state.indexOf("Created") !== -1) {
+ cls = "pficon pficon-pending icon-green";
+ } //else if (state.indexOf("degraded") !== -1) {
+ //cls = "pficon pficon-degraded icon-orange";
+ //} else if (state.indexOf("unknown") !== -1) {
+ // cls = "fa ffont fa-question";
+ //}
return cls;
}
@@ -178,6 +179,16 @@
});
}
+ function startVolume(volume, $event) {
+ volumeStore.startVolume(volume, vm.clusterId).then(() => init());
+ $event.stopPropagation();
+ }
+
+ function stopVolume(volume, $event) {
+ volumeStore.stopVolume(volume, vm.clusterId).then(() => init());
+ $event.stopPropagation();
+ }
+
function goToVolumeDetail(volume) {
if (vm.clusterId) {
$state.go("volume-detail", { clusterId: vm.clusterId, volumeId: volume.volumeId });
@@ -275,4 +286,4 @@
}
-})();
\ No newline at end of file
+})();