-
Notifications
You must be signed in to change notification settings - Fork 74
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
policy-server-asg-syncer stuck with time 1970-01-01T00:00:00Z #168
Comments
a bit closer: cd /var/vcap/jobs/policy-server-asg-syncer/config/certs/
curl --key cc_internal_client.key --cert cc_internal_client.crt --cacert cc_internal_ca.crt -H "Authorization: Bearer eyJh..." https://cloud-controller-ng.service.cf.internal:9023/internal/v4/asg_latest_update always returns:
|
👋 Hi @kinjelom, Thank you for this detailed report. We will investigate and get back to you. |
@ameowlia I think there is a mistake in the PK column name, it should probably be There is the wrong definition:
|
PR: #169 |
Hi @kinjelom, I was not able to reproduce this bug. Reproduction Environment Setup
Reproduction Steps
|
A few thoughts based on your reproduction... Time zero is expectedIt is expected for the initial ASGs take 2 minutes to propagate by defaultThere are two polling mechanisms. Polling between cloud controller and the policy-server. And polling between the policy server and the vxlan-policy agent. By default both of these polling cycles are set to 60s. This means it could take up to 2 minutes to propagate dynamic ASGs by default. Please see docs here for how increase the frequency of these polling cycles. ❓ Questions
|
@ameowlia What the table definition do you have
no
there is no additional logs, because syncer doesn't detect any changes
I tested it using ASG running for all spaces/orgs. |
It is working now, tested on:
|
Issue
policy-server-asg-syncer
isn't working as expected in a new cf-deploymentContext
I deployed the latest CF-deployment (manifest_version: v21.11.0) and I found that changes to security groups do not work, restart / restage does not help, only restarting the cf/api/policy-server-asg-syncer job helps.
Steps to Reproduce
policy-server-asg-syncer
log-level to debugvxlan-policy-agent
log-level to debugpolicy-server-asg-syncer
Expected result
The ASG should be propagated after 60 sec.
Current result
The ASG is propagated after restart
policy-server-asg-syncer
.policy-server-asg-syncer
logs on sync:Possible Fix
Suspicious code: https://github.com/cloudfoundry/cf-networking-release/blob/develop/src/code.cloudfoundry.org/policy-server/asg_syncer/asg_syncer.go#L76
where:
but in the log:
"cc-latest-update-time":"1970-01-01T00:00:00Z"
So maybe we should check:
and then:
The text was updated successfully, but these errors were encountered: