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

update(4.9): rm dup ignores #98

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Conversation

kolyshkin
Copy link
Contributor

Those are already ignored in the top-level config.

Tested with

scan payload -V 4.9 --url quay.io/openshift-release-dev/ocp-release:4.9.59-assembly.art7407-x86_64

Those are already ignored in the top-level config.

Tested with

> scan payload -V 4.9 --url quay.io/openshift-release-dev/ocp-release:4.9.59-assembly.art7407-x86_64

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kolyshkin

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 Jul 31, 2023
@rphillips
Copy link
Contributor

With this PR I get, which includes the executable is not dynamically linked errors:

error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/c93cd2fcf72b3e0ff7c83e661efafead4bf8fab631cd7c4e7aedf12acacd83a8/merged/var/lib/rpm
error: Unable to open sqlite database /var/lib/containers/storage/overlay/c93cd2fcf72b3e0ff7c83e661efafead4bf8fab631cd7c4e7aedf12acacd83a8/merged/var/lib/rpm/rpmdb.sqlite: unable to open database file
error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/c93cd2fcf72b3e0ff7c83e661efafead4bf8fab631cd7c4e7aedf12acacd83a8/merged/var/lib/rpm)
I0801 09:04:49.527912   17662 scan.go:287] "scanning failed" image="quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:91e37c277d80facba198afcbb05c06c0f27b6f9c7bb4f2dd64cf12e331a0dc58" path="/usr/sbin/ldconfig" error="executable is not dynamically linked" component="ose-vsphere-problem-detector-container" tag="vsphere-problem-detector" rpm="" status="failed"
I0801 09:04:49.629169   17662 scan.go:287] "scanning failed" image="quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:645e64c9058265b07df95f94fd277d7131b8c6c42ea272605b724896a8a6589f" path="/usr/sbin/build-locale-archive" error="executable is not dynamically linked" component="openshift-enterprise-tests-container" tag="tests" rpm="" status="failed"
I0801 09:04:49.634548   17662 validations.go:357] rpm -qf error: exit status 1 (stderr=error: Unable to open sqlite database /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm/rpmdb.sqlite: unable to open database file
error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm
error: Unable to open sqlite database /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm/rpmdb.sqlite: unable to open database file
error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm)
I0801 09:04:49.634566   17662 scan.go:287] "scanning failed" image="quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:645e64c9058265b07df95f94fd277d7131b8c6c42ea272605b724896a8a6589f" path="/usr/sbin/ldconfig" error="executable is not dynamically linked" component="openshift-enterprise-tests-container" tag="tests" rpm="" status="failed"

@kolyshkin
Copy link
Contributor Author

With this PR I get, which includes the executable is not dynamically linked errors:

error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/c93cd2fcf72b3e0ff7c83e661efafead4bf8fab631cd7c4e7aedf12acacd83a8/merged/var/lib/rpm
error: Unable to open sqlite database /var/lib/containers/storage/overlay/c93cd2fcf72b3e0ff7c83e661efafead4bf8fab631cd7c4e7aedf12acacd83a8/merged/var/lib/rpm/rpmdb.sqlite: unable to open database file
error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/c93cd2fcf72b3e0ff7c83e661efafead4bf8fab631cd7c4e7aedf12acacd83a8/merged/var/lib/rpm)
I0801 09:04:49.527912   17662 scan.go:287] "scanning failed" image="quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:91e37c277d80facba198afcbb05c06c0f27b6f9c7bb4f2dd64cf12e331a0dc58" path="/usr/sbin/ldconfig" error="executable is not dynamically linked" component="ose-vsphere-problem-detector-container" tag="vsphere-problem-detector" rpm="" status="failed"
I0801 09:04:49.629169   17662 scan.go:287] "scanning failed" image="quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:645e64c9058265b07df95f94fd277d7131b8c6c42ea272605b724896a8a6589f" path="/usr/sbin/build-locale-archive" error="executable is not dynamically linked" component="openshift-enterprise-tests-container" tag="tests" rpm="" status="failed"
I0801 09:04:49.634548   17662 validations.go:357] rpm -qf error: exit status 1 (stderr=error: Unable to open sqlite database /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm/rpmdb.sqlite: unable to open database file
error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm
error: Unable to open sqlite database /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm/rpmdb.sqlite: unable to open database file
error: cannot open Packages index using sqlite - Operation not permitted (1)
error: cannot open Packages database in /var/lib/containers/storage/overlay/b6182cd54c83ab99e3dd018a96910065931e9a515e9db5fc0f9e6402c3103ad1/merged/var/lib/rpm)
I0801 09:04:49.634566   17662 scan.go:287] "scanning failed" image="quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:645e64c9058265b07df95f94fd277d7131b8c6c42ea272605b724896a8a6589f" path="/usr/sbin/ldconfig" error="executable is not dynamically linked" component="openshift-enterprise-tests-container" tag="tests" rpm="" status="failed"

The problem is your host rpm can't read container's rpmdb (it's also weird that it gets EPERM).

I've already addressed a similar issue in 84988f8, but maybe there are more fixes needed, given that we have to support different rpm versions.

I'm using rpm-4.18.1-3.fc38.x86_64 and everything works. @rphillips What is your rpm version? Hopefully I can repro that you see and find out a way to fix that.

@rphillips
Copy link
Contributor

Hmm. I'm on 4.18.1 as well, but on an Arch linux system.

@rphillips
Copy link
Contributor

/retest
/lgtm
/approve

@rphillips rphillips added the lgtm Indicates that a PR is ready to be merged. label Aug 1, 2023
@rphillips rphillips merged commit 7e6d196 into openshift:main Aug 1, 2023
1 check 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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants