SUSE / container-suseconnect

Provides access to repositories inside containers using the host entitlements
Apache License 2.0
19 stars 16 forks source link

container-suseconnect doesn't do any caching of registration #54

Open fcrozat opened 3 years ago

fcrozat commented 3 years ago

When running SLE Base Image (15 SP3) on a SLES host:

each zypper call results to a container-suseconnect call to "register" the container against SCC. This takes usually between 15 to 20s. This call is not cached at all, even if the repositories were properly added to the container.

For instance, starting from new container:

It seems there is no caching of registration, unlike on a regular SLE system.

Those delays are not visible at all when container-suseconnect is disabled, which is bad as user experience for our customers.

alexandrevicenzi commented 4 months ago

In my test (SP5) the service refresh for container-suseconnect is fast (< 1s).

Caching introduces a potential issue. What if the host system license expires or is revoked? We still need to validate every time container-suseconnect is invoked, which is a call to SCC API and might take a while.