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

OKD documentation mentions OS extensions, needs to be reworked to use repos instead #1371

Open
smuda opened this issue Oct 23, 2022 · 1 comment

Comments

@smuda
Copy link

smuda commented Oct 23, 2022

Describe the bug

(This is honestly more of a call for help than a formal bug report, since I have a feeling that I'm missing a logical step somewhere.)

I cannot install usbguard according to documentation. When nodes are restarting after machine config change, they will not come back up. The journal states that the package cannot be found.

rpm-ostree[5653]: client(id:machine-config-operator dbus:1.91 unit:crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope uid:0) added; new total=1
rpm-ostree[5653]: Locked sysroot
rpm-ostree[5653]: Initiated txn UpdateDeployment for client(id:machine-config-operator dbus:1.91 unit:crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope uid:0): /org/projectatomic/rpmostree1/fedora_coreos
rpm-ostree[5653]: Process [pid: 6230 uid: 0 unit: crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope] connected to transaction progress
rpm-ostree[5653]: Librepo version: 1.14.4 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.82.0 OpenSSL/3.0.5 zlib/1.2.11 brotli/1.0.9 libidn2/2.3.3 libpsl/0.21.1 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.46.0 OpenLDAP/2.6.3)
rpm-ostree[5653]: Preparing pkg txn; enabled repos: ['coreos-extensions'] solvables: 0
rpm-ostree[5653]: Txn UpdateDeployment on /org/projectatomic/rpmostree1/fedora_coreos failed: Packages not found: usbguard
rpm-ostree[5653]: Unlocked sysroot
rpm-ostree[5653]: Process [pid: 6230 uid: 0 unit: crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope] disconnected from transaction progress
rpm-ostree[5653]: client(id:machine-config-operator dbus:1.91 unit:crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope uid:0) vanished; remaining=0
rpm-ostree[5653]: In idle state; will auto-exit in 64 seconds
rpm-ostree[5653]: client(id:machine-config-operator dbus:1.92 unit:crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope uid:0) added; new total=1
rpm-ostree[5653]: Locked sysroot
rpm-ostree[5653]: Initiated txn Cleanup for client(id:machine-config-operator dbus:1.92 unit:crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope uid:0): /org/projectatomic/rpmostree1/fedora_coreos
rpm-ostree[5653]: Process [pid: 6246 uid: 0 unit: crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope] connected to transaction progress
rpm-ostree[5653]: Txn Cleanup on /org/projectatomic/rpmostree1/fedora_coreos successful
rpm-ostree[5653]: Unlocked sysroot
rpm-ostree[5653]: Process [pid: 6246 uid: 0 unit: crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope] disconnected from transaction progress
rpm-ostree[5653]: client(id:machine-config-operator dbus:1.92 unit:crio-951c19688366e10d58fa19067d28da9da5c6a4e1296e97c3d0ca68232451dfa4.scope uid:0) vanished; remaining=0
rpm-ostree[5653]: In idle state; will auto-exit in 60 seconds

Version
Bare metal installation.
Last tested with 4.11.0-0.okd-2022-10-15-073651 but I've never gotten it to work with 4.10 or 4.11.

How reproducible
Every time.

Log bundle
must-gather.local.3609476246868615740.zip

More information
I honestly don't understand how I'm supposed to install usbguard. The OKD docs instructs to add the extension usbguard via machine config. Even the example in Bugzilla 1877448 includes usbguard. It seems the FCOS folks think they have done their part.

The only strange thing I can find in the log is that the only enabled repo is coreos-extensions but there is no such repo under /etc/yum.repos.d, which I've gotten the impression rpmtree uses and that "extensions" in a machine config really is a rpmtree install command. Please correct me if I'm all wrong.

Since the same dokumentation works nicely on OpenShift, perhaps the OKD documentation is a copy of the OCP docs but missing something OKD-specific?

@vrutkovs
Copy link
Member

Yeah, its a docs bug. There are no extensions shipped with OKD.

The only strange thing I can find in the log is that the only enabled repo is coreos-extensions but there is no such repo under /etc/yum.repos.d, which I've gotten the impression rpmtree uses and that "extensions" in a machine config really is a rpmtree install command. Please correct me if I'm all wrong.

Correct, in RHCOS there are no public repos, so it comes with additional coreos-extensions local repo which has necessary RPMs. In OKD users should be able to enable any Fedora repo and install any RPM they'd like. The only caveat is that it may block further upgrade, but rpm-ostree reset would help in that situation

@vrutkovs vrutkovs changed the title Cannot install usbguard according to OKD documentation OKD documentation mentions OS extensions, needs to be reworked to use repos instead Oct 24, 2022
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

2 participants