Bug 1745919
Summary: | set invalid value for reserved resource in kubeletconfig will succeed | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | MinLi <minmli> | |
Component: | Node | Assignee: | Harshal Patil <harpatil> | |
Status: | CLOSED ERRATA | QA Contact: | MinLi <minmli> | |
Severity: | medium | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 4.2.0 | CC: | aos-bugs, erich, jokerman, mpatel, rkrawitz, rphillips, schoudha | |
Target Milestone: | --- | |||
Target Release: | 4.6.0 | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause: invalid values were allowed for cpu and memory reservation
Consequence: kubelet refuse to start with invalid values for resource reservation
Fix: Parse the values to verify that they are of right type and within the acceptable limits.
Result: Invalid values for the resource reservation will not be accepted
|
Story Points: | --- | |
Clone Of: | ||||
: | 1855543 (view as bug list) | Environment: | ||
Last Closed: | 2020-10-27 15:54:19 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1855543 |
Description
MinLi
2019-08-27 08:41:47 UTC
besides negative value, other invalid value also tip no error, such as non-digital, fractional @Robert Krawitz I found nothing about this kubeletconfig update in kubelet log. And machineconfigpool worker is always in updating status after apply this kubeletconfig. $ oc get machineconfigpool NAME CONFIG UPDATED UPDATING DEGRADED master rendered-master-16073f8c7a50faadb9277573fadb7ebc True False False worker rendered-worker-70387f4bb2bf331216124c30d4e0434c False True False @Robert Krawitz, how do you check the kubelet log? Is it "$ journalctl -u kubelet.service "? For I reproduce the bug, yet not find the log as you pasted above. (In reply to MinLi from comment #7) > @Robert Krawitz, > how do you check the kubelet log? Is it "$ journalctl -u kubelet.service "? > For I reproduce the bug, yet not find the log as you pasted above. Yes that is how you check that log. I will look into this in upcoming sprint. verified with version : 4.6.0-0.nightly-2020-07-05-192128 $ oc get kubeletconfig -o yaml apiVersion: v1 items: - apiVersion: machineconfiguration.openshift.io/v1 kind: KubeletConfig metadata: creationTimestamp: "2020-07-06T03:14:48Z" generation: 2 managedFields: - apiVersion: machineconfiguration.openshift.io/v1 fieldsType: FieldsV1 fieldsV1: f:status: .: {} f:conditions: {} manager: machine-config-controller operation: Update time: "2020-07-06T03:16:52Z" - apiVersion: machineconfiguration.openshift.io/v1 fieldsType: FieldsV1 fieldsV1: f:spec: .: {} f:kubeletConfig: .: {} f:kubeReserved: {} f:systemReserved: {} f:machineConfigPoolSelector: .: {} f:matchLabels: .: {} f:custom-kubelet: {} manager: oc operation: Update time: "2020-07-06T03:16:52Z" name: set-reserved resourceVersion: "41026" selfLink: /apis/machineconfiguration.openshift.io/v1/kubeletconfigs/set-reserved uid: 5eb44ae4-2577-4006-b5f4-238c2bd7fb6b spec: kubeletConfig: kubeReserved: cpu: q2asdm memory: qwqw200G systemReserved: cpu: asdas00m memory: sdfsdfG machineConfigPoolSelector: matchLabels: custom-kubelet: set-reserved status: conditions: - lastTransitionTime: "2020-07-06T03:14:48Z" message: 'Error: KubeletConfiguration: cpu reservation value cannot be negative in kubeReserved' status: "False" type: Failure - lastTransitionTime: "2020-07-06T03:16:52Z" message: 'Error: KubeletConfiguration: invalid value specified for cpu reservation in kubeReserved, q2asdm' status: "False" type: Failure kind: List metadata: resourceVersion: "" selfLink: "" Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4196 |