Project

Profile

Help

Issue #8195

closed

NoneType' object has no attribute 'cast on metadata_checksum_type

Added by jsherril@redhat.com almost 4 years ago. Updated almost 4 years 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

Actions #2

Updated by jsherril@redhat.com almost 4 years ago

The user did confirm that they deleted repos in between migrations

Actions #3

Updated by ttereshc almost 4 years ago

  • Project changed from Pulp to Migration Plugin
Actions #4

Updated by ttereshc almost 4 years ago

  • Sprint/Milestone set to 0.9.0
Actions #5

Updated by ttereshc almost 4 years ago

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

Updated by ttereshc almost 4 years 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
Actions #7

Updated by ttereshc almost 4 years ago

  • Status changed from ASSIGNED to POST

Added by ttereshc almost 4 years ago

Revision 1e98eef8 | View on GitHub

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

Added by ttereshc almost 4 years ago

Revision 1e98eef8 | View on GitHub

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

Added by ttereshc almost 4 years ago

Revision 1e98eef8 | View on GitHub

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

Actions #8

Updated by ttereshc almost 4 years ago

  • Status changed from POST to MODIFIED
Actions #10

Updated by ttereshc almost 4 years ago

  • Sprint/Milestone changed from 0.9.0 to 0.8.0
Actions #11

Updated by pulpbot almost 4 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF