Skip to content

Fix default log level for Dataverse#109

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-lightspeed:lcore-migrationfrom
lpiwowar:lpiwowar/default-logging-dataverse
Jun 2, 2026
Merged

Fix default log level for Dataverse#109
openshift-merge-bot[bot] merged 1 commit into
openstack-lightspeed:lcore-migrationfrom
lpiwowar:lpiwowar/default-logging-dataverse

Conversation

@lpiwowar
Copy link
Copy Markdown
Contributor

The Dataverse exporter crashes with invalid choice: '' when a CR omits the logging section, because the empty Go zero value is passed as --log-level "" [1].

Make the logging section default value an empty dict '{}' so OCP always populates it with default values. Also, add a kubebuilder default of "all=info" to ogxLogLevel and remove the runtime empty-string fallback from getOGXLogLevel since the CRD now guarantees a value.

[1] 9f5e97b

The Dataverse exporter crashes with "invalid choice: ''" when a CR
omits the logging section, because the empty Go zero value is passed
as --log-level "" [1].

Make the logging section default value an empty dict '{}' so OCP
always populates it with default values. Also, add a kubebuilder
default of "all=info" to ogxLogLevel and remove the runtime empty-string
fallback from getOGXLogLevel since the CRD now guarantees a value.

[1] 9f5e97b
@openshift-ci openshift-ci Bot requested review from Akrog and umago May 29, 2026 16:15
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4b7c09a9-9439-41c4-bcb4-b4d68fc18535

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 31, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lpiwowar, umago

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@umago
Copy link
Copy Markdown
Contributor

umago commented Jun 2, 2026

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Jun 2, 2026
@lpiwowar
Copy link
Copy Markdown
Contributor Author

lpiwowar commented Jun 2, 2026

/test openstack-lightspeed-kuttl-4-18

Looks like an unrelated network issue:

...
case.go:398: rpc error: code = Unavailable desc = error reading from server: read tcp 10.0.3.130:45098->10.0.0.228:2379: read: connection timed out
...

@openshift-merge-bot openshift-merge-bot Bot merged commit 34d4f23 into openstack-lightspeed:lcore-migration Jun 2, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants