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

provide a mapping between repository ID and repository location #1138

Open
olafhering opened this issue May 3, 2024 · 1 comment
Open

provide a mapping between repository ID and repository location #1138

olafhering opened this issue May 3, 2024 · 1 comment

Comments

@olafhering
Copy link
Member

One of the maintenance tasks of an RMT server is to find potentially stale repositories. This can be done as shown in issue #1136. One could parse the rmt-cli mirror [args] output, to get a list of "active" repositories. Everything else is potentially stale.

It would be nice to have an API to query the download locations. Perhaps as additional column in the rmt-cli repos [custom] list --cvs output. This removes to the need to parse a logfile to find the same information. In the end, rmt-cli already knows upfront where repository content will be stored.

@olafhering
Copy link
Member Author

There is a slight regression in 2.17, compared to 2.15 and earlier:

In 2.15 the output of rmt-cli mirror for each repository was: INFO -- : Mirroring repository $something to /usr/share/rmt/public/repo/$somewhere, followed by success of failure messages.

In 2.17 the output of rmt-cli mirror changed. The lines INFO -- : Mirroring repository $something to /usr/share/rmt/public/repo/$somewhere are only shown if the URL can be reached. Like not right now, because $dist ist down.

As a result the mapping about what is enabled and what exists on disk is out of sync, in external tooling.

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

No branches or pull requests

1 participant