Comment 0 for bug 1633221

Revision history for this message
Joshua White (joshua-l-white) wrote : Tempest conf reseller_admin_role defaults to reseller_admin

OSA creates role reseller_admin and sets Tempest config to reseller_admin_role = reseller_admin. The issue is it seems Swift expects reseller_admin_role = ResellerAdmin. Therefore, it throws a forbidden error if reseller_admin role is used.

Example Tempest fails when running with reseller_admin_role = reseller_admin: tempest.api.object_storage.test_account_quotas.AccountQuotasTest.test_admin_modify_quota.

{0} tempest.api.object_storage.test_account_quotas.AccountQuotasTest.test_admin_modify_quota [0.896237s] ... FAILED

==============================
Failed 1 tests - output below:
==============================

tempest.api.object_storage.test_account_quotas.AccountQuotasTest.test_admin_modify_quota[id-63f51f9f-5f1d-4fc6-b5be-d454d70949d6,smoke]
---------------------------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "tempest/api/object_storage/test_account_quotas.py", line 58, in setUp
        body="")
      File "tempest/lib/common/rest_client.py", line 665, in request
        resp, resp_body)
      File "tempest/lib/common/rest_client.py", line 758, in _error_checker
        raise exceptions.Forbidden(resp_body, resp=resp)
    tempest.lib.exceptions.Forbidden: Forbidden
    Details: <html><h1>Forbidden</h1><p>Access was denied to this resource.</p></html>

Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2016-10-13 20:55:36,992 31477 INFO [tempest.lib.common.rest_client] Request (AccountQuotasTest:setUp): 403 POST http://xxx.xxx.x.xxx:8080/v1/AUTH_06c36adfe0b14834b147e6aac077937f 0.894s

Solution I believe:

Instead of creating reseller_admin role on deployment create ResellerAdmin role.