Bug 671333 - Satellite-sync using dump fails when trying to obtain a channel that contains errata with Key wodrs "a,a".
Summary: Satellite-sync using dump fails when trying to obtain a channel that contain...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 530
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2011-01-21 09:27 UTC by Dimitar Yordanov
Modified: 2014-07-04 13:25 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-04 13:25:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Dimitar Yordanov 2011-01-21 09:27:14 UTC
Description of problem:
Satellite-sync  using dump fails when trying to obtain a channel that contains errata with Key wodrs "a,a".

Version-Release number of selected component (if applicable):
Satellite 5.3 
spacewalk-java-0.5.44-95

How reproducible:
Always

Steps to Reproduce:
1.Create a custom Channel and Errata(with Keyword "a,b").
2.Export the channel with rhn-satellite-exporter 
3.Copy the dump to another Satellite5.3
4. Modifiy <dump_dir>/erratas/[0-9]+/*.xml.gz in way that "a,b" will be replaced by "a,a".
5.Try to sync the modigied channel to Satellite.
  
Actual results:

Error:
13:57:46 
13:57:46 Importing channel errata
13:57:46    Importing *relevant* errata: chann_last_test_same (1)
            ________________________________________
Downloading:+++ sending log as an email +++

SYNC ERROR: unhandled exception occurred:

(Check logs/email for potentially more detail)

<rhnFault class (code = 54, text = 'ORA-00001: unique constraint (RHNSAT.RHN_ERR_KEYWORD_EID_UQ) violated
')>
(54, 'ORA-00001: unique constraint (RHNSAT.RHN_ERR_KEYWORD_EID_UQ) violated\n', '\n     Package Upload Failed due to uniqueness constraint violation.\n     Make sure the package does not have any duplicate dependencies or\n     does not already exists on the server\n     ')

Expected results:
No errors

Additional info:

If <dump_dir>/erratas/[0-9]+/*.xml.gz  is modified like "a,b" -> "c,d" all goes well.

Probably the problem will be reproducible without modification of  *.xml.gz but this approach is currently blocked by Bug 645363.


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