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

[4.16] Move ironic user and group #581

Conversation

snehring
Copy link

It looks like the ironic uid / perm manipulation got included in the cachito specific section by mistake.

Signed-off-by: Shane Nehring <[email protected]>
Copy link

openshift-ci bot commented Sep 17, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: snehring
Once this PR has been reviewed and has the lgtm label, please assign iurygregory for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 17, 2024
Copy link

openshift-ci bot commented Sep 17, 2024

Hi @snehring. Thanks for your PR.

I'm waiting for a openshift 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-sigs/prow repository.

@snehring snehring changed the title Move ironic user and group [4.16] Move ironic user and group Sep 18, 2024
@snehring
Copy link
Author

Was able to test this on one of the clusters I'd noticed the problem on and it seems to fix the issue.

@elfosardo
Copy link

/hold
what's the reason behind this change?

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 26, 2024
@snehring
Copy link
Author

snehring commented Sep 26, 2024

/hold what's the reason behind this change?

okd-project/okd#2030 on baremetal okd 4.16 clusters the metal3 pod never comes up fully because the ironic-inspector container crashes due to the fact that the uid and gid of ironic in the container differs from the uid and gid in the container spec. This is because the customization of the uid and gid is currently only happening in ocp builds.

@snehring
Copy link
Author

This is only relevant for 4.16, ironic uid customizations were removed entirely in openshift/cluster-baremetal-operator#430

@elfosardo
Copy link

@snehring the assignment of UID and GID for OKD is done by the RPMs, OKD builds do not use cachito logic
I think you'll have to check the RPMs specs and see what's happening there

@snehring
Copy link
Author

@elfosardo yes that is the behavior without this. Unfortunately they differ from the uids specified by the ironic-inspector container spec leading to a permissions issue in the container. Either the uids need to be changed here in the image or the uids need to change in the container spec in the baremetal operator.

@elfosardo
Copy link

@snehring if OKD requires a specific configuration, I suggest to apply it just for that, for example look at what I've done for OCP using the main-packages list file
even if the issue is present only in 4.16, the change will have to start from master and backported, and all tracked in a bug in the internal RED HAT Jira

@snehring
Copy link
Author

@elfosardo I believe this is an extension of https://issues.redhat.com/browse/OCPBUGS-32304 introduced in #500. So it's not just relevant to OKD, it was just only fixed in OCP as a consequence of the fix only being placed in an OCP specific section.

@elfosardo
Copy link

elfosardo commented Oct 1, 2024

@snehring again that's because only OCP builds use source code and not RPMs for the ironic projects
I think you have two choices, either you backport the BMO change to remove the specific IDs to 4.16, and let the RPM set that, or you add an OKD specific section to prepare-image, or even better a separate mechanism in the OKD dockerfile

@snehring
Copy link
Author

snehring commented Oct 1, 2024

@elfosardo I agree backporting the BMO change would be the best fix, this just seemed more accessible. I suppose I'll look into that.

@snehring snehring closed this Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants