-
Notifications
You must be signed in to change notification settings - Fork 9
Added delete node function. Fixed #97 and #98 #96
Conversation
Address the Issue #64 |
Hi @cj-chung Thanks |
@@ -22,5 +22,6 @@ const SUBNET string = "subnet:" | |||
const Router string = "router:" | |||
const SECURITYGROUP string = "securityGroup:" | |||
const NETCONFIG string = "netconfig:" | |||
const NODEGROUP string = "nodeGroup:" | |||
|
|||
const ALCORURL string = "10.213.43.77" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yanmo96 Should we get ALCORURL
from service-config protobuf?
@yanmo96 Please create a merak-network service container on .77 with your latest PR. We need to verify the change. |
Will improve the code once node bulk deletion ability is added to Alcor futurewei-cloud/alcor#755 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR add the delete node function from #64
Address the the issue #97 , which is caused by a wait group in the wrong place. Which stoped process to write into channel, if it cannot write into channel, the Wait will never finish. Then the entire program will hang.
Address the issue #98 , fixed by empty the channel after every time I retrieve information from it.