Ovirt build: http://jenkins.ovirt.org/job/ovirt-master_change-queue-tester/12889/ suspected pathch: https://gerrit.ovirt.org/#/c/97704/ - spec: clean up and reorganize host-deploy log: https://jenkins.ovirt.org/view/Change%20queue%20jobs/job/ovirt-master_change-queue-tester/12889/artifact/upgrade-from-release-suite.el7.x86_64/test_logs/upgrade-from-release-suite-master/post-002_bootstrap.py/lago-upgrade-from-release-suite-master-engine/_var_log/ovirt-engine/host-deploy/ovirt-host-deploy-20190214121142-lago-upgrade-from-release-suite-master-host-0-146f0dde.log Error: 2019-02-14 12:11:42,063-0500 ERROR otopi.plugins.otopi.packagers.yumpackager yumpackager.error:85 Yum [u'ovirt-vmconsole-1.0.6-3.el7.noarch requires selinux-policy >= 3.13.1-229.el7_6.9', u'ovirt-vmconsole-1.0.6-3.el7.noarch requires selinux-policy-base >= 3.13.1-229.el7_6.9'] 2019-02-14 12:11:42,063-0500 DEBUG otopi.context context._executeMethod:142 method exception Traceback (most recent call last): File "/tmp/ovirt-8JzESBo7eU/pythonlib/otopi/context.py", line 132, in _executeMethod method['method']() File "/tmp/ovirt-8JzESBo7eU/otopi-plugins/otopi/packagers/yumpackager.py", line 248, in _packages self.processTransaction() File "/tmp/ovirt-8JzESBo7eU/otopi-plugins/otopi/packagers/yumpackager.py", line 262, in processTransaction if self._miniyum.buildTransaction(): File "/tmp/ovirt-8JzESBo7eU/pythonlib/otopi/miniyum.py", line 920, in buildTransaction raise yum.Errors.YumBaseError(msg) YumBaseError: [u'ovirt-vmconsole-1.0.6-3.el7.noarch requires selinux-policy >= 3.13.1-229.el7_6.9', u'ovirt-vmconsole-1.0.6-3.el7.noarch requires selinux-policy-base >= 3.13.1-229.el7_6.9'] 2019-02-14 12:11:42,064-0500 ERROR otopi.context context._executeMethod:151 Failed to execute stage 'Package installation': [u'ovirt-vmconsole-1.0.6-3.el7.noarch requires selinux-policy >= 3.13.1-229.el7_6.9', u'ovirt-vmconsole-1.0.6-3.el7.noarch requires selinux-policy-base >= 3.13.1-229.el7_6.9']
on which platform is this happening? Centos 7.6? Fedora 29? Fedora 28?
Assuming this happens on centos, there are two issues so far: 1. Patch https://gerrit.ovirt.org/#/c/97704/ *wants* to use this spec file macro %{?selinux_requires} This macro automatically set the right dependency for the platform on which the package is being built. Here we can see that the host on which the package, built from master, do *not* have that package. However, on a test box of mine: 1005 15:07:43 root@kenji:~ $ cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) 1006 15:07:49 root@kenji:~ $ rpm -qa | grep selinux-policy selinux-policy-3.13.1-229.el7_6.9.noarch selinux-policy-targeted-3.13.1-229.el7_6.9.noarch selinux-policy-devel-3.13.1-229.el7_6.6.noarch 1010 15:08:50 root@kenji:~ $ rpm -q --provides selinux-policy config(selinux-policy) = 3.13.1-229.el7_6.9 selinux-policy = 3.13.1-229.el7_6.9 1011 15:08:52 root@kenji:~ $ rpm -q --provides selinux-policy-targeted config(selinux-policy-targeted) = 3.13.1-229.el7_6.9 selinux-policy-base = 3.13.1-229.el7_6.9 selinux-policy-targeted = 3.13.1-229.el7_6.9 so it seems that the package was built on up-to-date host, while is being installed in a host outdated. For this issue there is no action needed besides making sure that the installation host is up to date. 2. (minor, but still) the package version is out of date (forgot to update), fixed in https://gerrit.ovirt.org/#/c/97786/
The only way I can reproduce this locally is by disabling CentOS updates repository: yum install --quiet https://jenkins.ovirt.org/job/ovirt-vmconsole_master_build-artifacts-el7-x86_64/23/artifact/exported-artifacts/ovirt-vmconsole-1.0.6-3.el7.noarch.rpm --disablerepo=updates Error: Package: ovirt-vmconsole-1.0.6-3.el7.noarch (/ovirt-vmconsole-1.0.6-3.el7.noarch) Requires: selinux-policy >= 3.13.1-229.el7_6.9 Available: selinux-policy-3.13.1-229.el7.noarch (base) selinux-policy = 3.13.1-229.el7 Error: Package: ovirt-vmconsole-1.0.6-3.el7.noarch (/ovirt-vmconsole-1.0.6-3.el7.noarch) Requires: selinux-policy-base >= 3.13.1-229.el7_6.9 Available: selinux-policy-minimum-3.13.1-229.el7.noarch (base) selinux-policy-base = 3.13.1-229.el7 Available: selinux-policy-mls-3.13.1-229.el7.noarch (base) selinux-policy-base = 3.13.1-229.el7 Available: selinux-policy-targeted-3.13.1-229.el7.noarch (base) selinux-policy-base = 3.13.1-229.el7 Error: Package: policycoreutils-python-2.5-29.el7.x86_64 (base) Requires: policycoreutils = 2.5-29.el7 Installed: policycoreutils-2.5-29.el7_6.1.x86_64 (@updates) policycoreutils = 2.5-29.el7_6.1 Available: policycoreutils-2.5-29.el7.x86_64 (base) policycoreutils = 2.5-29.el7 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest I tend to think this can be a OST issue.
I'm closing not a bug, there should be a bug in OST when detecting the dependency tree. A fix is available to workaround the issue here: https://gerrit.ovirt.org/#/c/97785/ We need to investigate on OST side.
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days