kubernetes/kops · error
error reading kernel release: %w
Error message
error reading kernel release: %w
What it means
Error "error reading kernel release: %w" thrown in kubernetes/kops.
Source
Thrown at upup/pkg/fi/nodeup/command.go:690
// TODO: Add to /etc/modules-load.d/ ?
return nil
}
// installKernelModulesExtra installs the kernel-modules-extra package matching the
// running kernel. The RHEL10 and Rocky10 images drop it from the iptables-nft
// dependency chain, so nft_compat, the xt_* matches, ip_set and br_netfilter are
// simply absent from a freshly booted node.
//
// The package is pinned to the running kernel release because an unpinned install
// resolves to the newest build in the repo, whose modules land under a /lib/modules
// directory we have not booted, leaving the running kernel just as empty.
//
// TODO: Move to tasks architecture along with loadKernelModules. It has to happen
// here for now because the modprobes above run before any task does.
func installKernelModulesExtra() error {
release, err := os.ReadFile("/proc/sys/kernel/osrelease")
if err != nil {
return fmt.Errorf("error reading kernel release: %w", err)
}
pkg := "kernel-modules-extra-" + strings.TrimSpace(string(release))
klog.Infof("Installing %s", pkg)
cmd := exec.Command("/usr/bin/dnf", "install", "-y", pkg)
if output, err := cmd.CombinedOutput(); err != nil {
return fmt.Errorf("error installing %s (%v): %s", pkg, err, string(output))
}
return nil
}
// getRegion queries the cloud provider for the region.
func getRegion(ctx context.Context, bootConfig *nodeup.BootConfig) (string, error) {
switch bootConfig.CloudProvider {
case api.CloudProviderAWS:
region, err := awsbootstrap.RegionFromMetadata(ctx)
if err != nil {
return "", errView on GitHub (pinned to 4c8573c808)
When it happens
Trigger: Thrown at upup/pkg/fi/nodeup/command.go:690 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/884c0583fd6a7b53.
Report an issue: GitHub.