-
Notifications
You must be signed in to change notification settings - Fork 216
NO-ISSUE: Install nfv-openvswitch package to get openvswitch-selinux-extra-policy package #4212
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
NO-ISSUE: Install nfv-openvswitch package to get openvswitch-selinux-extra-policy package #4212
Conversation
…-policy package openvswitch-selinux-extra-policy package is part of nfv-openvswitch repo for centos stream and without it building image for microshift-okd fails with following error: ``` Error: Problem: package microshift-4.18.0_0.nightly_2024_11_15_113437_20241120110835_10cf3b14d_dirty-1.el9.x86_64 from microshift-local requires microshift-networking = 4.18.0_0.nightly_2024_11_15_113437_20241120110835_10cf3b14d_dirty, but none of the providers can be installed - package microshift-networking-4.18.0_0.nightly_2024_11_15_113437_20241120110835_10cf3b14d_dirty-1.el9.x86_64 from microshift-local requires (openvswitch3.4 or openvswitch >= 3.4), but none of the providers can be installed - conflicting requests - nothing provides openvswitch-selinux-extra-policy needed by openvswitch3.4-3.4.0-1.el9fdp.x86_64 from openshift-mirror-beta (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages) Error: building at STEP "RUN ${REPO_CONFIG_SCRIPT} ${USHIFT_RPM_REPO_PATH} && dnf install -y microshift && if [ "$WITH_FLANNEL" -eq 1 ]; then dnf install -y microshift-flannel; systemctl disable openvswitch; fi && ${REPO_CONFIG_SCRIPT} -delete && rm -f ${REPO_CONFIG_SCRIPT} && rm -rf $USHIFT_RPM_REPO_PATH && dnf clean all": while running runtime: exit status 1 ```
@praveenkumar: This pull request explicitly references no jira issue. In response to this:
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. |
cc @eslutsky |
@praveenkumar: The following test failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
@@ -39,6 +39,9 @@ COPY --chmod=755 ./okd/src/create_repos.sh ${REPO_CONFIG_SCRIPT} | |||
COPY --chmod=755 ./okd/src/configure.sh ${OKD_CONFIG_SCRIPT} | |||
COPY --from=builder /src/_output/rpmbuild/RPMS ${USHIFT_RPM_REPO_PATH} | |||
|
|||
# Install nfv-openvswitch repo which provides openvswitch extra policy package | |||
RUN dnf install -y centos-release-nfv-openvswitch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this to the RUN command below, not to create yet another layer?
Also, please explain in comment why this is necessary.
P.S. In general, it's strange that the package deoendency is not pulled automatically. Is the dependency missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add this to the RUN command below, not to create yet another layer? Also, please explain in comment why this is necessary.
I tried to add this in RUN command below, but that doesn't work because this package add the nfv-openshfit repo and once repo is added then only it able to pull packages from it.
P.S. In general, it's strange that the package deoendency is not pulled automatically. Is the dependency missing?
openvswitch package which comes from openshift-mirror-beta repo (https://mirror.openshift.com/pub/openshift-v4/dependencies/rpms/4.17-el9-beta/ ) which doesn't have it dependency openvswitch-selinux-extra-policy
so either we need to update this mirror repo (not sure how) to add this dep package or use nfv repo which have required dependency.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ggiguash, praveenkumar 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 |
openvswitch-selinux-extra-policy package is part of nfv-openvswitch repo for centos stream and without it building image for microshift-okd fails with following error: