Skip to content
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

Enhance accesslogs with InstanceId for better debugging #293

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

thomas-kaltenbach
Copy link
Contributor

  • A short explanation of the proposed change:
    Log out the instanceId at accesslogs for debugging and correlation of different log entries. Similar to Enhance registry logs with appId, instanceId and domainSans #291

  • An explanation of the use cases your change solves
    We face currently some issues (x509: certificate is valid for <instance_guid>, not <instance_guid>) during landscape update. We would like to correlate exactly the access logs with some other logs i.e. gorouter error logs or runtime logs (BBS,REP,CC). This change enable us to see exactly what happens at instance. So, we can find all accesslogs, the starting/stopping/crashing containers and also the endpoint-(un)registration logs of the gorouter (with PR Enhance registry logs with appId, instanceId and domainSans #291) .
    This would help us a lot.

  • Instructions to functionally test the behavior change using operator interfaces (BOSH manifest, logs, curl, and metrics)
    Deploy the change and have a look at the logs.

  • Expected result after the change
    GET / HTTP/1.1" 302 0 0 "-" "-" "-" "10.1.1.65:8443" x_forwarded_for:"-" x_forwarded_proto:"https" vcap_request_id:"<vcap_id>" response_time:0.015406 gorouter_time:0.000088 app_id:"<app_id>" app_index:"1" instance_id:"<instance_id>" x_cf_routererror:"-" ...

  • Current result before the change
    GET / HTTP/1.1" 302 0 0 "-" "-" "-" "10.1.1.65:8443" x_forwarded_for:"-" x_forwarded_proto:"https" vcap_request_id:"<vcap_id>" response_time:0.015406 gorouter_time:0.000088 app_id:"<app_id>" app_index:"1" x_cf_routererror:"-" ...

  • Links to any other associated PRs
    Enhance registry logs with appId, instanceId and domainSans #291

  • I have viewed signed and have submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using scripts/run-unit-tests-in-docker from routing-release.

  • I have build an routing release and deployed it on our devlandscape

  • (Optional) I have run Routing Acceptance Tests and Routing Smoke Tests on bosh lite

  • (Optional) I have run CF Acceptance Tests on bosh lite

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.

@ameowlia
Copy link
Member

Thank you @thomas-kaltenbach !

@ameowlia ameowlia merged commit 759e9ee into cloudfoundry:main Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants