Description of problem: Description of quota does not show any value when template is deployed using REST API call. ~~~ [root@master-0 ~]# oc get quota NAME AGE compute-resources 56m platform-resources 56m ~~~ ~~~ [root@master-0 ~]# oc describe quota Name: compute-resources Namespace: exampleproj2 Resource Used Hard -------- ---- ---- Name: platform-resources Namespace: exampleproj2 Resource Used Hard -------- ---- ---- ~~~ Version-Release number of selected component (if applicable): - Openshift Container Platform 3.9 How reproducible: Reproducible Steps to Reproduce: 1. Create a template which will create a project and apply ResourceQuota 2. Create a secret to provide value of environment variable while templateinstance creation 3. Create the templateinstance using REST API call. Actual results: ~~~ Name: compute-resources Namespace: new Resource Used Hard -------- ---- ---- Name: platform-resources Namespace: new Resource Used Hard -------- ---- ---- ~~~ Expected results: ~~~ Name: compute-resources Namespace: new Resource Used Hard -------- ---- ---- limits.memory 0 1Gi requests.cpu 0 1 Name: platform-resources Namespace: new Resource Used Hard -------- ---- ---- pods 0 30 persistentvolumeclaims 0 10 requests.storage 0 500Gi ~~~ Additional info:
4 questions: 1) Does the template instance claim to have applied successfully? (retrieve the templateinstance after you've created it and examine it, it should report some status). 2) are any of the other objects from the template (e.g. the rolebindings) being created? 3) Are you able to successfully instantiate other objects from a template instance using this workflow? (e.g. a template that just creates a pod or something else) 4) Are you able to directly create these quota objects using the same token?
Hi Ben, Please find my answers below. Ben> Does the template instance claim to have applied successfully? Arnab> Yes ~~~ status: conditions: - lastTransitionTime: 2018-10-18T14:29:47Z message: "" reason: Created status: "True" type: Ready ~~~ Ben> are any of the other objects from the template (e.g. the rolebindings) being created? Arnab> Yes ~~~ [root@master-0 ~]# oc describe limits Name: compute-limits Namespace: exampleproj2 Type Resource Min Max Default Request Default Limit Max Limit/Request Ratio ---- -------- --- --- --------------- ------------- ----------------------- Pod cpu 7m 2 - - - Pod memory 100Mi 16Gi - - - Container cpu 7m 2 50m 500m - Container memory 100Mi 16Gi 128Mi 256Mi - [root@master-0 ~]# oc get rolebindings NAME ROLE USERS GROUPS SERVICE ACCOUNTS SUBJECTS admins /admin tin2933 system:deployers /system:deployer deployer system:image-builders /system:image-builder builder system:image-pullers /system:image-puller system:serviceaccounts:exampleproj2 ~~~ Ben> Are you able to successfully instantiate other objects from a template instance using this workflow? Arnab> Yes, was able to create a POD using this workflow. Ben> Are you able to directly create these quota objects using the same token? Arnab> Yes, I could create quota using 'oc create -f' command keeping definition same as in the template Regards Arnab
Corey: Sounds like the templateinstance controller is silently consuming an error message when creating an object. That would be unusual but it should be easy to recreate+add logging for to see what's going on.
No updates yet but it is next on my list