-
Notifications
You must be signed in to change notification settings - Fork 50
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
switch to structured logging #576
switch to structured logging #576
Conversation
Hi @pinikomarov. Thanks for your PR. I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/13855129374f4722874b12e8456ce0f2 ✔️ nova-operator-content-provider SUCCESS in 1h 27m 52s |
6d67aab
to
3084649
Compare
/ok-to-test |
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.
Unfortunatly tests are failing with error:
panic: odd number of arguments passed as key-value pairs for logging [recovered] panic: odd number of arguments passed as key-value pairs for logging
. Looks like some log texts need to be reformated by fmt.Sprintf
thanks @mrkisaolamb , I have uploaded a fix in all locations I saw a syntax mishap , |
/retest |
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/c40496857e6a480d855dc90cad749a94 ✔️ nova-operator-content-provider SUCCESS in 2h 12m 30s |
hey @pinikomarov I run locally |
lgtm |
fix logging l as log controllers update logging update logging
63e0d57
to
8fd541d
Compare
Build failed (check pipeline). Post https://review.rdoproject.org/zuul/buildset/28645cfcb3a44956885e212f192b52a9 ✔️ nova-operator-content-provider SUCCESS in 2h 59m 03s |
recheck |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gibizer, mrkisaolamb, pinikomarov 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 |
This automatically adds additional fields like reconcile_id etc.. from the controller context.
before :
2023-05-18T01:53:14+03:00 INFO controllers.KeystoneAPI Reconciled Service init successfully
after:
2023-10-18T02:27:44.637+0300 INFO Controllers.NovaNoVNCProxy Successfully reconciled {"control
ler": "novanovncproxy", "controllerGroup": "nova.openstack.org", "controllerKind": "NovaNoVNCProxy", "Nov
aNoVNCProxy": {"name":"nova-cell1-novncproxy","namespace":"openstack"}, "namespace": "openstack", "name":
"nova-cell1-novncproxy", "reconcileID": "93d8ab7c-76f0-45ed-9981-f925fef21ae7", "instance": {"apiVersion
": "nova.openstack.org/v1beta1", "kind": "NovaNoVNCProxy", "namespace": "openstack", "name": "nova-cell1-
novncproxy"}}
*by using per reconcile function respective logger objects, the intention is to lay the ground for parallel reconciliation in future and avoid race conditions as ctx objects are reconcile run specific.