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

COS-2696: common.yaml: enable cliwrap #1442

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Feb 16, 2024

As part of the bootable containers effort, we want to put emphasis on a consistent experience when deriving images. A big part of that is being able to type dnf install -y ... in one's Containerfile.

Let's turn on cliwrap for this. This matches the change in FCOS.[1]

As part of the bootable containers effort, we want to put emphasis on a
consistent experience when deriving images. A big part of that is being
able to type `dnf install -y ...` in one's `Containerfile`.

Let's turn on cliwrap for this. This matches the change in FCOS.[[1]]

[1]: coreos/fedora-coreos-config#2858
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 16, 2024
@cgwalters
Copy link
Member

One thing though is that rhcos already includes python. So I think there's much less motivation for not just shipping dnf.

@jlebon
Copy link
Member Author

jlebon commented Feb 16, 2024

One thing though is that rhcos already includes python. So I think there's much less motivation for not just shipping dnf.

Not strongly against, but (1) it's nice to match FCOS, and (2) dnf client-side currently does not work and the UX inconsistency between container flow vs client-side is not great. (Yes, people are not supposed to muck around directly on the host, but they still do it today and will continue to.)

@jmarrero
Copy link
Member

/retest-required

Copy link
Member

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm

@jmarrero
Copy link
Member

/approve

@jmarrero
Copy link
Member

/lgtm

Copy link
Contributor

openshift-ci bot commented Feb 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jlebon, jmarrero

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-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 17, 2024
@dcantrell
Copy link

One thing though is that rhcos already includes python. So I think there's much less motivation for not just shipping dnf.

Not strongly against, but (1) it's nice to match FCOS, and (2) dnf client-side currently does not work and the UX inconsistency between container flow vs client-side is not great. (Yes, people are not supposed to muck around directly on the host, but they still do it today and will continue to.)

Can you sync up with re: the UX inconsistency between container flow vs. client-side. This is something I really really want to clean up in dnf, but it's hard to nail down the specifics that people run in to. I think it varies across teams, which is fine, I just need to collect the details.

@jlebon
Copy link
Member Author

jlebon commented Feb 21, 2024

Can you sync up with re: the UX inconsistency between container flow vs. client-side. This is something I really really want to clean up in dnf, but it's hard to nail down the specifics that people run in to. I think it varies across teams, which is fine, I just need to collect the details.

Happy to chat some more, but essentially what I mean there is that with the real dnf, dnf install will work in the container flow, but not client-side. (I know with the recent transient root work, it does also work there though we're far from being able to enable that in OCP and it also has different semantics than rpm-ostree install). With cliwrap, dnf install will work both in the container flow and client-side.

I guess one approach there is add some magic in the ostree-rs-ext bits so that we could have real dnf in the container flow, but cliwrapped dnf client-side? That dilutes the message though that the container image is exactly what gets deployed.

So overall, I think this comes back to the dnf image effort. Short-term, I think if dnf implemented cliwrapping itself (i.e. transparently forwarded commands to rpm-ostree on rpm-ostree-managed hosts -- possibly only those without transient root, but I think there are UX questions there to flesh out), then I think we could include it. But ideally, we'd do that in FCOS first, but that's blocked on dnf5 because we want to avoid adding Python there.

@jlebon
Copy link
Member Author

jlebon commented Feb 21, 2024

/retest

@jlebon
Copy link
Member Author

jlebon commented Feb 22, 2024

coreos/rpm-ostree#4835 should fix the kdump test failure.

@jlebon
Copy link
Member Author

jlebon commented Feb 26, 2024

/retest

@jlebon jlebon changed the title common.yaml: enable cliwrap COS-2696: common.yaml: enable cliwrap Feb 26, 2024
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 26, 2024
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 26, 2024

@jlebon: This pull request references COS-2696 which is a valid jira issue.

In response to this:

As part of the bootable containers effort, we want to put emphasis on a consistent experience when deriving images. A big part of that is being able to type dnf install -y ... in one's Containerfile.

Let's turn on cliwrap for this. This matches the change in FCOS.[1]

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 412d1c6 and 2 for PR HEAD ff686c6 in total

Copy link
Contributor

openshift-ci bot commented Feb 27, 2024

@jlebon: all tests passed!

Full PR test history. Your PR dashboard.

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-bot openshift-merge-bot bot merged commit deffc83 into openshift:master Feb 27, 2024
7 checks passed
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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants