Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 4822: rename domains with cs- prefix #865

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlsherrill
Copy link
Member

@jlsherrill jlsherrill commented Oct 25, 2024

Summary

This moves all the jobs to one command ./cmd/jobs/main.go that takes the name of the job as an argument.

Deletes the repair_latest and cleanup_versions jobs

Adds a new job 'rename_domains' that renames the red hat domain to 'cs-redhat' if its not already that. Renames all other domains to cs-PREVIOUS_NAME if it doesn't already start with 'cs-'.

The rename process involves:

  1. loading the old name from the db
  2. updating the paths for all the templates in candlepin
  3. updating the content overrides for all the templates in candlepin TODO
  4. updating the domain name in pulp
  5. updating our own domains table

5 is done last so that if the process errors at any point, it can be re-run from the start for that domain simply by re-running the job.

Testing steps

@jlsherrill
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant