wusamzong commented on PR #281:
URL: https://github.com/apache/yunikorn-site/pull/281#issuecomment-1465085148

   > Request changes: You also need to add the group field in the application 
REST API.
   > 
   > Other: REST API including the queue applications and the application 
should show the group field. However, I did not find the group field in my 
local side when I test with the example in the placement rule.
   > 
   > Is "nobody" the default value of groups? I will check the code later.
   > 
   > How did you get the group value? The feedback from the applications REST 
API is following and the groups field is gone. ` 
{"applicationID":"prvoided-rule-example01","usedResource":{"memory":500000000,"vcore":100},"maxUsedResource":{"memory":500000000,"vcore":100},"pendingResource":{"memory":0,"vcore":0},"partition":"default","queueName":"root.default","submissionTime":1678535908889239519,"finishedTime":null,"requests":[],"allocations":[{"allocationKey":"79fa4402-1cfb-4199-970e-8ffb12b22195","allocationTags":{"kubernetes.io/label/app":"sleep","kubernetes.io/label/applicationId":"prvoided-rule-example01","kubernetes.io/label/queue":"my_special_queue","kubernetes.io/label/yunikorn.apache.org/username":"developer","kubernetes.io/meta/namespace":"default","kubernetes.io/meta/podName":"task0"},"requestTime":1678535910892408603,"allocationTime":1678535910893847062,"allocationDelay":1438459,"uuid":"da635950-bff8-49dc-a8a9-50fe3f1f32e9","resource":{"memory":500000000,"vcore":100},"priori
 
ty":"0","nodeId":"lima-rancher-desktop","applicationId":"prvoided-rule-example01","partition":"default","placeholder":false,"placeholderUsed":false,"taskGroupName":"","preempted":false}],"applicationState":"Running","user":"system:admin","rejectedMessage":"","stateLog":[{"time":1678535910892797228,"applicationState":"Accepted"},{"time":1678535910893997687,"applicationState":"Starting"},{"time":1678536210895289330,"applicationState":"Running"}],"placeholderData":[],"hasReserved":false,"reservations":[],"maxRequestPriority":-2147483648,"minAllocationPriority":0}`
   
   The group field in REST API object has been add in 
[YUNIKORN-1591](https://issues.apache.org/jira/browse/YUNIKORN-1591)
   I [updating the 
dependencies](https://yunikorn.apache.org/docs/developer_guide/build#updating-dependencies)
 to the master branch of yunikorn-core.
   Below is the result I got with the group field : 
   ```
   {
     "applicationID": "nginx_2019_01_22_00001",
     "usedResource": {
       
     },
     "maxUsedResource": {
       
     },
     "pendingResource": {
       
     },
     "partition": "default",
     "queueName": "root.default",
     "submissionTime": 1678592507800350290,
     "finishedTime": null,
     "requests": [
       
     ],
     "allocations": [
       
     ],
     "applicationState": "New",
     "user": "nobody",
     "groups": [
       "nobody"
     ],
     "rejectedMessage": "",
     "stateLog": [
       
     ],
     "placeholderData": [
       
     ],
     "hasReserved": false,
     "reservations": [
       
     ],
     "maxRequestPriority": -2147483648,
     "minAllocationPriority": 2147483647
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to