Bug 1946366

Summary: Katello::Errors::Pulp3Error: 'NoneType' object has no attribute 'pk'
Product: Red Hat Satellite Reporter: Lai <ltran>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Lai <ltran>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: ggainey
Target Milestone: Unspecified   
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: Environment:
Last Closed: 2021-04-06 13:24:23 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:
Attachments:
Description Flags
Traceback of nonetype error none

Description Lai 2021-04-05 21:17:42 UTC
Description of problem:
Running migration on customer db returns with "Katello::Errors::Pulp3Error: 'NoneType' object has no attribute 'pk'"

Version-Release number of selected component (if applicable):
6.9.0_19.1

How reproducible:


Steps to Reproduce:
1. Get a customer db on disk (use validate content sync to get data on disk)
2. Run migration

Actual results:
ForemanTasks::TaskError: Task b710be55-dc36-467f-9a62-93920a26e17b: Katello::Errors::Pulp3Error: 'NoneType' object has no attribute 'pk'

Expected results:
Migration should complete successfully without issues

Additional info:

Comment 1 Lai 2021-04-05 21:19:27 UTC
Created attachment 1769369 [details]
Traceback of nonetype error

Comment 3 Grant Gainey 2021-04-05 21:54:36 UTC
This snap is running python3-pulpcore-3.7.3-2.el7pc.noarch.rpm and python3-pulp-2to3-migration-0.10.0-1.el7pc.noarch.rpm (just as a note to anyone investigating)

Comment 4 Grant Gainey 2021-04-05 22:04:29 UTC
This looks exactly like https://pulp.plan.io/issues/7876 , which has been fixed and released upstream a few weeks ago.

Comment 5 Lai 2021-04-06 12:58:35 UTC
According to Tanya, this is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1945377.  PM, please closed as a duplicate as appropriate.

Comment 6 Brad Buckingham 2021-04-06 13:24:23 UTC
Closing as a duplicate based upon comment 4 & 5.

*** This bug has been marked as a duplicate of bug 1945377 ***