QuotaClassesAdminTestJSON should call V3 api

Bug #1356783 reported by Choonho Son
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Undecided
Unassigned

Bug Description

QuataClassesAdminTest failed.

tempest.api.compute.admin.test_quotas.QuotaClassesAdminTestJSON
    test_update_default_quotas FAIL

######################
# error log

File "/var/lib/tempest/tempest/api/compute/admin/test_quotas.py", line 178, in test_update_default_quotas
resp, body = self.adm_client.get_quota_class_set('default')
NotFound: Object not found
Details: 404 Not Found
The resource could not be found.

The reason is os-quota-class-sets is v3 API instead of v2. But tempest makes v2 API call.

The code should be changed like:

--- a/tempest/api/compute/admin/test_quotas.py
+++ b/tempest/api/compute/admin/test_quotas.py
@@ -148,7 +148,7 @@ class QuotasAdminTestXML(QuotasAdminTestJSON):
     _interface = 'xml'

-class QuotaClassesAdminTestJSON(base.BaseV2ComputeAdminTest):
+class QuotaClassesAdminTestJSON(base.BaseV3ComputeAdminTest):
     """Tests the os-quota-class-sets API to update default quotas.
     """

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/114537

Changed in tempest:
assignee: nobody → Choonho Son (choonho-son)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tempest (master)

Change abandoned by Sean Dague (<email address hidden>) on branch: master
Review: https://review.openstack.org/114537
Reason: This review is > 4 weeks without comment and currently blocked by a core reviewer with a -2. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and contacting the reviewer with the -2 on this review to ensure you address their concerns.

Revision history for this message
Yaroslav Lobankov (ylobankov) wrote :

The proposed patch (https://review.openstack.org/#/c/114537/) is abandoned. The current status of the bug is "In progress". So moving the status to "New".

Changed in tempest:
assignee: Choonho Son (choonho-son) → nobody
status: In Progress → New
Revision history for this message
Ghanshyam Mann (ghanshyammann) wrote :

Quota class set API is there in V2 also. Anyways There is no Nova v3 API now and v2.1 is completely compatible with v2. So there is no issue with mentioned quota tests.

Changed in tempest:
status: New → Invalid
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.