Bug 1677630 - ovirt-vmconsole project is failing ost on host deploy due to missing selinux-policy packages
Summary: ovirt-vmconsole project is failing ost on host deploy due to missing selinux-...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: ovirt-vmconsole
Classification: oVirt
Component: Packaging.rpm
Version: master
Hardware: x86_64
OS: Unspecified
urgent
urgent
Target Milestone: ---
: ---
Assignee: Francesco Romani
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-15 12:39 UTC by Dafna Ron
Modified: 2023-09-14 05:23 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-02-15 17:16:34 UTC
oVirt Team: Virt
Embargoed:
dron: planning_ack?
dron: devel_ack?
dron: testing_ack?


Attachments (Terms of Use)

Description Dafna Ron 2019-02-15 12:39:50 UTC
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']

Comment 1 Francesco Romani 2019-02-15 13:58:24 UTC
on which platform is this happening? Centos 7.6? Fedora 29? Fedora 28?

Comment 2 Francesco Romani 2019-02-15 14:11:21 UTC
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/

Comment 3 Sandro Bonazzola 2019-02-15 17:03:42 UTC
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.

Comment 4 Sandro Bonazzola 2019-02-15 17:16:34 UTC
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.

Comment 5 Red Hat Bugzilla 2023-09-14 05:23:44 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.