Description of problem:
Different errors when trying to modify pod's .spec.container.resources.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Go to pods list
2. Choose one pod (eg. current deployment)
3. Click edit yaml
4. Try to modify container.resources.limits or container.resources.requests
Failed to update django-10-30bqb.
pods "django-10-30bqb" is forbidden: Unable to update quota status: compute-resources ResourceQuota "compute-resources" is invalid: [status.used[limits.cpu]: Invalid value: "-800m": must be greater than or equal to 0, status.used[limits.memory]: Invalid value: "-212Mi": must be greater than or equal to 0]
The same as from invoking oc edit pod/jango-10-30bqb:
# pods "django-10-30bqb" was not valid:
# * spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds`
Derek, should the resourcequota admission plugin even be processing the pod spec on update, since the spec isn't mutable?
ResourceQuota will ignore pod updates in kube 1.3+ with this PR:
Updating a pod container's resources will still cause a validation error.
thanks, can you move to ON_QA once we pull in a level with this fix?
# openshift version
and console got the same error message
Pod "pod-request-limit-valid-3" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds`
with oc edit
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, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.