Tempest fails to create an volume with imageRef in test_volume_create_get_update_delete_from_image due to 1G size doesn't match the actual image 5G size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Medium
|
Jerry Cai |
Bug Description
I got this failure when run the tempest case in test_volumes_
-------
Traceback (most recent call last):
File "/opt/stack/
return f(self, *func_args, **func_kwargs)
File "/opt/stack/
self.
File "/opt/stack/
**kwargs)
File "/opt/stack/
resp, body = self.post(
File "/opt/stack/
return self.request(
File "/opt/stack/
resp, resp_body)
File "/opt/stack/
raise exceptions.
BadRequest: Bad request
Details: {'message': 'Invalid input received: Size of specified image 5GB is larger than volume size 1GB.', 'code': '400'}
-------
This is because when create a volume with imageRef set and the image size is not equals with 1 (hardcoded which is incorrect),
it will fail with the exception above.
Workaround is to change the tempest code:
In _volume_create_get _update_delete()
set size={image_size} if "imageRef" is not None
I would try to fix this.
Changed in tempest: | |
assignee: | nobody → Jerry Cai (caimin) |
Changed in tempest: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/81471
Review: https:/