Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

structured logging2 #488

Conversation

pinikomarov
Copy link
Contributor

@pinikomarov pinikomarov commented Oct 24, 2023

This automatically adds additional fields like reconcile_id etc.. from the controller context.
and standardize the logging implementation

example logging after patch:

2023-10-24T17:30:11+03:00       INFO    Controllers.OpenStackDataPlaneNodeSet   Reconciling DNSData     {"controller": "openstackdatapla
nenodeset", "controllerGroup": "dataplane.openstack.org", "controllerKind": "OpenStackDataPlaneNodeSet", "OpenStackDataPlaneNodeSet": {"
name":"openstack-edpm","namespace":"openstack"}, "namespace": "openstack", "name": "openstack-edpm", "reconcileID": "28cdfd8a-e595-415b-b20b-89b6da5f16e0", "ObjectType": "*v1beta1.OpenStackDataPlaneNodeSet", "ObjectNamespace": "openstack", "ObjectName": "openstack-edpm"}

*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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 24, 2023

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@pinikomarov pinikomarov marked this pull request as ready for review October 24, 2023 14:31
@openshift-ci openshift-ci bot requested review from abays and olliewalsh October 24, 2023 14:31
@softwarefactory-project-zuul
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/c23489d601fd4e428c03961f23ebb336

openstack-k8s-operators-content-provider FAILURE in 5m 21s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

@bshephar
Copy link
Contributor

/ok-to-test

@jpodivin
Copy link
Contributor

recheck

TASK [ci_setup : Gather version of openshift client if it exists _raw_params=oc version -o yaml] ***
Tuesday 24 October 2023  10:35:53 -0400 (0:00:00.753)       0:00:15.602 ******* 
fatal: [localhost]: FAILED! => {"changed": false, "cmd": "oc version -o yaml", "msg": "[Errno 2] No such file or directory: b'oc'", "rc": 2, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/dataplane-operator for 488,de36266b097d0090c813b48fd467e7c41612e23f

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/dataplane-operator for 488,b56f95432da03117d984b801c6c986aa2d8d9c24

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/257d4f263ec1408680dbd523d63b30e3

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 24m 01s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 04m 54s
cifmw-crc-podified-edpm-baremetal FAILURE in 1h 07m 20s

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/dataplane-operator for 488,c4a539170a22725a569d21be9266a93f27263191

@slagle slagle dismissed their stale review December 13, 2023 12:39

b/c of the commit message

@openshift-ci openshift-ci bot removed the approved label Dec 13, 2023
Copy link
Collaborator

@slagle slagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the commit message? It's not descriptive of the change. What you have in the PR description would also work as the commit message.

@openshift-ci openshift-ci bot removed the lgtm label Dec 13, 2023
@pinikomarov
Copy link
Contributor Author

Can you fix the commit message? It's not descriptive of the change. What you have in the PR description would also work as the commit message.

Sure , thanks , updated the commit message

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/0aef5a4746a94c53af4a16d330874fbc

openstack-k8s-operators-content-provider FAILURE in 7m 51s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

Copy link
Collaborator

@slagle slagle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+2

@pinikomarov
Copy link
Contributor Author

recheck

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/d03830988f634634a0a984fa618742dd

openstack-k8s-operators-content-provider FAILURE in 7m 56s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/ee44e550b69b48e59b3072b285ec5c63

openstack-k8s-operators-content-provider FAILURE in 7m 12s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

@slagle slagle force-pushed the structured_logging2 branch from 58ebbb7 to 61642e4 Compare January 30, 2024 16:22
@openshift-ci openshift-ci bot removed the lgtm label Jan 30, 2024
@slagle
Copy link
Collaborator

slagle commented Jan 30, 2024

@pinikomarov I pushed to your fork in order to resolve the conflicts. Let's see if it passes CI now, than we can move forward with merging it.

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/eb7251379c6f49beaeded8ff6d32d7da

openstack-k8s-operators-content-provider FAILURE in 7m 43s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

@slagle slagle force-pushed the structured_logging2 branch from 61642e4 to b97a04d Compare February 13, 2024 16:03
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/47975750dc2d4e47ba5df590768bb13e

openstack-k8s-operators-content-provider FAILURE in 7m 14s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

This automatically adds additional fields like reconcile_id etc.. from the controller context.
and standardize the logging implementation

example logging after patch:

```
2023-10-24T17:30:11+03:00       INFO    Controllers.OpenStackDataPlaneNodeSet   Reconciling DNSData     {"controller": "openstackdatapla
nenodeset", "controllerGroup": "dataplane.openstack.org", "controllerKind": "OpenStackDataPlaneNodeSet", "OpenStackDataPlaneNodeSet": {"
name":"openstack-edpm","namespace":"openstack"}, "namespace": "openstack", "name": "openstack-edpm", "reconcileID": "28cdfd8a-e595-415b-b20b-89b6da5f16e0", "ObjectType": "*v1beta1.OpenStackDataPlaneNodeSet", "ObjectNamespace": "openstack", "ObjectName": "openstack-edpm"}
```

*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.
@slagle slagle force-pushed the structured_logging2 branch from b97a04d to 5a07a2f Compare February 13, 2024 16:16
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/e633c5c0095a4c32ba936ed8fa8f6bf6

✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 26m 17s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 04m 01s
cifmw-crc-podified-edpm-baremetal RETRY_LIMIT in 9m 50s

Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://review.rdoproject.org/zuul/buildset/ff0e1709c4d641efa074023ba8466a26

openstack-k8s-operators-content-provider FAILURE in 7m 56s
⚠️ podified-multinode-edpm-deployment-crc SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider
⚠️ cifmw-crc-podified-edpm-baremetal SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider

@slagle slagle force-pushed the structured_logging2 branch from 2ff7097 to 47f0631 Compare February 13, 2024 19:39
@openshift-ci openshift-ci bot added the lgtm label Feb 13, 2024
Copy link
Contributor

openshift-ci bot commented Feb 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pinikomarov, slagle

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 66f0027 into openstack-k8s-operators:main Feb 13, 2024
8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants