Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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 ***