-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix connection initialization flow for joined node #1078
Conversation
773a8ee
to
9f358c2
Compare
/test-all |
@@ -168,7 +168,7 @@ func waitForNodeStatus(d *schema.ResourceData, m interface{}, nodes []NsxCluster | |||
log.Printf("[DEBUG]: API probing for NSX is disabled") | |||
return nil | |||
} | |||
connector := getPolicyConnectorForInit(m, false) | |||
connector := getStandalonePolicyConnector(m, false) |
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.
I still see the same failure with the PR applied.
I've tried to change this line to
connector := getPolicyConnector(m)
Which worked - I think that as with getStandalonePolicyConnector
we skip license assignment, this is where we want to assign the license and therefore use the regular getPolicyConnector
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.
This connection just waits for node status, it should not require license, but we don't want it to initialize the version for the main NSX connection and thus skip license assignment for it..
9f358c2
to
4b57dd4
Compare
When a connector is initialized for the sake of joining the manager cluster, the endpoint is different from main provider endpoint, thus global connection init flows such as NSX Version retrieval and licenses should not be triggered by such connection. Signed-off-by: Anna Khmelnitsky <[email protected]>
4b57dd4
to
ad7230e
Compare
/test-all |
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!
When a connector is initialized for the sake of joining the manager cluster, the endpoint is different from main provider endpoint, thus global connection init flows such as NSX Version retrieval and licenses should not be triggered by such connection.