Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 957870

Summary: Errata install installs the latest package available. Not the errata that was specifed
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: user-experienceAssignee: Jeff Ortel <jortel>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: high Docs Contact:
Priority: high    
Version: 2.1 BetaCC: jason.dobies, mmccune
Target Milestone: ---Keywords: Triaged
Target Release: 2.1.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-08 14:08:42 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 Preethi Thomas 2013-04-29 18:33:59 UTC
Description of problem:
If your repo has an rpm newer that what you have in the errata you are trying to install, then the install ignores the errata version specified.


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


How reproducible:


Steps to Reproduce:

<preethi> I have installed grinder_test_package-2 on my consumer
<preethi> in my repo I have different versions of grinder_test_package packages
<preethi> i have 3,4, &5
<preethi> I am asking to install an errata which has version 3
<preethi> but the version 5 is getting installed
<preethi> actually i have version 3 & 4 in errata
<preethi> and version 5 is not in an errata but is a an rpm in the repo
<preethi> is that the correct behavior
<jortel> hm... not completely sure.  but, I will say that after looking at the code, the code does not stipulate the version in the install request to the agent.
<jortel> honestly, I don't know enough about errata to say if that is correct behavior.  sorry.
  
Actual results:
[root@ivanova ~]#  pulp-admin rpm repo content errata --repo-id test_errata
Description:      None
From Str:         enhancements
Id:               RHEA-2010:9999
Issued:           2010-11-7 00:00:00
Pkglist:          
  Name:     F13 Pulp Test Packages
  Packages: 
    Arch:     x86_64
    Epoch:    0
    Filename: emoticons-0.1-2.x86_64.rpm
    Name:     emoticons
    Release:  2
    Src:      xen-3.0.3-80.el5_3.3.src.rpm
    Sum:      md5, 366bb5e73a5905eacb82c96e0578f92b
    Version:  0.1
    Arch:     x86_64
    Epoch:    0
    Filename: patb-0.1-2.x86_64.rpm
    Name:     patb
    Release:  2
    Src:      xen-3.0.3-80.el5_3.3.src.rpm
    Sum:      md5, f3c197a29d9b66c5b65c5d62b25db5b4
    Version:  0.1
  Short:    F13PTP
Pushcount:        1
Reboot Suggested: False
References:       
Release:          
Rights:           
Severity:         
Solution:         
Status:           final
Summary:          
Title:            test package enhancements
Type:             enhancements
Updated:          2010-11-8 00:00:00
Version:          1

Description:      None
From Str:         pulp-list
Id:               grinder_test_2
Issued:           2010-11-7 00:00:00
Pkglist:          
  Name:     F14 Pulp Test Packages
  Packages: 
    Arch:     noarch
    Epoch:    0
    Filename: grinder_test_package-2.0-1.fc14.noarch.rpm
    Name:     grinder_test_package
    Release:  1.fc14
    Src:      grinder_test_package-2.0-1.fc14.src.rpm
    Sum:      md5, 99f34d26f648d2765fa360b8d19cb020
    Version:  2.0
  Short:    F14PTP
Pushcount:        1
Reboot Suggested: False
References:       
Release:          
Rights:           
Severity:         
Solution:         
Status:           final
Summary:          
Title:            Test Errata referring to grinder_test_package-2.0
Type:             enhancements
Updated:          2012-7-25 00:00:00
Version:          1

Description:      None
From Str:         pulp-list
Id:               grinder_test_3
Issued:           2010-11-7 00:00:00
Pkglist:          
  Name:     F14 Pulp Test Packages
  Packages: 
    Arch:     noarch
    Epoch:    0
    Filename: grinder_test_package-3.0-1.fc14.noarch.rpm
    Name:     grinder_test_package
    Release:  1.fc14
    Src:      grinder_test_package-3.0-1.fc14.src.rpm
    Sum:      md5, fd379f5e8e0b31035e0647fe6ee2994e
    Version:  3.0
  Short:    F14PTP
Pushcount:        1
Reboot Suggested: False
References:       
Release:          
Rights:           
Severity:         
Solution:         
Status:           final
Summary:          
Title:            Test Errata referring to grinder_test_package-3.0
Type:             enhancements
Updated:          2012-7-25 00:00:00
Version:          1

Description:      None
From Str:         pulp-list
Id:               grinder_test_4
Issued:           2010-11-7 00:00:00
Pkglist:          
  Name:     F14 Pulp Test Packages
  Packages: 
    Arch:     noarch
    Epoch:    0
    Filename: grinder_test_package-4.0-1.fc14.noarch.rpm
    Name:     grinder_test_package
    Release:  1.fc14
    Src:      grinder_test_package-4.0-1.fc14.src.rpm
    Sum:      md5, d89e83ed183fa55dfb0bd2eec14db93c
    Version:  4.0
  Short:    F14PTP
Pushcount:        1
Reboot Suggested: False
References:       
Release:          
Rights:           
Severity:         
Solution:         
Status:           final
Summary:          
Title:            Test Errata referring to grinder_test_package-4.0
Type:             enhancements
Updated:          2012-7-25 00:00:00
Version:          1


[root@ivanova ~]# 
[root@ivanova ~]# 
[root@ivanova ~]# 
[root@ivanova ~]# pulp-admin rpm  consumer errata install  run --consumer-id sunflower  --errata-id grinder_test_3
This command may be exited via ctrl+c without affecting the request.

Refresh Repository Metadata             [ OK ]
Downloading Packages                    [ OK ]
Check Package Signatures                [ OK ]
Running Test Transaction                [ OK ]
Running Transaction                     [ OK ]
Install Succeeded

+----------------------------------------------------------------------+
                               Installed
+----------------------------------------------------------------------+

Name:    grinder_test_package
Version: 5.0
Arch:    noarch
Repoid:  test_errata


[root@ivanova ~]#  pulp-admin rpm repo content rpm --repo-id test_errata --str-eq "name=grinder_test_package"
Arch:         noarch
Buildhost:    jwm-devel.home
Checksum:     0474dbf9da560470c2b3ac9829812296126b9e88fcdf4055316cdd17591e83d8
Checksumtype: sha256
Description:  Test package.  Nothing to see here.
Epoch:        0
Filename:     grinder_test_package-2.0-1.fc14.noarch.rpm
License:      MIT
Name:         grinder_test_package
Provides:     [[u'grinder_test_package', u'EQ', [u'0', u'2.0', u'1.fc14']]]
Release:      1.fc14
Requires:     
Vendor:       
Version:      2.0

Arch:         noarch
Buildhost:    jwm-devel.home
Checksum:     2ab7e212352a2ead03d386b460c671a4880502bfad98001040590541ead1f6d0
Checksumtype: sha256
Description:  Test package.  Nothing to see here.
Epoch:        0
Filename:     grinder_test_package-3.0-1.fc14.noarch.rpm
License:      MIT
Name:         grinder_test_package
Provides:     [[u'grinder_test_package', u'EQ', [u'0', u'3.0', u'1.fc14']]]
Release:      1.fc14
Requires:     
Vendor:       
Version:      3.0

Arch:         noarch
Buildhost:    jwm-devel.home
Checksum:     55db7aa2a3c8007451405bcec071f5b96600bcf79a35d0afe5106b987a5ce205
Checksumtype: sha256
Description:  Test package.  Nothing to see here.
Epoch:        0
Filename:     grinder_test_package-4.0-1.fc14.noarch.rpm
License:      MIT
Name:         grinder_test_package
Provides:     [[u'grinder_test_package', u'EQ', [u'0', u'4.0', u'1.fc14']]]
Release:      1.fc14
Requires:     
Vendor:       
Version:      4.0

Arch:         noarch
Buildhost:    jwm-devel.home
Checksum:     78b6e9827dd3f3f02dd1ad16e89a3515a5b1e5ecdf522842a64315e3728aa951
Checksumtype: sha256
Description:  Test package.  Nothing to see here.
Epoch:        0
Filename:     grinder_test_package-5.0-1.fc14.noarch.rpm
License:      MIT
Name:         grinder_test_package
Provides:     [[u'grinder_test_package', u'EQ', [u'0', u'5.0', u'1.fc14']]]
Release:      1.fc14
Requires:     
Vendor:       
Version:      5.0


On the consumer


[root@cloud-qe-6 ~]# rpm -qa |grep grinder
grinder_test_package-2.0-1.fc14.noarch
[root@cloud-qe-6 ~]# 
[root@cloud-qe-6 ~]# 

After errata install

[root@cloud-qe-6 ~]# rpm -qa |grep grinder
grinder_test_package-5.0-1.fc14.noarch
[root@cloud-qe-6 ~]# 



Expected results:


Additional info:

Comment 1 Jeff Ortel 2013-04-29 20:04:37 UTC
Estimate: 2 hours.

Comment 2 Jeff Ortel 2013-04-30 14:00:40 UTC
https://github.com/pulp/pulp_rpm/pull/191

Comment 3 Mike McCune 2013-04-30 17:26:33 UTC
is this going in 2.1.1?

Comment 4 Jeff Ortel 2013-04-30 17:37:31 UTC
Yes.  Building in 2.1.1-0.9.beta for QE today.

(In reply to comment #3)
> is this going in 2.1.1?

Comment 5 Jeff Ortel 2013-04-30 18:32:50 UTC
build: 2.1.1-0.9.beta

Comment 6 Preethi Thomas 2013-04-30 22:24:03 UTC
[root@ivanova ~]#  pulp-admin rpm  consumer errata install  run --consumer-id voyager --errata-id grinder_test_3
This command may be exited via ctrl+c without affecting the request.

Refresh Repository Metadata             [ OK ]
Downloading Packages                    [ OK ]
Check Package Signatures                [ OK ]
Running Test Transaction                [ OK ]
Running Transaction                     [ OK ]
Install Succeeded

+----------------------------------------------------------------------+
                               Installed
+----------------------------------------------------------------------+

Name:    grinder_test_package
Version: 3.0
Arch:    noarch
Repoid:  test_errata


[root@ivanova ~]#  pulp-admin rpm  consumer errata install  run --consumer-id voyager --errata-id grinder_test_4
This command may be exited via ctrl+c without affecting the request.

Refresh Repository Metadata             [ OK ]
Downloading Packages                    [ OK ]
Check Package Signatures                [ OK ]
Running Test Transaction                [ OK ]
Running Transaction                     [ OK ]
Install Succeeded

+----------------------------------------------------------------------+
                               Installed
+----------------------------------------------------------------------+

Name:    grinder_test_package
Version: 4.0
Arch:    noarch
Repoid:  test_errata



[root@ibm-x3550m3-09 ~]# rpm -qa |grep grinder
grinder_test_package-3.0-1.fc14.noarch
[root@ibm-x3550m3-09 ~]# rpm -qa |grep grinder
grinder_test_package-4.0-1.fc14.noarch
[root@ibm-x3550m3-09 ~]# 

[root@ivanova ~]#  pulp-admin rpm  consumer errata install  run --consumer-id sunflower --errata-id grinder_test_4
This command may be exited via ctrl+c without affecting the request.

[-]
Refresh Repository Metadata             [ OK ]
Downloading Packages                    [ OK ]
Check Package Signatures                [ OK ]
Running Test Transaction                [ OK ]
Running Transaction                     [ OK ]
Install Succeeded

+----------------------------------------------------------------------+
                               Installed
+----------------------------------------------------------------------+

Name:    grinder_test_package
Version: 4.0
Arch:    noarch
Repoid:  test_errata


[root@ivanova ~]# 

[root@cloud-qe-6 ~]# rpm -qa |grep grinder
grinder_test_package-4.0-1.fc14.noarch
[root@cloud-qe-6 ~]#

Comment 7 Preethi Thomas 2013-05-08 14:08:42 UTC
2.1.1 released