Project

Profile

Help

Issue #8195

NoneType' object has no attribute 'cast on metadata_checksum_type

Added by jsherril@redhat.com 10 months ago. Updated 10 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 90
Quarter:
Q1-2021

Description

NoneType' object has no attribute 'cast
    "traceback": "  File \"/usr/lib/python3.6/site-packages/rq/worker.py\", line 936, in perform_job
    rv = job.perform()
  File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 684, in perform
    self._result = self._execute()
  File \"/usr/lib/python3.6/site-packages/rq/job.py\", line 690, in _execute
    return self.func(*self.args, **self.kwargs)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/tasks/migrate.py\", line 136, in migrate_from_pulp2
    pre_migrate_all_without_content(plan, type_to_repo_ids, repo_id_to_type)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/pre_migration.py\", line 384, in pre_migrate_all_without_content
    repo_id, distributors_repos, distributor_migrators, repo)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/pre_migration.py\", line 556, in pre_migrate_distributor
    needs_new_publication = dist_migrator.needs_new_publication(distributor)
  File \"/usr/lib/python3.6/site-packages/pulp_2to3_migration/app/plugin/rpm/repository.py\", line 105, in needs_new_publication
    current_checksum_type = pulp2distributor.pulp3_publication.cast().metadata_checksum_type

from:

https://community.theforeman.org/t/contentmigration-migration-fails-with-error-katello-nonetype-object-has-no-attribute-cast/21828/10

Associated revisions

Revision 1e98eef8 View on GitHub
Added by ttereshc 10 months ago

Fixed distributor re-run when it was only pre-migrated and then changed

The following situation is fixed now:

  • pre-migration for a distributor happened, but migration did not
  • then pulp2 distributor changed
  • then migration plan was run again

closes #8195 https://pulp.plan.io/issues/8195

Revision 1e98eef8 View on GitHub
Added by ttereshc 10 months ago

Fixed distributor re-run when it was only pre-migrated and then changed

The following situation is fixed now:

  • pre-migration for a distributor happened, but migration did not
  • then pulp2 distributor changed
  • then migration plan was run again

closes #8195 https://pulp.plan.io/issues/8195

Revision 1e98eef8 View on GitHub
Added by ttereshc 10 months ago

Fixed distributor re-run when it was only pre-migrated and then changed

The following situation is fixed now:

  • pre-migration for a distributor happened, but migration did not
  • then pulp2 distributor changed
  • then migration plan was run again

closes #8195 https://pulp.plan.io/issues/8195

History

#2 Updated by jsherril@redhat.com 10 months ago

The user did confirm that they deleted repos in between migrations

#3 Updated by ttereshc 10 months ago

  • Project changed from Pulp to Migration Plugin

#4 Updated by ttereshc 10 months ago

  • Sprint/Milestone set to 0.9.0

#5 Updated by ttereshc 10 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc
  • Sprint set to Sprint 90
  • Quarter set to Q1-2021

#6 Updated by ttereshc 10 months ago

The issue occurs when:

  • pre-migration for a distributor happened, but migration did not
  • then pulp2 distributor changed
  • then migration plan was run again

#7 Updated by ttereshc 10 months ago

  • Status changed from ASSIGNED to POST

#8 Updated by ttereshc 10 months ago

  • Status changed from POST to MODIFIED

#10 Updated by ttereshc 10 months ago

  • Sprint/Milestone changed from 0.9.0 to 0.8.0

#11 Updated by pulpbot 10 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF