Skip to content

Bug 2050466: Not allow "" string in registriesConf entry#14

Merged
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
QiWang19:scope-check
Feb 25, 2022
Merged

Bug 2050466: Not allow "" string in registriesConf entry#14
openshift-merge-robot merged 1 commit intoopenshift:masterfrom
QiWang19:scope-check

Conversation

@QiWang19
Copy link
Copy Markdown
Member

Fix: https://bugzilla.redhat.com/show_bug.cgi?id=2050466
Add validation to not allow empty string ("") if get it from Image and ICSP CRD.
Empty string regsitries configurations will fail the machine config daemon operations
of pulling images and the nodes will stopped in NotReady state when node rebooting after node drain.

2022-02-03T23:16:02.952318066Z I0203 23:16:02.952259    2590 run.go:18] Running: podman pull -q --authfile /var/lib/kubelet/config.json quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:6d4ff6bb5494c55c24f9a322b1a5faffb8a92ea0f572f1078db55f3f1abaa588
2022-02-03T23:16:03.033231339Z Error: error loading registries configuration "/etc/containers/registries.conf": invalid condition: mirror location is unset

Signed-off-by: Qi Wang qiwan@redhat.com

Fix: https://bugzilla.redhat.com/show_bug.cgi?id=2050466
Add validation to not allow empty string ("") if get it from Image and ICSP CRD.
Empty string regsitries configurations will fail the machine config daemon operations
of pulling images and the nodes will stopped in NotReady state when node rebooting after node drain.
```
2022-02-03T23:16:02.952318066Z I0203 23:16:02.952259    2590 run.go:18] Running: podman pull -q --authfile /var/lib/kubelet/config.json quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:6d4ff6bb5494c55c24f9a322b1a5faffb8a92ea0f572f1078db55f3f1abaa588
2022-02-03T23:16:03.033231339Z Error: error loading registries configuration "/etc/containers/registries.conf": invalid condition: mirror location is unset

```

Signed-off-by: Qi Wang <qiwan@redhat.com>
@QiWang19 QiWang19 changed the title Not allow "" string in registriesConf entry Bug 2050466: Not allow "" string in registriesConf entry Feb 25, 2022
@openshift-ci openshift-ci Bot requested review from bparees and mtrmac February 25, 2022 03:12
@openshift-ci openshift-ci Bot added the bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. label Feb 25, 2022
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 25, 2022

@QiWang19: This pull request references Bugzilla bug 2050466, which is valid. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

No GitHub users were found matching the public email listed for the QA contact in Bugzilla (schoudha@redhat.com), skipping review request.

Details

In response to this:

Bug 2050466: Not allow "" string in registriesConf entry

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.

@openshift-ci openshift-ci Bot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Feb 25, 2022
@QiWang19
Copy link
Copy Markdown
Member Author

@mtrmac PTAL. Add the validation in this repo to replace the openshift/machine-config-operator#2961

Copy link
Copy Markdown
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

/lgtm

Thanks!

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Feb 25, 2022
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mtrmac, QiWang19

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

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 25, 2022
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 25, 2022

@QiWang19: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 8dec0d8 into openshift:master Feb 25, 2022
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Feb 25, 2022

@QiWang19: All pull requests linked via external trackers have merged:

Bugzilla bug 2050466 has been moved to the MODIFIED state.

Details

In response to this:

Bug 2050466: Not allow "" string in registriesConf entry

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-urgent Referenced Bugzilla bug's severity is urgent for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants