Bug 2110180

Summary: Error: failed to parse kubelet flag: unknown flag: --network-plugin
Product: [Fedora] Fedora Reporter: hiraku.sugiura
Component: kubernetesAssignee: Anthony Rabbito <hello>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: bradley.g.smith, eparis, go-sig, hello, jbrooks, jcajka, jchaloup, stclairt, strigazi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: kubernetes-1.24.1-7.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-03 01:27:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hiraku.sugiura 2022-07-24 09:33:45 UTC
I got "Error: failed to parse kubelet flag: unknown flag: --network-plugin" when execute `kubeadm init`.

"--network-plugin" was setted in kubeadm.conf:

Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/usr/libexec/cni"

Comment 1 hiraku.sugiura 2022-07-25 03:35:08 UTC
And --cni-conf-dir and --cni-bin-dir are illegal arguments in kubernetes 1.24.

Comment 2 Anthony Rabbito 2022-07-25 14:08:22 UTC
Hello,

Thanks for bringing this to attention. I will work on getting this fixed.

Comment 3 Fedora Update System 2022-07-25 19:46:09 UTC
FEDORA-2022-3efc2a74cf has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-3efc2a74cf

Comment 4 Anthony Rabbito 2022-07-25 19:47:32 UTC
hiraku,

Feel free to try out the bodhi advisory posted above.

Thanks,
Anthony

Comment 5 Fedora Update System 2022-07-25 21:01:00 UTC
FEDORA-2022-ee81809570 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-ee81809570

Comment 6 Fedora Update System 2022-07-26 15:54:37 UTC
FEDORA-2022-ee81809570 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-ee81809570`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-ee81809570

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-08-03 01:27:06 UTC
FEDORA-2022-ee81809570 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.