[jbosstools-issues] [JBoss JIRA] (JBIDE-25091) Edit resource limits wizard: Duplicate value "MiB" in Memory Limit & Request
Andre Dietisheim (JIRA)
issues at jboss.org
Thu Oct 19 16:44:00 EDT 2017
[ https://issues.jboss.org/browse/JBIDE-25091?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13479620#comment-13479620 ]
Andre Dietisheim edited comment on JBIDE-25091 at 10/19/17 4:43 PM:
--------------------------------------------------------------------
according to https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory memory settings are in bytes basically. So it looks like absence of units would mean that the value is in bytes.
This is confirmed by the following 2 resource limit requests:
{code}
"resources":{
"limits":{
"memory":"512Mi"
},
"requests":{
"memory":"5"
}
},
{code}
Is accepted while the following one is refused:
{code}
"resources":{
"limits":{
"memory":"512"
},
"requests":{
"memory":"5Mi"
}
}
{code}
The error message states that the request has to be smaller or equal to the limit, which confirms that *no unit* (512) is smaller than *MiB* unit (5):
{code}
Unable to update resource limits for nodejs-mongo-persistent
Exception trying to PUT https://192.168.64.12:8443/oapi/v1/namespaces/node/deploymentconfigs/nodejs-mongo-persistent response code:
422 DeploymentConfig "nodejs-mongo-persistent" is invalid:
spec.template.spec.containers[0].resources.limits: Invalid value: "512": must be greater than or equal to memory request
{code}
was (Author: adietish):
according to https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#meaning-of-memory memory settings are in bytes basically. So it looks like absence of units would mean that the value is in bytes.
This is confirmed by the following 2 resource limit requests:
{code}
"resources":{
"limits":{
"memory":"512Mi"
},
"requests":{
"memory":"5"
}
},
{code}
Is accepted while the following one is refused:
{code}
"resources":{
"limits":{
"memory":"512"
},
"requests":{
"memory":"5Mi"
}
}
{code}
The error message states that the request has to be smaller or equal to the limit, which confirms that *no unit* (512) is smaller than *MiB* unit (5):
{code}
Unable to update resource limits for nodejs-mongo-persistent
Exception trying to PUT https://192.168.64.12:8443/oapi/v1/namespaces/node/deploymentconfigs/nodejs-mongo-persistent response code: 422 DeploymentConfig "nodejs-mongo-persistent" is invalid: spec.template.spec.containers[0].resources.limits: Invalid value: "512": must be greater than or equal to memory request
{code}
> Edit resource limits wizard: Duplicate value "MiB" in Memory Limit & Request
> ----------------------------------------------------------------------------
>
> Key: JBIDE-25091
> URL: https://issues.jboss.org/browse/JBIDE-25091
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.5.1.AM2
> Reporter: Josef Kopriva
> Priority: Minor
> Labels: edit_resource_limits_wizard, openshift_v3
> Fix For: 4.5.x
>
> Attachments: edit-resource-limits.png, image-2017-09-22-13-02-35-216.png, resource-limits-web-console.png
>
>
> When editing memory settings in dialog "Edit resource limits", there is a duplicate value MiB in the Combos for Memory > "Request" and Memory > "Limit":
> !edit-resource-limits.png!
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list