2017-04-14 02:21:46 |
wangxiyuan |
description |
This bug is found by tempest test when I use use local user to run the tempest test:
reproduce:
1. make sure to use the local user
tempest.conf:
[auth]
use_dynamic_credentials = False
test_accounts_file = /opt/stack/tempest/test_auth.yaml
test_auth.yaml:
- domain_name: Default
password: root
project_name: admin
resources:
network: 72b815a6-68ad-4cf4-8b23-6b3fee758f44
username: admin
2. Make sure there are some volumes in Cinder already, and one of the volumes is created from image at least.
3.run the test: tempest.api.volume.test_volumes_list.VolumesListTestJSON.test_volume_list_with_details
this test will fail.
The reason is that Cinder returned "volume_image_metadata" for each volume even the volume doesn't contain "volume_image_metadata" property. (it will return "volume_image_metadata": {} )
But cinder show {volume_id} doesn't return "volume_image_metadata": {} for an unbootable volume.
So the response body format is not the same between list and show API
We should drop the empty volume_image_metadata for cinder list IMO. |
This bug is found by tempest test when I use use local user to run the tempest test:
reproduce:
1. make sure to use the local user
tempest.conf:
[auth]
use_dynamic_credentials = False
test_accounts_file = /opt/stack/tempest/test_auth.yaml
test_auth.yaml:
- domain_name: Default
password: root
project_name: admin
resources:
network: 72b815a6-68ad-4cf4-8b23-6b3fee758f44
username: admin
2. Make sure there are some volumes in Cinder already, and one of the volumes is created from image at least.
3.run the test: tempest.api.volume.test_volumes_list.VolumesListTestJSON.test_volume_list_with_details
this test will fail.
The reason is that Cinder returned "volume_image_metadata" for each volume even the volume doesn't contain "volume_image_metadata" property. (it will return "volume_image_metadata": {} )
But cinder show {volume_id} doesn't return "volume_image_metadata": {} for an unbootable volume.
So the response body format is not the same between list and show API
We should drop the empty volume_image_metadata for cinder list IMO.
Error tests:
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volume_list_with_details
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volumes_list_details_by_availability_zone
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volumes_list_details_by_status |
|
2017-04-14 04:07:38 |
wangxiyuan |
description |
This bug is found by tempest test when I use use local user to run the tempest test:
reproduce:
1. make sure to use the local user
tempest.conf:
[auth]
use_dynamic_credentials = False
test_accounts_file = /opt/stack/tempest/test_auth.yaml
test_auth.yaml:
- domain_name: Default
password: root
project_name: admin
resources:
network: 72b815a6-68ad-4cf4-8b23-6b3fee758f44
username: admin
2. Make sure there are some volumes in Cinder already, and one of the volumes is created from image at least.
3.run the test: tempest.api.volume.test_volumes_list.VolumesListTestJSON.test_volume_list_with_details
this test will fail.
The reason is that Cinder returned "volume_image_metadata" for each volume even the volume doesn't contain "volume_image_metadata" property. (it will return "volume_image_metadata": {} )
But cinder show {volume_id} doesn't return "volume_image_metadata": {} for an unbootable volume.
So the response body format is not the same between list and show API
We should drop the empty volume_image_metadata for cinder list IMO.
Error tests:
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volume_list_with_details
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volumes_list_details_by_availability_zone
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volumes_list_details_by_status |
This bug is found by tempest test when I use use local user to run the tempest test:
reproduce:
1. make sure to use the local user
tempest.conf:
[auth]
use_dynamic_credentials = False
test_accounts_file = /opt/stack/tempest/test_auth.yaml
test_auth.yaml:
- domain_name: Default
password: root
project_name: admin
resources:
network: 72b815a6-68ad-4cf4-8b23-6b3fee758f44
username: admin
2. Make sure there are some volumes in Cinder already, and one of the volumes is created from image at least.
3.run the test: tempest.api.volume.test_volumes_list.VolumesListTestJSON.test_volume_list_with_details
this test will fail.
The reason is that Cinder returned "volume_image_metadata" for each volume even the volume doesn't contain "volume_image_metadata" property. (it will return "volume_image_metadata": {} )
But cinder show {volume_id} doesn't return "volume_image_metadata": {} for an unbootable volume.
So the response body format is not the same between list and show API
We should drop the empty volume_image_metadata for cinder list IMO.
Error tests:
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volume_list_with_details
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volumes_list_details_by_availability_zone
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volumes_list_details_by_status
tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON.test_volumes_list_details_by_bootable |
|