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 VC Config init in Syncer #967
Fix VC Config init in Syncer #967
Conversation
|
|
|
Started WCP block pre-checkin pipeline... Build Number: 47 |
|
|
Started WCP block pre-checkin pipeline... Build Number: 52 |
|
Started WCP block pre-checkin pipeline... Build Number: 53 |
|
cc: @divyenpatel @RaunakShah @BaluDontu Can you help with reviews & approvals |
/ok-to-test |
/approve |
1 similar comment
/approve |
Shouldn't the VC password be changed first and then we get notified, so we always get the latest password. Are there any server-side fixes we will be making to ensure we get notified after the password is successfully applied on the vCenter? |
While debugging the incorrect login attempts from CSI syncer, I observed that syncer VC config was actually never initialized correctly, as a result of which ReloadConfig() gets invoked even when password is not changed. i.e., the below logic was getting executed successfully
When I printed the
I have fixed the InitMetadataSyncer to address this. But I think CSI should not aggressively retry in 5 seconds, now that we have |
Started WCP block pre-checkin pipeline... Build Number: 54 |
|
Started Vanilla block pre-checkin pipeline... Build Number: 62 |
Started Vanilla block pre-checkin pipeline... Build Number: 64 |
Started Vanilla block pre-checkin pipeline... Build Number: 65 |
Started Vanilla block pre-checkin pipeline... Build Number: 67 |
|
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chethanv28, divyenpatel, gohilankit, RaunakShah The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
What this PR does / why we need it:
While debugging the incorrect login attempts from CSI syncer, I observed that syncer VC config was actually never initialized correctly, as a result of which ReloadConfig() gets invoked even when password is not changed. i.e., the below logic was getting executed successfully
When I printed the
metadataSyncer.configInfo.Cfg.Global.User
&metadataSyncer.configInfo.Cfg.Global.Password
was actually empty. See here:I have fixed the InitMetadataSyncer to address the issue
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged): fixes #Testing done:
Before this change:
Account remains locked for next 5 minutes:
After this change:
Special notes for your reviewer:
Release note: