Bug 772062

Summary: Available Errata for a Consumer appears in-accurate
Product: [Retired] Pulp Reporter: Eric Helms <ehelms>
Component: user-experienceAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0.0CC: tsanders
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-10 16:09:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Output from pulp of errata RHBA-2011:0849 none

Description Eric Helms 2012-01-05 21:01:52 UTC
Created attachment 551025 [details]
Output from pulp of errata RHBA-2011:0849

Description of problem:
When viewing the available errata for a consumer, errata is listed with package versions that are less than what is installed on the consumer.

Version-Release number of selected component (if applicable):
pulp-0.0.255-1.fc15.noarch

How reproducible:
Always

Steps to Reproduce:
1. Register consumer with pulp
2. Bind consumer to the following repository: http://download.devel.redhat.com/cds/prod/content/dist/rhel/server-6/updates/
3. Check version of sssd on consumer: 
rpm -q sssd
sssd-1.5.1-66.el6_2.1.x86_64
4. Check available errata for consumer

Actual results:
Errata RHBA-2011:0849 is shown as applicable to the consumer.  See attachment for errata details.

Expected results:
Errata RHBA-2011:0849 is not listed as applicable.

Additional info:

Comment 1 Pradeep Kilambi 2012-01-09 17:02:36 UTC
is the package profile for this consumer up2date on pulp? seems to me like the package profile for your consumer still thinks you have older version installed.

you could do a consumer update to make sure the profile is updated. If you have the yum plugin enabled, your yum operations should trigger a profile update.

Comment 2 Pradeep Kilambi 2012-01-10 16:09:59 UTC
Here is my test case:

1. created a repo/synced "testerrata"

2. created a consumer "prad"

3. bind the consumer to repo
$ cat /etc/yum.repos.d/pulp.repo 
#
# Pulp Repositories
# Managed by Pulp client
#

[testerrata]
name = testerrata
enabled = 1
sslverify = 0
gpgcheck = 0
baseurl = https://prad.rdu.redhat.com/pulp/repos/pub/updates

4. install older version of package
$ rpm -q patb
patb-0.1-1.noarch

5. check applicable errata
$ sudo pulp-consumer -u admin -p admin errata list+------------------------------------------+
    Applicable Errata for consumer [prad]
+------------------------------------------+

Id                  	Type           	Title

RHEA-2010:9999      	enhancements   	test package enhancements


6. Errata install
sudo pulp-admin -u admin -p admin errata install --consumerid=prad -i -e RHEA-2010:9999

7. check version
$ rpm -q patb
patb-0.1-2.noarch

8. update consumer profile
$ sudo pulp-consumer -u admin -p admin consumer update
Successfully updated consumer [prad] profile

9. check applicable errata
$ sudo pulp-consumer -u admin -p admin errata list
No errata available to list

So based on this, if the consumer profile is updated, the errata computation does the right thing and doesnt show the applied errata. So based on the above test errata computation looks ok to me.

Closing this as not a bug, please feel free to reopen if you see further issues.