Bug 712083

Summary: Reloading the existing package in custom repo should raise a "warning" instead of "error"
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: skarmark, tsanders
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 25   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 13:58:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 641987, 712065    

Description Jay Dobies 2011-06-09 13:05:48 UTC
Refiling from the RHUI project:

Description of problem:
I created a custom repo and uploaded few packages. Then I again uploaded same
package which was uploaded earlier and got following error message in pulp.log

Package uploading to custom repo is working fine, however we should lower the
log level to "warning"


--------------
2011-06-09 16:56:14,885 [ERROR][Dummy-2] add_package() @ repo.py:838 - Package
with same NVREA [(u'libXinerama-devel', u'0', u'1.1', u'1.el6', u'i686')]
already exists in repo [repo102]
2011-06-09 16:56:14,885 [INFO][Dummy-2] add_package() @ repo.py:843 - Finished
check of existing NEVRA by 0.0153591632843 seconds
2011-06-09 16:56:14,888 [ERROR][Dummy-2] add_package() @ repo.py:852 - Package
with same filename [libXinerama-devel-1.1-1.el6.i686.rpm] already exists in
repo [repo102]
2011-06-09 16:56:14,888 [INFO][Dummy-2] add_package() @ repo.py:857 - Finished
check of get_packages_by_filename() by 0.018012046814 seconds
2
-----------------

Version-Release number of selected component (if applicable):
pulp 0.186
rhui-tools 2.0.26

How reproducible:
always

Steps to Reproduce:
1. Create a custom repo
2. upload few packages
3. Try to upload the same package which was uploaded earlier

Actual results:
2011-06-09 16:56:14,885 [ERROR][Dummy-2] add_package() @ repo.py:838 - Package
with same NVREA [(u'libXinerama-devel', u'0', u'1.1', u'1.el6', u'i686')]
already exists in repo [repo102]

Expected results:
We should lower the log level to "warning" for such cases.

Comment 1 Todd Sanders 2011-06-20 13:24:25 UTC
Reassigning to Prad.

Comment 2 Pradeep Kilambi 2011-06-23 15:26:37 UTC
changed the log.errors to log.warn

commit 4f43df79c4bdd158b14c3e9fe45158bbf8c35f4d

Comment 3 Jeff Ortel 2011-06-24 22:18:22 UTC
build: 0.198

Comment 4 Preethi Thomas 2011-07-05 12:38:46 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.200-1.fc14.noarch

2011-07-05 08:42:35,651 17679:139634923042560: pulp.server.api.repo:INFO: repo:8
50 Finished check of NEVRA/filename in argument data by 0.00829720497131 seconds
2011-07-05 08:42:35,654 17679:139634923042560: pulp.server.api.repo:WARNING: repo:868 Package with same NVREA [(u'gofer', u'0', u'0.32', u'1.fc14', u'noarch')] already exists in repo [test]

Comment 5 Preethi Thomas 2011-08-16 13:58:45 UTC
Closing with Community Release 15

pulp-0.0.223-4.