Project

Profile

Help

Issue #1954

closed

The distribution storage path migration fails when variant is not in the document.

Added by jortel@redhat.com almost 8 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
2.8.3
Platform Release:
2.8.5
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 3
Quarter:

Description

Migration to pulp_docker.plugins.migrations version 2 complete.
Applying pulp_puppet.plugins.migrations version 4
Migration to pulp_puppet.plugins.migrations version 4 complete.
Applying pulp_puppet.plugins.migrations version 5
***Note. You may want to re-publish the list of repos found in /tmp/repos_to_republish.txt.
This migration fixed an issue with modules installation related to wrong puppet_module name.
Migration to pulp_puppet.plugins.migrations version 5 complete.
Applying pulp_rpm.plugins.migrations version 28
Applying migration pulp_rpm.plugins.migrations.0028_standard_storage_path failed.

Halting migrations due to a migration failure.
'variant'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 193, in main
return _auto_manage_db(options)
File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 256, in _auto_manage_db
migrate_database(options)
File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 124, in migrate_database
update_current_version=not options.test)
File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 186, in apply_migration
migration.migrate()
File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0028_standard_storage_path.py", line 17, in migrate
migration()
File "/usr/lib/python2.7/site-packages/pulp/plugins/migration/standard_storage_path.py", line 262, in call
for unit in chain(*self.plans):
File "/usr/lib/python2.7/site-packages/pulp/plugins/migration/standard_storage_path.py", line 188, in iter
unit.new_path = self._new_path(unit)
File "/usr/lib/python2.7/site-packages/pulp/plugins/migration/standard_storage_path.py", line 165, in _new_path
digest = unit.key_digest()
File "/usr/lib/python2.7/site-packages/pulp/plugins/migration/standard_storage_path.py", line 338, in key_digest
for key, value in sorted(self.key.items()):
File "/usr/lib/python2.7/site-packages/pulp/plugins/migration/standard_storage_path.py", line 319, in key
return dict([(k, self.document[k]) for k in self.plan.key_fields])
KeyError: 'variant'

Actions #1

Updated by jortel@redhat.com almost 8 years ago

This needs to be fixed in the Distribution migration instead of the platform (core) migration code because the default value is unit/field specific.

Actions #2

Updated by jortel@redhat.com almost 8 years ago

  • Project changed from Pulp to RPM Support
Actions #3

Updated by bmbouter almost 8 years ago

  • Subject changed from The distribution storage path migration fails when varient is not in the document. to The distribution storage path migration fails when variant is not in the document.
Actions #4

Updated by dkliban@redhat.com almost 8 years ago

  • Triaged changed from No to Yes
Actions #5

Updated by jortel@redhat.com almost 8 years ago

  • Status changed from ASSIGNED to POST
Actions #6

Updated by jortel@redhat.com almost 8 years ago

  • Status changed from POST to MODIFIED
Actions #7

Updated by semyers almost 8 years ago

  • Platform Release set to 2.8.5
Actions #8

Updated by semyers almost 8 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by pthomas@redhat.com almost 8 years ago

  • Status changed from 5 to 6

Verified
1. Synced kickstart repo in 2.7
2. Upgraded to 2.8.5
3. Kickstarted vms using the synced repo

Actions #10

Updated by semyers almost 8 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE
Actions #12

Updated by bmbouter about 6 years ago

  • Sprint set to Sprint 3
Actions #13

Updated by bmbouter about 6 years ago

  • Sprint/Milestone deleted (21)
Actions #14

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF