[jbosstools-issues] [JBoss JIRA] (JBIDE-25280) Edit resource limits wizard: validate resource requests & limits
Andre Dietisheim (JIRA)
issues at jboss.org
Mon Oct 23 08:35:00 EDT 2017
Andre Dietisheim created JBIDE-25280:
----------------------------------------
Summary: Edit resource limits wizard: validate resource requests & limits
Key: JBIDE-25280
URL: https://issues.jboss.org/browse/JBIDE-25280
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: openshift
Affects Versions: 4.5.1.AM3
Reporter: Andre Dietisheim
steps:
# ASSERT: make sure that you have an application with a service, replication controller/deployment config running in OpenShift (ex. create one using the nodejs-mongo-persistent template)
# EXEC: in OpenShift explorer: select the service for your application and pick "Edit resource limit" in the context menu for it
# ASSERT: "Edit resource limit" dialog shows up
# EXEC: set Memory > Request to 1024 MB
# EXEC: set Memory > Limit to 512 MB
# EXEC: "Finish" the wizard
Result:
The wizard errors telling you that the limit must be equal or greater than the request:
!error-limit-must-be-equal-or-greater-than-request.png!
In the Eclipse log you find the following:
{code}
com.openshift.restclient.OpenShiftException: Exception trying to PUT https://192.168.64.12:8443/oapi/v1/namespaces/nodejs/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
at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.createOpenShiftException(ResponseCodeInterceptor.java:114)
at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:65)
at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)
at okhttp3.RealCall.execute(RealCall.java:57)
at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:258)
at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:222)
at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:210)
at com.openshift.internal.restclient.DefaultClient.update(DefaultClient.java:316)
at org.jboss.tools.openshift.core.connection.Connection.updateResource(Connection.java:451)
at org.jboss.tools.openshift.internal.ui.wizard.common.EditResourceLimitsHandler$EditResourceLimitsWizard$1.run(EditResourceLimitsHandler.java:117)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list