minima icon indicating copy to clipboard operation
minima copied to clipboard

Support mirroring content simulating an RMT server

Open srbarrios opened this issue 1 year ago • 2 comments

In order to support a tool custom made for Liberty Linux. We need to simulate the behaviour of a RMT server into out Minima Mirror.

In theory, we are already synchronizing the same channels, but there is some missing piece to make that work.

Let's research about it.

Discussion: https://github.com/uyuni-project/sumaform/pull/1259/files#r1118824998

srbarrios avatar Feb 27 '23 15:02 srbarrios

We don't necessarily need to simulate a RMT server. Being able to mirror it would be enough.

I suspect we will have to create a third kind of entries in minima configuration file, alongside scc: and http:

Bischoff avatar Feb 27 '23 16:02 Bischoff

  • ℹ️ We already mirror all the content as shared in the discussion, see:

http://minima-mirror-bv.mgr.prv.suse.net/repo/SUSE/Updates/ ---> SLL* folders

  • It doesn't make sense to mirror content from a mirror, so it doesn't make sense a new section in our YAML file (RMT is already mirroring content, we can directly use the source origin of that content).

Example: http://minima-mirror-bv.mgr.prv.suse.net/repo/SUSE/Updates/SLL-CB/9/x86_64/update/

  • ⚠️ What we don't support is the query string the HTTP request we are currently doing it includes

This part: ?credentials=SUSE_Liberty_Linux_x86_64

🟢 : https://rmt.scc.suse.de/repo/SUSE/Updates/SLL-CB/9/x86_64/update/?credentials=SUSE_Liberty_Linux_x86_64 ❓ : http://minima-mirror-bv.mgr.prv.suse.net/repo/SUSE/Updates/SLL-CB/9/x86_64/update/?credentials=SUSE_Liberty_Linux_x86_64

  • 💡 My guess is that's the reason why the script was not parsing the content properly, but we need to research it:

image

srbarrios avatar Feb 28 '23 08:02 srbarrios