Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Rpm migration #105

Merged
merged 6 commits into from
Mar 3, 2020
Merged

Rpm migration #105

merged 6 commits into from
Mar 3, 2020

Conversation

goosemania
Copy link
Member

@goosemania goosemania commented Feb 21, 2020

From all RPM content, only RPM packages are migrated at the moment.

Copy link
Member

@ipanova ipanova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pulp2 rpm and errata models lgtm!

pulp2_type = 'erratum'

class Meta:
default_related_name = 'erratum_detail_model'
Copy link
Member

@ipanova ipanova Feb 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@goosemania we need to add here properties expected_size, expected_digests, relative_path_for_content_artifact because later code would fail whenever it will try to access those. As far as i understood we won't really use them since errata will be split in pulp3, so we'd just need to return none or {}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 I hoped errata migration code will take care of that, since I can't test errata now.

setup.py Outdated
@@ -36,7 +36,8 @@
],
'migrators': [
'iso = pulp_2to3_migration.app.plugin.iso.migrator:IsoMigrator',
'docker = pulp_2to3_migration.app.plugin.docker.migrator:DockerMigrator',
# 'docker = pulp_2to3_migration.app.plugin.docker.migrator:DockerMigrator',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's is the reason this is commented out? please make sure it is uncommented when you merge

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's commented out because it doesn't work for the pulpcore master branch (does_batch issue) + it was not possible to install it at some point.
Actually, maybe now it's installable since the pulpcore version in pulp_container has been fixed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@goosemania goosemania changed the title [DO NOT MERGE] Rpm migration Rpm migration Feb 28, 2020
# ensure that the base_path does not end with / in Pulp 3, it's often present in Pulp 2.
base_path = pulp2_config.get(
'relative_url', pulp2distributor.pulp2_repo_id)
if base_path.endswith('/'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about using base_path.rstrip('/')?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@ipanova
Copy link
Member

ipanova commented Mar 3, 2020

@goosemania thank you, these changes make sense. please address minor comments and go ahead and merge! 🌴 🍺

@goosemania goosemania merged commit b4c8b54 into pulp:master Mar 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants