cloudfoundry / cli

The official command line client for Cloud Foundry
https://docs.cloudfoundry.org/cf-cli
Apache License 2.0
1.75k stars 930 forks source link

Trying to assign org quota but have no authorization #2488

Open XintongHe opened 1 year ago

XintongHe commented 1 year ago

Please fill out the issue checklist below and provide ALL the requested information.

Describe the bug and the command you saw an issue with I want to push an app to the Siemens Insight Hub, however, it shows that the organization's memory limit has exceeded, after several checking, I found out this is due to the org quota limit, so I am trying to assign a new org quota to my organization, but failed with the following error: %cf update-org-quota cf-quota-1572872376330 -n cf-quota-1572872376330 -m 10G -i 2048M -l 8K -r 20 -s 20 --allow-paid-service-plans

Updating org quota cf-quota-1572872376330 as demonstrator.ais@ed.tum.de... You are not authorized to perform the requested action.

What happened demonstrator.ais@ed.tum.de is already an ORG Manager, Space Manager, and Space Developer. I have tried to create an admin user and assign it to the scope cloud_controller. However, even if the process is successful, the admin has not been added to the scope cloud_controller. I wonder if this is the reason. Here is the code: %uaac member add cloud_controller.admin admin
success % uaac context [0]*[http://localhost:8080/uaa]

[0]*[admin] client_id: admin access_token: [i hided] token_type: bearer expires_in: 43199 scope: clients.read clients.secret clients.write uaa.admin clients.admin scim.write scim.read jti: bf9c3af89dbd4d3387804c09d4982191

Expected behavior I want to assign a new org quota to my organization but have no authorization. Provide more context

Thank you

a-b commented 2 months ago

Can you please specify which behavior in the CF CLI is malfunctioning and how it needs to be changed?