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

Elemental package RMT support without SCC Reg Code #586

Open
peteingithub opened this issue Oct 15, 2024 · 5 comments
Open

Elemental package RMT support without SCC Reg Code #586

peteingithub opened this issue Oct 15, 2024 · 5 comments
Labels
enhancement New feature or request question Further information is requested triaged The team has reviewed the issue

Comments

@peteingithub
Copy link

Would it be possible to have EIB pull elemental-register and elemental-system-agent from an RMT server if stated by additionalRepos? This way SL Micro packages could be installed without an SCC reg code.

@peteingithub peteingithub changed the title Elemental components RMT support without SCC Reg Code Feature Request: Elemental package RMT support without SCC Reg Code Oct 15, 2024
@atanasdinov
Copy link
Contributor

This shouldn't have anything to do with Elemental per se. Excuse my ignorance, however, if you supply an additional repository hosting said packages, the resolution should still find them from there?

@atanasdinov
Copy link
Contributor

Oh, nevermind. You're referring to the latest validation changes which prevents it:

UserMessage: fmt.Sprintf("Operating system package registration code field must be defined when using Elemental "+

@jdob jdob changed the title Feature Request: Elemental package RMT support without SCC Reg Code Elemental package RMT support without SCC Reg Code Oct 25, 2024
@jdob jdob added enhancement New feature or request triaged The team has reviewed the issue labels Oct 25, 2024
@dbw7
Copy link
Contributor

dbw7 commented Oct 25, 2024

This is a bit of an edge case because Elemental has special handling in EIB. The easiest solution to this issue is to manually download the elemental RPMs and include them in the EIB RPM configuration directory and then EIB won’t try to pull the elemental packages from any repositories but will still work with the elemental handling.

@dbw7 dbw7 added the question Further information is requested label Oct 25, 2024
@peteingithub
Copy link
Author

peteingithub commented Oct 25, 2024

That sounds like a solution.

I'm still wondering, why does it support the rpm directory to pull the files, but at the same time not an URL where the same files would sit, and which works for anything else? Not to mention the fact that if the URL was a mirrored SLM repo, the package dependencies would also be handled automatically.

@dbw7
Copy link
Contributor

dbw7 commented Oct 29, 2024

Well the support for putting the elemental RPMs in the RPM directory is an intentionally provided alternative to the main flow.

When the elemental RPMs were provided in the internal SL Micro 6.0 repos, we needed to change the way we handled them to support this as opposed to linking to external repositories (what we used to do). Because of this, the validation and need for the registration key was added. But in the scenario where users did not have a key or did not want to use the internal repo, support was added so that the elemental flow in EIB would work if the packages are manually provided as well.

Additionally, the reason that it seems to not work out of the box with the RMT server is specifically because the elemental packages have very specific handling, e.g. we automatically download them when the elemental_config.yaml is provided and they are not expected to be put in the packages section of the EIB definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested triaged The team has reviewed the issue
Projects
None yet
Development

No branches or pull requests

4 participants