Skip to content

Conversation

praveenkumar
Copy link
Contributor

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

…-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
```
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Nov 21, 2024
@openshift-ci-robot
Copy link

@praveenkumar: This pull request explicitly references no jira issue.

In response to this:

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

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 openshift-ci bot requested review from ggiguash and pmtk November 21, 2024 10:29
@praveenkumar
Copy link
Contributor Author

cc @eslutsky

Copy link
Contributor

openshift-ci bot commented Nov 21, 2024

@praveenkumar: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/security 0181b30 link false /test security

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@ggiguash
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 26, 2024
Copy link
Contributor

openshift-ci bot commented Nov 26, 2024

[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 /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 Nov 26, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit f501f7c into openshift:main Nov 26, 2024
4 of 5 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.

3 participants