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

Improve logs with Kyma UUID field #168

Open
VOID404 opened this issue May 9, 2024 · 0 comments
Open

Improve logs with Kyma UUID field #168

VOID404 opened this issue May 9, 2024 · 0 comments
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@VOID404
Copy link
Contributor

VOID404 commented May 9, 2024

Description

For

global account: 5ecd8ef4-ed0d-4b32-bdf9-77cb8d2d60e1
kyma: 0166d70d-d25d-48ad-88fe-0cdd8c426954
runtime: 6f373e60-2a1c-4bf6-878a-8f75a91ab4e4

Current Compass Manager logs look like this:

time="2024-05-09T07:32:38Z" level=info msg="Reconciliation triggered for Kyma Resource 0166d70d-d25d-48ad-88fe-0cdd8c426954"
time="2024-05-09T07:32:38Z" level=info msg="Attempting to create Compass Manager Mapping for newly provisioned Kyma runtime for Kyma resource 0166d70d-d25d-48ad-88fe-0cdd8c426954."
time="2024-05-09T07:32:43Z" level=info msg="Reconciliation triggered for Kyma Resource 0166d70d-d25d-48ad-88fe-0cdd8c426954"
time="2024-05-09T07:32:43Z" level=info msg="Updated Compass Mapping Status for 0166d70d-d25d-48ad-88fe-0cdd8c426954: registered=false, configured=false, state=Processing"
time="2024-05-09T07:32:48Z" level=info msg="Reconciliation triggered for Kyma Resource 0166d70d-d25d-48ad-88fe-0cdd8c426954"
time="2024-05-09T07:32:48Z" level=info msg="Attempting to register runtime in compass for Kyma resource 0166d70d-d25d-48ad-88fe-0cdd8c426954."
time="2024-05-09T07:32:48.542975934Z" level=info msg="Registering Runtime on Director service" component="director/directorclient.go:50:logrus.Infof"
time="2024-05-09T07:32:48.543766354Z" level=info msg="Refreshing token to access Director Service" component="director/directorclient.go:173:logrus.Infof"
time="2024-05-09T07:32:48.543832577Z" level=info msg="Getting authorisation token for credentials to access Director from endpoint: https://example.com/oauth2/token" component="oauth/client.go:43:oauth.(*oauthClient).getAuthorizationToken"
time="2024-05-09T07:32:48.845372349Z" level=info msg="Successfully unmarshal response oauth token for accessing Director" component="oauth/client.go:86:logrus.Infof"
time="2024-05-09T07:32:52Z" level=info msg="Runtime 6f373e60-2a1c-4bf6-878a-8f75a91ab4e4 registered in Compass"
time="2024-05-09T07:32:52.52199586Z" level=info msg="Successfully registered Runtime c-7fb6f38-ZnuH in Director for Global Account 5ecd8ef4-ed0d-4b32-bdf9-77cb8d2d60e1" component="director/directorclient.go:87:director.(*directorClient).CreateRuntime"
time="2024-05-09T07:32:57Z" level=info msg="Reconciliation triggered for Kyma Resource 0166d70d-d25d-48ad-88fe-0cdd8c426954"
time="2024-05-09T07:32:57Z" level=info msg="Updated Compass Mapping Status for 0166d70d-d25d-48ad-88fe-0cdd8c426954: registered=true, configured=false, state=Processing"
time="2024-05-09T07:33:02Z" level=info msg="Reconciliation triggered for Kyma Resource 0166d70d-d25d-48ad-88fe-0cdd8c426954"
time="2024-05-09T07:33:02Z" level=info msg="Attempting to configure Compass Runtime Agent for Runtime 6f373e60-2a1c-4bf6-878a-8f75a91ab4e4"
time="2024-05-09T07:33:02.722983042Z" level=info msg="Received OneTimeToken for Runtime 6f373e60-2a1c-4bf6-878a-8f75a91ab4e4 in Director for Global Account 5ecd8ef4-ed0d-4b32-bdf9-77cb8d2d60e1" component="director/directorclient.go:126:director.(*directorClient).GetConnectionToken"
time="2024-05-09T07:33:02Z" level=info msg="Compass Runtime Agent for Runtime 6f373e60-2a1c-4bf6-878a-8f75a91ab4e4 configured."
time="2024-05-09T07:33:02Z" level=info msg="Updated Compass Mapping Status for 0166d70d-d25d-48ad-88fe-0cdd8c426954: registered=true, configured=true, state=Ready"
time="2024-05-09T07:41:14Z" level=info msg="Reconciliation triggered for Kyma Resource 0166d70d-d25d-48ad-88fe-0cdd8c426954"
time="2024-05-09T07:41:14Z" level=info msg="Runtime deregistration in Compass for Kyma Resource 0166d70d-d25d-48ad-88fe-0cdd8c426954"
time="2024-05-09T07:41:18Z" level=info msg="Runtime 0166d70d-d25d-48ad-88fe-0cdd8c426954 deregistered from Compass"

Most of the lines contain Kyma UUID. It would be easier to debug specific Kyma's if all lines were tagged with the same value (eg Kyma UUID)

@VOID404 VOID404 added kind/feature Categorizes issue or PR as related to a new feature. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. labels May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant