{"record":{"id":"a659674cd63ec878","repo":"kubernetes/kops","slug":"error-installing-s-v-s","errorCode":null,"errorMessage":"error installing %s (%v): %s","messagePattern":"error installing (.+?) \\((.+?)\\): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/nodeup/command.go","lineNumber":697,"sourceCode":"// simply absent from a freshly booted node.\n//\n// The package is pinned to the running kernel release because an unpinned install\n// resolves to the newest build in the repo, whose modules land under a /lib/modules\n// directory we have not booted, leaving the running kernel just as empty.\n//\n// TODO: Move to tasks architecture along with loadKernelModules. It has to happen\n// here for now because the modprobes above run before any task does.\nfunc installKernelModulesExtra() error {\n\trelease, err := os.ReadFile(\"/proc/sys/kernel/osrelease\")\n\tif err != nil {\n\t\treturn fmt.Errorf(\"error reading kernel release: %w\", err)\n\t}\n\n\tpkg := \"kernel-modules-extra-\" + strings.TrimSpace(string(release))\n\tklog.Infof(\"Installing %s\", pkg)\n\tcmd := exec.Command(\"/usr/bin/dnf\", \"install\", \"-y\", pkg)\n\tif output, err := cmd.CombinedOutput(); err != nil {\n\t\treturn fmt.Errorf(\"error installing %s (%v): %s\", pkg, err, string(output))\n\t}\n\treturn nil\n}\n\n// getRegion queries the cloud provider for the region.\nfunc getRegion(ctx context.Context, bootConfig *nodeup.BootConfig) (string, error) {\n\tswitch bootConfig.CloudProvider {\n\tcase api.CloudProviderAWS:\n\t\tregion, err := awsbootstrap.RegionFromMetadata(ctx)\n\t\tif err != nil {\n\t\t\treturn \"\", err\n\t\t}\n\n\t\treturn region, nil\n\t}\n\n\treturn \"\", nil\n}","sourceCodeStart":679,"sourceCodeEnd":715,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/nodeup/command.go#L679-L715","documentation":"Error \"error installing %s (%v): %s\" thrown in kubernetes/kops.","triggerScenarios":"Thrown at upup/pkg/fi/nodeup/command.go:697 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T12:17:11.808Z"}