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.
Description of problem: Pulp3 migration failed with " Katello::Errors::Pulp3Error: null value in column "downloaded" violates not-null constraint" error.
Version-Release number of selected component (if applicable):
6.9.z
How reproducible:
always.
Steps to Reproduce:
1. Prepare the 6.9.z setup using the upgrade template.
2. Run the pre-migration steps before running the upgrade for 6.10 snap2.
#satellite-maintain prep-6.10-upgrade
Running Preparations for the Satellite 6.10 upgrade
================================================================================
Preparations for the Satellite 6.10 upgrade:
prep-6.10-upgrade may take a while depending on the size of /var/lib/pulp/content
| $ chown -R :pulp /var/lib/pulp/content [OK]
--------------------------------------------------------------------------------
3 Ran the pulp migration command "satellite-maintain content prepare" and it gets failed with " Katello::Errors::Pulp3Error: null value in column "downloaded" violates not-null constraint" error.
# satellite-maintain content prepare
Running Prepare content for Pulp 3
================================================================================
................
2021-06-02 09:07:55 -0400: Initial Migration steps complete.Migration failed, You will want to investigate: https://xyz.com/foreman_tasks/tasks/e0d563fa-453c-42f2-a6f7-56105a8ae0a1
rake aborted!
ForemanTasks::TaskError: Task e0d563fa-453c-42f2-a6f7-56105a8ae0a1: Katello::Errors::Pulp3Error: null value in column "downloaded" violates not-null constraint
DETAIL: Failing row contains (da6b02a7-01a6-4d46-98c2-898bbfe680b1, 2021-06-02 13:08:01.198789+00, 2021-06-02 13:08:01.198819+00, 9844bb2a-04b7-4b32-90ae-e757d7aa2b7a, rpm, 1479666109, /var/lib/pulp/content/rpm/ConsoleKit/0.4.1/6.el6/x86_64/0d0dadff..., null, null, null, ).
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.27/lib/katello/tasks/pulp3_migration.rake:35:in `block (2 levels) in <top (required)>'
/opt/rh/rh-ruby25/root/usr/share/gems/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => katello:pulp3_migration
(See full trace by running task with --trace)
[FAIL]
Actual results:
Pulp3 migration failed with the error "Katello::Errors::Pulp3Error: null value in column "downloaded" violates not-null constraint" error."
Expected results:
Pulp migration should complete successfully.
Additional info:
Comment 11pulp-infra@redhat.com
2021-06-04 12:02:32 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
Comment 12pulp-infra@redhat.com
2021-06-04 12:02:35 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
Comment 13Tanya Tereshchenko
2021-06-08 10:02:47 UTC
Verified with 6.9.4 Snap1
Verification points:
1. Prepared the 6.9.z setup using the upgrade template.
2. Ran upgrade from 6.9.z to 6.9.4 Snap1 and it completed successfully.
3. Ran the pre-migration steps
satellite-maintain content migration-stats
Running Retrieve Pulp 2 to Pulp 3 migration statistics
================================================================================
Retrieve Pulp 2 to Pulp 3 migration statistics:
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
============Migration Summary================
Migrated/Total RPMs: 0/112393
Migrated/Total errata: 0/65255
Migrated/Total repositories: 0/104
4. Ran the pulp migration and it completed successfully, I didn't see the "Katello::Errors::Pulp3Error: null value in column "downloaded" violates not-null constraint" error" error.
5- foreman-maintain content migration-stats
# foreman-maintain content migration-stats
Running Retrieve Pulp 2 to Pulp 3 migration statistics
================================================================================
Retrieve Pulp 2 to Pulp 3 migration statistics:
API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache.
============Migration Summary================
Migrated/Total RPMs: 103488/113108
Migrated/Total errata: 65255/65320
Migrated/Total repositories: 104/104
6- Verified the fixed in the package
# rpm -qa|grep "python3-pulp-2to3-migration-0.11.2-1.el7pc.noarch"
python3-pulp-2to3-migration-0.11.2-1.el7pc.noarch
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 (Satellite 6.9.4 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/RHBA-2021:2948
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 (Satellite 6.9.4 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/RHBA-2021:2948