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

Point Copr repositories to Pulp #3383

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

FrostyX
Copy link
Member

@FrostyX FrostyX commented Aug 23, 2024

Fix #3375

Of course only for Copr projects that has configured to have their storage in Pulp, not all Copr projects.

There are three possible options how to implement this.

  1. The Most straightforward is to not generate repofiles ourselves and let Pulp
    do it. The downside is that we would have to pass additional parameters (it
    is possible though) such as repo priority, module hotfixes attribute, etc,
    and figure out how to count repo downloads
  2. Generate repofiles ourselves, only point to baseurl in Pulp. This IMHO the
    best option for keeping compatibility between storage on the backend and in
    Pulp, so I implement this option in this PR.
  3. Adding a Lighttpd redirect for baseurl of the Pulp-stored projects to Pulp
    content URL. This will be needed in the future to ensure that users don't
    have to re-enable Copr repositories, once those projects are migrated to
    Pulp. But this will be hard to implement, so we decided to do it when the
    time comes.

@FrostyX
Copy link
Member Author

FrostyX commented Aug 26, 2024

I submitted this only as a draft because there was an issue with installing packages from the repositories (even though DNF was able to sync the repository metadata). It turned out to be a bug in Pulp code - pulp/pulp_rpm#3719

I think there is no need to wait until it is fixed, this PR is ready for review.

@FrostyX FrostyX marked this pull request as ready for review August 26, 2024 20:13
@FrostyX FrostyX added the pulp label Aug 28, 2024
@praiskup
Copy link
Member

praiskup commented Sep 2, 2024

Please cover dnf5 copr enable use-case, too

Fix fedora-copr#3375

Of course only for Copr projects that has configured to have their
storage in Pulp, not all Copr projects.

There are three possible options how to implement this.

1. The Most straightforward is to not generate repofiles ourselves and let Pulp
   do it. The downside is that we would have to pass additional parameters (it
   is possible though) such as repo priority, module hotfixes attribute, etc,
   and figure out how to count repo downloads
2. Generate repofiles ourselves, only point to `baseurl` in Pulp. This IMHO the
   best option for keeping compatibility between storage on the backend and in
   Pulp, so I implement this option in this PR.
3. Adding a Lighttpd redirect for `baseurl` of the Pulp-stored projects to Pulp
   content URL. This will be needed in the future to ensure that users don't
   have to re-enable Copr repositories, once those projects are migrated to
   Pulp. But this will be hard to implement, so we decided to do it when the
   time comes.
@FrostyX
Copy link
Member Author

FrostyX commented Sep 24, 2024

Updated PTAL

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

Successfully merging this pull request may close these issues.

Pulp - fix repofiles to point to pulp
2 participants