Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Added delete node function. Fixed #97 and #98 #96

Merged
merged 4 commits into from
Sep 12, 2022

Conversation

yanmo96
Copy link
Contributor

@yanmo96 yanmo96 commented Sep 1, 2022

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.

@yanmo96 yanmo96 requested a review from cj-chung as a code owner September 1, 2022 10:00
@yanmo96
Copy link
Contributor Author

yanmo96 commented Sep 1, 2022

Address the Issue #64

@yanmo96 yanmo96 self-assigned this Sep 2, 2022
@yanmo96 yanmo96 changed the title Added delete node function. But delete still hang, don't merge yet Added delete node function. Fixed #97 and #98 Sep 2, 2022
@yanmo96
Copy link
Contributor Author

yanmo96 commented Sep 2, 2022

Hi @cj-chung
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.

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"
Copy link
Contributor

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?

@cj-chung
Copy link
Contributor

cj-chung commented Sep 2, 2022

@yanmo96 Please create a merak-network service container on .77 with your latest PR. We need to verify the change.

@cj-chung cj-chung added the bug Something isn't working label Sep 2, 2022
@yanmo96
Copy link
Contributor Author

yanmo96 commented Sep 12, 2022

Will improve the code once node bulk deletion ability is added to Alcor futurewei-cloud/alcor#755

Copy link
Contributor

@cj-chung cj-chung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cj-chung cj-chung merged commit 70f9615 into futurewei-cloud:main Sep 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
2 participants