Some absolute limits missing in /limits response

Bug #1025294 reported by Alex Meade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Unassigned
tempest
Fix Released
Low
Rajalakshmi Ganesan

Bug Description

gigabytes, volumes, key_pairs, and floating_ips are missing from the /limits response. The user should have a way to know what all of their maximum quotas are.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/9851

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/9851
Committed: http://github.com/openstack/nova/commit/fafd1f1651907b9c57a8b944ea70f350e1b244a6
Submitter: Jenkins
Branch: master

commit fafd1f1651907b9c57a8b944ea70f350e1b244a6
Author: Alex Meade <email address hidden>
Date: Mon Jul 16 10:55:12 2012 -0400

    Show all absolute quota limits in /limits.

    This change adds currently missing absolute limits to the /limits response.

    Fixes bug 1025294

    Change-Id: I6a758dd683f70a0d006d5aa2840fcc2cb3243297

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Jay Pipes (jaypipes) wrote :

Tempest needs updated tests and updated /tempest/services/nova/json/limits_client.py

Changed in tempest:
status: New → Triaged
importance: Undecided → Low
tags: added: tempest-test-needed
Revision history for this message
Rohit Karajgi (rohitk) wrote :

Hi Ravi,

Is there someone in your team who can work on adding the above tests?

Changed in tempest:
assignee: nobody → Ravikumar Venkatesan (ravikumar-venkatesan)
Changed in tempest:
assignee: Ravikumar Venkatesan (ravikumar-venkatesan) → Rajalakshmi Ganesan (rajalakshmi-ganesan)
Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :

Still the Following quotas are missing in /limits response:

1. maxPersonalityFilePathSize
2. maxTotalSecurityGroups
3. maxTotalSecurityGroups
4. totalFloatingIpsUsed
5. totalSecurityGroupRulesUsed

"maxPersonalityFilePathSize", "maxTotalSecurityGroups", "maxTotalSecurityGroups" parameters appear when we used nova-manage command

nova-manage project quota demo
2012-08-08 00:00:13 DEBUG nova.utils [req-7461dd8f-077b-479d-baf3-b3943166a196 None None] backend <module 'nova.db.sqlalchemy.api' from '/opt/stack/nova/nova/db/sqlalchemy/api.pyc'> from (pid=27494) __get_backend /opt/stack/nova/nova/utils.py:489
metadata_items: 128
injected_file_content_bytes: 10240
volumes: 10
gigabytes: 1000
ram: 51200
floating_ips: 10
security_group_rules: 20
instances: 10
key_pairs: 100
injected_files: 5
cores: 20
injected_file_path_bytes: 255
security_groups: 10
muralik@ubuntu:~$

Changed in nova:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/10960

Changed in tempest:
status: Triaged → In Progress
Alex Meade (alex-meade)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
Revision history for this message
Rajalakshmi Ganesan (rajalakshmi-ganesan) wrote :
Download full text (18.6 KiB)

Following quotas are missing in /limits response:

1. maxPersonalityFilePathSize
2. totalFloatingIpsUsed
3. maxTotalVolumeGigabytes
4. maxTotalVolumes
5. totalVolumeGigabytesUsed
6. totalVolumesUsed

LOG:
----------

muralik@MULTINODE-241:~$ nova --debug absolute-limits

REQ: curl -i http://10.233.52.241:5000/v2.0/tokens -X POST -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "muralik"}}}'

connect: (10.233.52.241, 5000)
send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 10.233.52.241:5000\r\nContent-Length: 102\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "muralik"}}}'
reply: 'HTTP/1.1 200 OK\r\n'
header: Vary: X-Auth-Token
header: Content-Type: application/json
header: Content-Length: 6385
header: Date: Thu, 22 Nov 2012 11:12:35 GMT
RESP:{'date': 'Thu, 22 Nov 2012 11:12:35 GMT', 'vary': 'X-Auth-Token', 'content-length': '6385', 'status': '200', 'content-type': 'application/json'} {"access": {"token": {"issued_at": "2012-11-22T11:12:35.047167", "expires": "2012-11-23T11:12:35Z", "id": "MIILcQYJKoZIhvcNAQcCoIILYjCCC14CAQExCTAHBgUrDgMCGjCCCccGCSqGSIb3DQEHAaCCCbgEggm0eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxMi0xMS0yMlQxMToxMjozNS4wNDcxNjciLCAiZXhwaXJlcyI6ICIyMDEyLTExLTIzVDExOjEyOjM1WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImVuYWJsZWQiOiB0cnVlLCAiZGVzY3JpcHRpb24iOiBudWxsLCAibmFtZSI6ICJhZG1pbiIsICJpZCI6ICI5MTMyOTZhNTY2Mjc0ZGE2YjVlN2Q5YTU3NWE5YjZkYyJ9fSwgInNlcnZpY2VDYXRhbG9nIjogW3siZW5kcG9pbnRzIjogW3siYWRtaW5VUkwiOiAiaHR0cDovLzEwLjIzMy41Mi4yNDE6ODc3NC92Mi85MTMyOTZhNTY2Mjc0ZGE2YjVlN2Q5YTU3NWE5YjZkYyIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xMC4yMzMuNTIuMjQxOjg3NzQvdjIvOTEzMjk2YTU2NjI3NGRhNmI1ZTdkOWE1NzVhOWI2ZGMiLCAiaWQiOiAiYTRjODljODJmYWY0NDlhN2JkNDBlZWEwYjMzOTQ4OGQiLCAicHVibGljVVJMIjogImh0dHA6Ly8xMC4yMzMuNTIuMjQxOjg3NzQvdjIvOTEzMjk2YTU2NjI3NGRhNmI1ZTdkOWE1NzVhOWI2ZGMifV0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ody
Changed in nova:
assignee: nobody → Rajalakshmi Ganesan (rajalakshmi-ganesan)
assignee: Rajalakshmi Ganesan (rajalakshmi-ganesan) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/10960
Committed: http://github.com/openstack/tempest/commit/a4ab007479663884313827bb6a5be558678a2b68
Submitter: Jenkins
Branch: master

commit a4ab007479663884313827bb6a5be558678a2b68
Author: rajalakshmi-ganesan <email address hidden>
Date: Tue Aug 7 19:48:56 2012 +0530

    test_absolute_limits.py to check limits response

    This commit adds a test case that checks if all the absolute limit
    values are returned in the REST call to Nova API Extension
    "/limits". Also modifies limits_client.py file for JSON and XML
    requests so as to make it less verbose. 'get_specific_absolute_limit'
    method is added in the limits_client.py file. As method
    'get_personality_file_limit' is removed, "test_server_personality.py"
    is modified.

    Fixes: bug #1025294
    Change-Id: Id334cd73645273d7b80b25ba698d03dc5599a211

Changed in tempest:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.