Bug 1973359

Summary: [pulp3] on_demand distribution trees with no images are not migrated
Product: Red Hat Satellite Reporter: James Jeffers <jjeffers>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Lai <ltran>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.9.0CC: egolov, ggainey, jjeffers, rchan, ttereshc
Target Milestone: 6.10.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pulp_2to3_migration-0.11.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1964593 Environment:
Last Closed: 2021-07-13 12:59:22 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:

Description James Jeffers 2021-06-17 16:49:33 UTC
+++ This bug was initially created as a clone of Bug #1964593 +++

Description of problem:

If a distribution tree was synced with on_demand policy to pulp2 and has no images , it won't be migrated at all. The repository in Pulp 3 will have all content except a distribution tree.

The only sign of it in the logs is
rq[21594]: pulp: pulp_2to3_migration.app.plugin.content:WARNING: On_demand content cannot be migrated without an entry in the lazy catalog, pulp2 unit_id: dbb90f9a-5f26-4477-b361-a8dfc22fc27e

where pulp2 unit_id refers to the on_demand distribution tree.

So far, only CentOS 8 kickstart repos are known to create a kickstart repo without a single image.
CentOS 8 BaseOS has images, other repos which are supposed to be variants or addons, but were created as separate independent repos, have no images, e.g. CentOS 8 Appstream, PowerTools, HighAvailability.

To reproduce:

 - sync one of the following to pulp2 with policy on_demand
    * AppStream, http://mirror.centos.org/centos/8/AppStream/x86_64/os/
    * PowerTools, http://mirror.centos.org/centos/8/PowerTools/x86_64/os/
    * HighAvailability, http://mirror.centos.org/centos/8/HighAvailability/x86_64/os/
 - migrate to pulp 3

--- Additional comment from  on 2021-05-25T18:50:12Z 

The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.

--- Additional comment from  on 2021-05-25T18:50:13Z 

The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

--- Additional comment from  on 2021-05-27T19:49:20Z 

The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.

--- Additional comment from  on 2021-06-04T19:28:10Z 

The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.

--- Additional comment from  on 2021-06-04T20:58:45Z 

All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

--- Additional comment from  on 2021-06-14T15:08:26Z 

The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 2 James Jeffers 2021-07-12 18:21:40 UTC
I propose we close this. Unless Tanya says otherwise, I'll close it.