Bug 1404624

Summary: 'yum install iptables-services' fails instead of updating 'iptables'
Product: Red Hat Enterprise Linux 7 Reporter: Yedidyah Bar David <didi>
Component: relengAssignee: Lubos Kocman <lkocman>
Status: CLOSED WONTFIX QA Contact: Release Test Team <release-test-team-automation>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.2CC: james.antill, mdomonko
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 12:58:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yedidyah Bar David 2016-12-14 09:50:27 UTC
Description of problem:

With iptables-1.4.21-16.el7.x86_64 installed:

# yum install iptables-services
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
--> Running transaction check
---> Package iptables-services.x86_64 0:1.4.21-17.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                           Arch                                   Version                                         Repository                                     Size
==============================================================================================================================================================================================
Installing:
 iptables-services                                 x86_64                                 1.4.21-17.el7                                   rhel-7.latest                                  50 k

Transaction Summary
==============================================================================================================================================================================================
Install  1 Package 

Total size: 50 k   
Installed size: 24 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
ERROR with transaction check vs depsolve:
iptables = 1.4.21-17.el7 is needed by iptables-services-1.4.21-17.el7.x86_64
 You could try running: rpm -Va --nofiles --nodigest
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2016-12-14.11-25.sEAcbY.yumtx

Version-Release number of selected component (if applicable):

yum-3.4.3-132.el7.noarch

How reproducible:

Always, I think

Steps to Reproduce:
1. Have a machine with iptables-1.4.21-16.el7.x86_64
2. Have repos with iptables-1.4.21-17.el7.x86_64 (and iptables-services of same version)
3. yum install iptables-services

Actual results:

yum only suggests to install iptables-services, and fails in doing so

Expected results:

yum suggests to update iptables and install iptables-service, and succeeds

Additional info:

Not sure which repos were used to install the machine. I use these repos when trying to install iptables-services:

[rhel-7.latest]
name=RHEL_7_latest
baseurl=http://download.eng.tlv.redhat.com/pub/rhel/rel-eng/latest-RHEL-7/compose/Server/x86_64/os/
enabled=1
gpgcheck=0

[rhel-7latest-optional]
name=RHEL_7latest_OPTIONAL
baseurl=http://download.eng.tlv.redhat.com/pub/rhel/rel-eng/latest-RHEL-7/compose/Server-optional/x86_64/os/
enabled=1
gpgcheck=0

[rhev-73-candidate-hypervisor]
name=RHEVH_7.3_candidate
baseurl=http://download.eng.tlv.redhat.com/pub/rhel/rel-eng/repos/rhevh-rhel-7.3-candidate/x86_64/
enabled=1
gpgcheck=0

Comment 3 Lubos Kocman 2017-02-01 12:58:10 UTC
This is not a production issue, please use JIRA to report such issues. These are mainly customer facing issues.

Lubos

Comment 4 Yaniv Kaul 2017-09-14 08:30:21 UTC
(In reply to Lubos Kocman from comment #3)
> This is not a production issue, please use JIRA to report such issues. These
> are mainly customer facing issues.
> 
> Lubos

Has anyone opened an issue in JIRA? I suspect I'm seeing the exact same issue on CentOS 7.4 which was just released.

'yum -y update iptables' before this is a workaround for this, but ugly.

Comment 5 Michal Domonkos 2017-09-14 08:53:20 UTC
(In reply to Yaniv Kaul from comment #4)
> Has anyone opened an issue in JIRA? I suspect I'm seeing the exact same
> issue on CentOS 7.4 which was just released.
> 
> 'yum -y update iptables' before this is a workaround for this, but ugly.

I just tried this on a 7.3 with iptables-1.4.21-16.el7.x86_64 installed and it seems to work fine:

# yum install iptables-services
[...]
Dependencies Resolved

===============================================================================================================================================================================================
 Package                                               Arch                                  Version                                                 Repository                           Size
===============================================================================================================================================================================================
Installing:
 iptables-services                                     x86_64                                1.4.21-18.0.1.el7.centos                                base                                 51 k
Installing for dependencies:
 libmnl                                                x86_64                                1.0.3-7.el7                                             base                                 23 k
 libnetfilter_conntrack                                x86_64                                1.0.6-1.el7_3                                           base                                 55 k
 libnfnetlink                                          x86_64                                1.0.1-4.el7                                             base                                 26 k
Updating for dependencies:
 iptables                                              x86_64                                1.4.21-18.0.1.el7.centos                                base                                428 k

Transaction Summary
===============================================================================================================================================================================================
Install  1 Package  (+3 Dependent packages)
Upgrade             ( 1 Dependent package)

Total download size: 583 k