Edit Individual Users Quotas

Problem

Similar to tenant quotas, you can enforce quotas per user. This can be used to prevent users from monopolizing resources in a multi-user tenant.

Environment

  • Platform9 Managed OpenStack - All Versions

  • Nova

  • OpenStack CLI

  • Nova CLI

Procedure

Using the Clarity UI

  1. Log in using your admin account.

  2. Select the 'Tenants and Users' tab on the menu to the left of the page.

Screen_Shot_2020-01-23_at_11.46.21_AM.png
  1. Switch to the 'Users' tab and use the radio button to select the user whose quotas you want to set and click on 'Edit User'.

Screen_Shot_2020-01-23_at_11.55.29_AM.png
  1. Set the desired quotas for the user. Ensure that the 'Enable user-level quota for the playground region and [tenant_name] tenant.' checkbox is selected.

Screen_Shot_2020-01-23_at_11.59.48_AM.png
  1. Click on 'Save'.

Using the CLI

  1. Source your admin RC file.

$ source [your_admin_rc_file].rc
  1. Get the UUID of the user whose quotas you want to admin.

$ openstack user list | grep [username]
  1. Get the UUID of the project the user belongs to.

$ openstack project list | grep [project_name]
  1. Check the existing quotas for the user.

$ nova quota-show --user --tenant $project
  1. Update the quota for the user.

$ nova quota-update --user [user_uuid] --QUOTA_NAME QUOTA_VALUE [project_uuid]
  1. Repeat Step #4 to verify the quotas have been updated successfully.

Additional Information