#289 Zuul rpm-install-test fails with "No packages marked for reinstall"
Closed by fbo. Opened by churchyard.

In here:

https://src.fedoraproject.org/rpms/python-pyqtchart/pull-request/7

I got two failures of the rpm-install-test job:

https://fedora.softwarefactory-project.io/zuul/build/41244a5238824067b086bd455b88c6d8
https://fedora.softwarefactory-project.io/zuul/build/536aec13118c454d8a78e22c9ce2c54a

dnf reinstall -y /repos/zuul-built/*.rpm
non-zero return code
Last metadata expiration check: 0:00:26 ago on Mon 04 Oct 2021 01:10:03 PM UTC.
Package python3-pyqtchart-5.15.4-1.fc36.x86_64 not installed, cannot reinstall it.
No match for argument: /repos/zuul-built/python3-pyqtchart-5.15.4-1.fc36.x86_64.rpm
Package python3-pyqtchart-debuginfo-5.15.4-1.fc36.x86_64 not installed, cannot reinstall it.
No match for argument: /repos/zuul-built/python3-pyqtchart-debuginfo-5.15.4-1.fc36.x86_64.rpm
Package python3-pyqtchart-devel-5.15.4-1.fc36.x86_64 not installed, cannot reinstall it.
No match for argument: /repos/zuul-built/python3-pyqtchart-devel-5.15.4-1.fc36.x86_64.rpm
Package python-pyqtchart-debugsource-5.15.4-1.fc36.x86_64 not installed, cannot reinstall it.
No match for argument: /repos/zuul-built/python-pyqtchart-debugsource-5.15.4-1.fc36.x86_64.rpm
Error: No packages marked for reinstall.

I don't understand the problem. I guess the packages should be installed, not reinstalled... ?


Hi,

What I see is that the previous ansible task is failing: https://fedora.softwarefactory-project.io/zuul/build/536aec13118c454d8a78e22c9ce2c54a/console#1/0/12/cloud-host

with:
Last metadata expiration check: 0:00:23 ago on Mon 04 Oct 2021 01:10:03 PM UTC.
Error:
Problem 1: conflicting requests
- nothing provides python3.10dist(pyqt5) >= 5.15.4 needed by python3-pyqtchart-5.15.4-1.fc36.x86_64
Problem 2: package python3-pyqtchart-devel-5.15.4-1.fc36.x86_64 requires python3-pyqtchart(x86-64) = 5.15.4-1.fc36, but none of the providers can be installed
- conflicting requests
- nothing provides python3.10dist(pyqt5) >= 5.15.4 needed by python3-pyqtchart-5.15.4-1.fc36.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

AFAIR the job (here is the related playbook: https://pagure.io/zuul-distro-jobs/blob/master/f/roles/repo-install-rpm/tasks/install_repo_packages.yaml) does
- install the artifacts (*.rpm)
- then force a reinstall (there is that explanation in the playbook: "If the same NVR was already installed then we need to force reinstall")

The install *.rpm task failed but have that "failed_when: false" thus even if the task fail it will continue. I cannot remember why we have this. That might be probably removed then.

Are the conflicting errors legitimate ?
Should we close the issue ?

I think seening this:

Error:
Problem 1: conflicting requests
- nothing provides python3.10dist(pyqt5) >= 5.15.4 needed by python3-pyqtchart-5.15.4-1.fc36.x86_64
Problem 2: package python3-pyqtchart-devel-5.15.4-1.fc36.x86_64 requires python3-pyqtchart(x86-64) = 5.15.4-1.fc36, but none of the providers can be installed
- conflicting requests
- nothing provides python3.10dist(pyqt5) >= 5.15.4 needed by python3-pyqtchart-5.15.4-1.fc36.x86_64
(try to add '--skip-broken' to skip uninstallable packages)

would make me understand the problem, but seeing the No packages marked for reinstall error just makes me wonder.

Are the conflicting errors legitimate ?

Yes.

Should we close the issue ?

I'd close it once we make it show the actual errors, do you not agree?

Sure, I've merged this https://pagure.io/zuul-distro-jobs/pull-request/117. So let's close and reopen if that raise other issues.

Metadata Update from @fbo:
- Issue status updated to: Closed (was: Open)

Thnaks!

Metadata