Bug 2070999

Summary: Fail to import contents when the connected and disconnected Satellite have different product labels for the same product
Product: Red Hat Satellite Reporter: Brad Buckingham <bbuckingham>
Component: Inter Satellite SyncAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Radek Mynar <rmynar>
Severity: medium Docs Contact:
Priority: high    
Version: 6.10.0CC: ahumbe, paji, pcreech, satellite6-bugs, vdeshpan, zhunting
Target Milestone: 6.10.5Keywords: PrioBumpGSS, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2041701 Environment:
Last Closed: 2022-05-04 12:59:13 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:

Comment 3 Radek Mynar 2022-04-25 16:14:39 UTC
I created Export and Import organizations, imported manifest, synced RH Repository (Red Hat Satellite Capsule 6.10 for RHEL 7 Server RPMs x86_64) and prepared an export
Then launched following command in 'foreman-rake console' (organization_id: 4 is id of my import org):
 prod = Katello::Product.where(label: 'Red_Hat_Satellite_Capsule', organization_id: 4).first
 prod.update_attribute(:label, prod.label + "-updated")
After that i performed the import successfully.

I also checked presence of "cp_id" in metadata.json.

When label is changed, then import from older Satellite (without this fix and without cp_id in metadata.json) is not possible. Import of data without 'cp_id' is possible when label does not differ.

VERIFIED with Satellite 6.10.5 SNAP2.0

Comment 8 errata-xmlrpc 2022-05-04 12:59:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.10.5 Async Bug Fix Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1708

Comment 9 Partha Aji 2022-05-11 21:20:37 UTC
*** Bug 2068082 has been marked as a duplicate of this bug. ***

Comment 10 Vedashree Deshpande 2022-05-19 13:43:13 UTC
Hello, 

My customer is on 6.10.5 and still facing this issue.

Comment 11 Red Hat Bugzilla 2023-09-15 01:53:32 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days