Skip to content

Conversation

@praveenkumar
Copy link
Member

Looks like in case of 4.12 setting SYSTEM_RESERVED_ES is mandatory, otherwise kubelet start with --system-reserved=cpu=200m,memory=350Mi,ephemeral-storage= and failed with error.

command failed" err="failed to run Kubelet: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP][-+]?[0-9])$'"

This will fix https://issues.redhat.com/browse/OCPBUGS-3758 from crc side.

MCO change: openshift/machine-config-operator@28f062b

@openshift-ci openshift-ci bot requested review from anjannath and cfergeau December 5, 2022 09:13
@praveenkumar
Copy link
Member Author

openshift/machine-config-operator#3381 this change is now part of 4.11 also.

@cfergeau
Copy link
Contributor

cfergeau commented Dec 5, 2022

openshift/machine-config-operator#3381 this change is now part of 4.11 also.

Have you experienced the failure no 4.11? Or only noticed that this was cherry-picked? Can you add this comment to the commit log?
Apart from this
/lgtm

Looks like in case of 4.12 setting `SYSTEM_RESERVED_ES` is mandatory,
otherwise kubelet start with `--system-reserved=cpu=200m,memory=350Mi,ephemeral-storage=`
and failed with error.

```
command failed" err="failed to run Kubelet: quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP][-+]?[0-9])$'"
```

This will fix https://issues.redhat.com/browse/OCPBUGS-3758 from crc
side.

MCO change: openshift/machine-config-operator@28f062b

For release-4.11: openshift/machine-config-operator#3381
@openshift-ci openshift-ci bot removed the lgtm label Dec 5, 2022
@openshift-ci
Copy link

openshift-ci bot commented Dec 5, 2022

New changes are detected. LGTM label has been removed.

@openshift-ci
Copy link

openshift-ci bot commented Dec 5, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from cfergeau by writing /assign @cfergeau in a comment. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@praveenkumar
Copy link
Member Author

Have you experienced the failure no 4.11? Or only noticed that this was cherry-picked?

@cfergeau Yes, I have experienced a failure for 4.11 and then cherry picked.

@praveenkumar praveenkumar merged commit 60357cf into crc-org:master Dec 5, 2022
@cfergeau
Copy link
Contributor

cfergeau commented Dec 5, 2022

I wonder if we should look into using https://github.com/openshift/machine-config-operator/blob/cbd7d9514d6a03c84192058edae7a6ff4f9d6941/pkg/controller/kubelet-config/helpers.go#L435-L480
and https://github.com/openshift/machine-config-operator/blob/cbd7d9514d6a03c84192058edae7a6ff4f9d6941/vendor/k8s.io/kubelet/config/v1beta1/types.go#L596-L602

The end result seems similar to what we want, but there is a fallback when SYSTEM_RESERVED_ES is not specified. Probably more future-proof than the approach we are taking right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants