今天用tempest跑安装好的环境,结果遇到delete time out的问题,但是手动测试不会有什么问题的, 原来是因为real_deleted, 还好有人提过这样的问题,原来tempest测试的user配置不能选择具有admin_role.
nosetests -v
test_images_oneserver
test_images_oneserver.ImagesOneServerTestJSON.test_create_delete_image[gate,smoke]
...
ERROR
=====================================================================
ERROR:
test_images_oneserver.ImagesOneServerTestJSON.test_create_delete_image[gate,smoke]
----------------------------------------------------------------------
_StringException:
Empty attachments:
pythonlogging:''
Traceback (most recent call
last):
File
"/root/test/tempest/tempest/api/compute/images/test_images_oneserver.py", line
92, in
test_create_delete_image
self.client.wait_for_resource_deletion(image_id)
File
"/root/test/tempest/tempest/common/rest_client.py", line 563, in
wait_for_resource_deletion
raise
exceptions.TimeoutException
TimeoutException: Request timed out
tempest user 不能为admin 权限的user
原因是:admin
权限的用户,可以查看到已经删除的image和server的信息,所以tempest总能得到image的info,导致tempest认为image并没有删除掉。。。。。
阅读(3208) | 评论(0) | 转发(1) |