Tests with image creation fail when allow_tenant_isolation=True and glance_store=swift

Bug #1316166 reported by Andrey Pavlov
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
Andrey Pavlov

Bug Description

Tests that create image fail when I set 'allow_tenant_isolation' to True and glance in the cloud is configured to use swift storage.

For example - tempest.api.compute.images.test_images_oneserver.ImagesOneServerTestJSON.test_create_delete_image

10:15:49 Traceback (most recent call last):
10:15:49 File "/var/lib/jenkins/workspace/hoof_tempest/tempest-repo/tempest/api/compute/images/test_images_oneserver.py", line 126, in test_create_delete_image
10:15:49 self.client.wait_for_image_status(image_id, 'ACTIVE')
10:15:49 File "/var/lib/jenkins/workspace/hoof_tempest/tempest-repo/tempest/services/compute/json/images_client.py", line 90, in wait_for_image_status
10:15:49 resp, image = self.get_image(image_id)
10:15:49 File "/var/lib/jenkins/workspace/hoof_tempest/tempest-repo/tempest/services/compute/json/images_client.py", line 74, in get_image
10:15:49 resp, body = self.get("images/%s" % str(image_id))
10:15:49 File "/var/lib/jenkins/workspace/hoof_tempest/tempest-repo/tempest/common/rest_client.py", line 324, in get
10:15:49 return self.request('GET', url, headers)
10:15:49 File "/var/lib/jenkins/workspace/hoof_tempest/tempest-repo/tempest/common/rest_client.py", line 455, in request
10:15:49 resp, resp_body)
10:15:49 File "/var/lib/jenkins/workspace/hoof_tempest/tempest-repo/tempest/common/rest_client.py", line 500, in _error_checker
10:15:49 raise exceptions.NotFound(resp_body)
10:15:49 NotFound: Object not found
10:15:49 Details: {"itemNotFound": {"message": "Image not found.", "code": 404}}

This happens because created user has no 'Member' role in created tenant. (Swift allows to create container only for specific roles)
But tests in object_storage group have this functionality - adding this role for new users.

Changed in tempest:
assignee: nobody → Andrey Pavlov (apavlov-e)
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/96460

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

Reviewed: https://review.openstack.org/96460
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=af1fb707fa689df84ef24bef012420cdd47e34c4
Submitter: Jenkins
Branch: master

commit af1fb707fa689df84ef24bef012420cdd47e34c4
Author: Andrey Pavlov <email address hidden>
Date: Thu May 29 17:08:10 2014 +0400

    Add 'Member' role to all created users

    When cloud's glance service configured to use swift for storing data
    then user works with glance must have operator_role.

    Change-Id: Idd92640d5d6b1957aa6ac84a4124e0b2eb5f26b1
    Closes-bug: #1316166

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.