Skip to content

Conversation

ggainey
Copy link
Contributor

@ggainey ggainey commented Sep 7, 2025

No description provided.

@ggainey ggainey marked this pull request as draft September 7, 2025 15:04
@ggainey
Copy link
Contributor Author

ggainey commented Sep 7, 2025

Cross-domain checks needed. More importantly (and harder) - the multi-table-nature of Exporter/PulpExporter will require significant re-architecting to have cross-domain-uniqueness work. Behavior in this PR is "creating an Exporter or Importer 'consumes' that name across the Pulp instance". Given the real-world usecases for import/export (specifically, this is an instance-administrator-only function) - may be worth accepting this fix "now", and letting untangling that issue be a future piece of work.

The current test cases and workflows cover "domain-enabled to domain-enabled" and "no-domain to no-domain" tests. Test cases for the mixtures (domain-up/no-domain-down and no-domain-up/domain-down) require multiple Pulp instance booted with different settings.

@ggainey
Copy link
Contributor Author

ggainey commented Sep 8, 2025

Current state includes doc, enabling FSExporter, and addresses the unique-constraint Fun.

@ggainey ggainey force-pushed the 747_pie_domains branch 2 times, most recently from cb454d5 to e1b0d9c Compare September 8, 2025 21:39
@mdellweg
Copy link
Member

mdellweg commented Sep 9, 2025

Looks good so far!

@ggainey ggainey force-pushed the 747_pie_domains branch 6 times, most recently from 162df37 to 83223b9 Compare September 14, 2025 02:07
@github-actions github-actions bot removed the no-issue label Sep 14, 2025
@ggainey ggainey force-pushed the 747_pie_domains branch 2 times, most recently from d2672de to 59015ab Compare September 14, 2025 09:33
@ggainey ggainey marked this pull request as ready for review September 14, 2025 09:59
@ggainey ggainey requested a review from mdellweg September 14, 2025 09:59
Comment on lines +41 to +46
# IF we're domain-enabled:
# REPLACE "their" domain-id with ours, if there is one.
# If not, INSERT "our" domain-id into the path in the right place.
# Otherwise:
# REMOVE their domain-id if there is one.
# Do this before letting QMR run, since it will replace "their" domain-id with "ours"
Copy link
Member

Choose a reason for hiding this comment

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

Could we remove the domain on export if it exists and then always expect there is none on import?

(I think this will not only produce smaller files, but also produce a bit more consistent results.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That just splits the work into "half on export, half on import" - one ends up doing the same amount of work. And "smaller" by removing domain-ids, when we're export artifacts, is lost in the noise.

Copy link
Member

Choose a reason for hiding this comment

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

This is certainly not a deal breaker.
I just thought information that is not even in the export can never create confusion on import.
And it would be "more consistent" if non-domain-enabled and domain-enabled systems produced the same format.

@ggainey ggainey merged commit ba925da into pulp:main Sep 15, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants