openvstorage / framework

The Framework is a set of components and tools which brings the user an interface (GUI / API) to setup, extend and manage an Open vStorage platform.
Other
27 stars 23 forks source link

Catch/improve "The node to be removed cannot be identical to the node on which the removal is initiated" #1202

Closed kinvaris closed 7 years ago

kinvaris commented 7 years ago

We performed a remove node on the node that will be removed.

We got this error message:

root@ovs-node01-1604:~# ovs remove node 10.100.199.181
+++++++++++++++++++++
+++  Remove node  +++
+++++++++++++++++++++
WARNING: Some of these steps may take a very long time, please check the logs for more information

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "ovs/lib/setup.py", line 627, in remove_node
    raise RuntimeError('The node to be removed cannot be identical to the node on which the removal is initiated')
RuntimeError: The node to be removed cannot be identical to the node on which the removal is initiated
wimpers commented 7 years ago

@kinvaris what would you expect as behaviour?

khenderick commented 7 years ago

I highly suspect that @kinvaris expects a slightly nicer message to appear; meaning catching the error and printing it without stack trace. I agree with that.

khenderick commented 7 years ago

Fixed by #1213, packaged in openvstorage-2.7.6-rev.4357.22393a7

JeffreyDevloo commented 7 years ago

Steps

Output

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                                                                       +++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Test result

No error message was displayed. Test passed.

Packages