Closed deepshirsath closed 7 years ago
Decision by BAM as should be a small one: Add yes/no question. -y for automation.
Fixed by #1042, packaged in openvstorage-2.7.4-rev.4153.4979e95
Test cases:
root@ovs-node-3:~# ovs remove node 10.100.199.151
+++++++++++++++++++++
+++ Remove node +++
+++++++++++++++++++++
WARNING: Some of these steps may take a very long time, please check the logs for more information
Creating SSH connections to remaining master nodes
Node with IP 10.100.199.153 successfully connected to
Node with IP 10.100.199.151 successfully connected to
Node with IP 10.100.199.152 successfully connected to
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ Still vDisks attached to Storage Router ovs-node-1 +++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
root@ovs-node-3:~# ovs remove node 10.100.199.153
+++++++++++++++++++++
+++ Remove node +++
+++++++++++++++++++++
WARNING: Some of these steps may take a very long time, please check the logs for more information
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++ The node to be removed cannot be identical to the node on which the removal is +++
+++ initiated +++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
root@ovs-node-3:~# ovs remove node 10.100.199.152
+++++++++++++++++++++
+++ Remove node +++
+++++++++++++++++++++
WARNING: Some of these steps may take a very long time, please check the logs for more information
Creating SSH connections to remaining master nodes
Node with IP 10.100.199.153 successfully connected to
Node with IP 10.100.199.151 successfully connected to
Node with IP 10.100.199.152 successfully connected to
Are you sure you want to remove node ovs-node-2? (y/[n]):
Test case 'Remove node with vdisks attached (expect confirmation first, then error)' could use the enhancement by first asking confirmation and then throwing the error that it can't be removed (https://github.com/openvstorage/framework/issues/1237) Functionality wise, this test has passed.
Description:
Current workflow:
Current version: