Project

Profile

Help

Issue #1954

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

Added by jortel@redhat.com over 4 years ago. Updated over 1 year 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'

History

#1 Updated by jortel@redhat.com over 4 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.

#2 Updated by jortel@redhat.com over 4 years ago

  • Project changed from Pulp to RPM Support

#3 Updated by bmbouter over 4 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.

#4 Updated by dkliban@redhat.com over 4 years ago

  • Triaged changed from No to Yes

#5 Updated by jortel@redhat.com over 4 years ago

  • Status changed from ASSIGNED to POST

#6 Updated by jortel@redhat.com over 4 years ago

  • Status changed from POST to MODIFIED

#7 Updated by semyers over 4 years ago

  • Platform Release set to 2.8.5

#8 Updated by semyers over 4 years ago

  • Status changed from MODIFIED to 5

#9 Updated by pthomas@redhat.com over 4 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

#10 Updated by semyers over 4 years ago

  • Status changed from 6 to CLOSED - CURRENTRELEASE

#12 Updated by bmbouter over 2 years ago

  • Sprint set to Sprint 3

#13 Updated by bmbouter over 2 years ago

  • Sprint/Milestone deleted (21)

#14 Updated by bmbouter over 1 year ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF