Bug 1374184 - [dev-preview-int] Cannot set memory/cpu request on DC
Summary: [dev-preview-int] Cannot set memory/cpu request on DC
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Deployments
Version: 3.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: zhou ying
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-08 08:18 UTC by Josef Karasek
Modified: 2016-09-08 11:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-08 11:13:02 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Josef Karasek 2016-09-08 08:18:17 UTC
Description of problem:
Memory(512Mi)/cpu("1") requested values specified in dc.spec.template.containers.resources.requests are ignored even though they fit in the limit range 'resource-limits'.

Version-Release number of selected component (if applicable):
$ oc version
oc v1.3.0-rc1
kubernetes v1.3.0+52492b4
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://api.preview.openshift.com:443
kubernetes v1.2.0-36-g4a3f9c5

How reproducible:


Steps to Reproduce:
1. create deployment config with following resource request:
          resources:
            limits:
              cpu: 1
              memory: 512Mi
            requests:
              cpu: 1
              memory: 512Mi
2. oc deploy <name> --latest

Actual results:
oc describe pod <name>
...
    Limits:
      cpu:	1
      memory:	512Mi
    Requests:
      cpu:		60m
      memory:		307Mi
...

Expected results:
    Limits:
      cpu:	1
      memory:	512Mi
    Requests:
      cpu:		1
      memory:		512Mi


Additional info:

Comment 1 Xingxing Xia 2016-09-08 09:13:27 UTC
Seems not an issue in Online because it has ClusterResourceOverrideConfig. See https://bugzilla.redhat.com/show_bug.cgi?id=1330238#c8 result.
But if customer easily meets the confusion like you, could request improvement about Doc/usage prompt about this Override, somewhere like in related page on web console.

Comment 2 Josef Karasek 2016-09-08 10:57:51 UTC
Got it. Not a bug. Thanks for clarifying!


Note You need to log in before you can comment on or make changes to this bug.