-
Notifications
You must be signed in to change notification settings - Fork 32
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
New Package Request: snmpd #1105
Comments
Have you tried running snmpd in a container? |
snmpd in a container does not have access to the /proc and /sys filesystem of the physical system. There have been some hacks in the past were people tried to patch net-snmpd to mount the host /proc filesystem in the container and then modify the code of net-snmpd to access the mounted /proc filesystem, but this is more a hack then a real solution.(https://github.com/digiwhite1980/snmpd). |
Ok, then this might be a good candidate for an optional sysext. |
Hi @jhaprins. I've been working on a tool to generate systemd-sysexts (flatcar/scripts@eb2f3d5). You should be able to follow the following workflow and install snmpd: In the SDK container
In your build directory you should see snmpd.raw. You could upload this to a remote server and then do something like this for your butane config:
and transpile it to an ignition configuration to use (https://www.flatcar.org/docs/latest/provisioning/config-transpiler/) |
Would something like For the systemd-sysext image built in the above way you would have to rebuild it for every Flatcar release, so you have to disable auto-updates to be able to update both at the same time. We don't have a good way to build independent systemd-sysext images with a prefix like |
krishjainx, When trying to build I get a few errors on the first command, is this normal? sdk@flatcar-sdk-all-3510_0_0_os-stable-3510_2_4-nightly-20230706-21 ~/trunk/src/scripts $ ./build_packages Performing Global Updates !!! Error fetching binhost package info from 'https://mirror.release.flatcar-linux.net/sdk/amd64/3510.0.0/toolchain' !!! Error fetching binhost package info from 'https://mirror.release.flatcar-linux.net/sdk/amd64/3510.0.0/pkgs'
!!! Error fetching binhost package info from 'https://mirror.release.flatcar-linux.net/sdk/amd64/3510.0.0/toolchain' !!! Error fetching binhost package info from 'https://mirror.release.flatcar-linux.net/sdk/amd64/3510.0.0/pkgs' Doing a full bootstrap via crossdev |
Yup, that is normal @jhaprins . You could switch to the latest alpha and then ./build_packages would just pull in the binary packages instead of building it locally |
I have checked out the latest stable because I wanted to make sure that the things I build are compatible with the version running on the hosts. But I'm also wandering what will happen. Do I need to rebuild the systemd-extents every time an update is being released? |
Currently you do have to rebuild the systemd-sysext every time an update is released (we're looking to change this on the update side). However, if you have a static binary then it should not need to be rebuilt. I think net-snmp can be built statically, if it isn't already you could modify the ebuild here: ../third_party/portage-stable/net-analyzer/net-snmp |
took a few days because of jumping through hoops that were not expected etc. But now I'm halfway your recipe and now I'm failing on the build_image script. ` Performing full device TRIM /dev/loop0 (128.00MiB) ... Label: OEM WARNING: failed to open /dev/btrfs-control, skipping device registration: No such file or directory Trying to build the latest alpha now because this has the script that I need to create the sysect. Jan Hugo |
Searching a bit on the Interwebs tells me that BTRFS support has been dropped from some Linux distributions (RHEL from 7.4 onwards). Installed an AlmaLinux 8.7 on the build system I quickly created. This might be the issue. |
Hmm, would you like to ask me on matrix (you can use element). I am
@Krishjain on it. It would be easier to debug and I don't want to create
noise here
…On Tue, Jul 11, 2023, 22:03 Jan Hugo Prins ***@***.***> wrote:
Searching a bit on the Interwebs tells me that BTRFS support has been
dropped from some Linux distributions. Installed an AlmaLinux 8.7 on the
build system I quickly created. This might be the issue.
—
Reply to this email directly, view it on GitHub
<#1105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR4RDLI34TGU7EZPDCH7THTXPV555ANCNFSM6AAAAAAZ5QEUKY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Using a distribution with BTRFS support like Oracle Linux with UEK seems to have solved this. @jhaprins could you please update us on your progress? |
In the latest Alpha versions of Flatcar I have been able to build the snmpd.raw sysext image. And indeed, the main issue I was having is that I needed a kernel with BTRFS support. |
Getting the whole sysext tooling chain into stable would be really great.
|
Package name and purpose
We want to use flatcar to build the underlay of a new to build K3S cluster. To monitor the underlay we need something to get metrics from the underlay. My first instinct would be to start monitoring with snmp, but snmpd is not installed / available.
Impact of adding this package to the Flatcar OS image
SNMPd is a service that is well maintained and understood by the Linux administrator community. Though old, the software is still very well maintained and included in all relevant operating systems.
The package improves on the following core values:
The package will increase the image size by: 1 MBytes.
How might this package increase the attack surface:
Benefits of adding this package
This package provides a standard way to monitor the telemetry of the physical machine.
Additional information
[ Please add any information that does not fit into any of the above sections here ]
The text was updated successfully, but these errors were encountered: