Comment 1 for bug 2020261

Revision history for this message
Yosi Ben Shimon (ybenshim) wrote :

The same issue happens for:
- attach_volume
- detach_volume
- remove_image_metadata
- set_bootable_volume
- set_image_metadata
- terminate_volume_attachment

tests for "reader" role.

attach_volume:
2023-07-26 07:21:22,293 91796 INFO [tempest.lib.common.rest_client] Request (ProjectReaderTests:test_attach_volume): 202 POST https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/f227cc6e-bb47-4626-a1da-116cd4ff169e/action 0.273s
2023-07-26 07:21:22,293 91796 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"os-attach": {"instance_uuid": "1c79a19c-cb1b-4956-bd88-533f3ce29555", "mountpoint": "/dev/vdb"}}
    Response - Headers: {'date': 'Wed, 26 Jul 2023 07:21:22 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'x-compute-request-id': 'req-41b8bdec-9d6e-4d17-96b2-1400df8ababe', 'content-length': '0', 'content-type': 'application/json', 'openstack-api-version': 'volume 3.0', 'vary': 'OpenStack-API-Version', 'x-openstack-request-id': 'req-41b8bdec-9d6e-4d17-96b2-1400df8ababe', 'connection': 'close', 'status': '202', 'content-location': 'https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/f227cc6e-bb47-4626-a1da-116cd4ff169e/action'}
        Body: b''

detach_volume:
2023-07-26 07:21:32,118 91796 INFO [tempest.lib.common.rest_client] Request (ProjectReaderTests:test_detach_volume): 202 POST https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/396107fc-32ba-4a31-981c-3e91c7547117/action 0.100s
2023-07-26 07:21:32,118 91796 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"os-detach": {}}
    Response - Headers: {'date': 'Wed, 26 Jul 2023 07:21:32 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'x-compute-request-id': 'req-161783a1-806b-4e14-900c-eea643160b3c', 'content-length': '0', 'content-type': 'application/json', 'openstack-api-version': 'volume 3.0', 'vary': 'OpenStack-API-Version', 'x-openstack-request-id': 'req-161783a1-806b-4e14-900c-eea643160b3c', 'connection': 'close', 'status': '202', 'content-location': 'https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/396107fc-32ba-4a31-981c-3e91c7547117/action'}
        Body: b''

remove_image_metadata:
2023-07-26 07:21:51,752 91796 INFO [tempest.lib.common.rest_client] Request (ProjectReaderTests:test_remove_image_metadata): 200 POST https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/1c1824f2-3151-4c8f-948e-8b74cf345a27/action 0.073s
2023-07-26 07:21:51,752 91796 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"os-unset_image_metadata": {"key": "test_item_key_2"}}
    Response - Headers: {'date': 'Wed, 26 Jul 2023 07:21:51 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'content-length': '0', 'content-type': 'text/html; charset=UTF-8', 'openstack-api-version': 'volume 3.0', 'vary': 'OpenStack-API-Version,Accept-Encoding', 'x-openstack-request-id': 'req-f7f4c31d-fc3c-4c91-aeb2-6098a46eb233', 'connection': 'close', 'status': '200', 'content-location': 'https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/1c1824f2-3151-4c8f-948e-8b74cf345a27/action'}
        Body: b''

set_bootable_volume:
2023-07-26 07:21:59,081 91796 INFO [tempest.lib.common.rest_client] Request (ProjectReaderTests:test_set_bootable_volume): 200 POST https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/8a6f1c29-c932-4fec-b6ae-1fbeec6b33fd/action 0.050s
2023-07-26 07:21:59,082 91796 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"os-set_bootable": {"bootable": true}}
    Response - Headers: {'date': 'Wed, 26 Jul 2023 07:21:59 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'x-compute-request-id': 'req-b636333f-959d-469c-90d5-f77e8ec2425e', 'content-length': '0', 'content-type': 'application/json', 'openstack-api-version': 'volume 3.0', 'vary': 'OpenStack-API-Version', 'x-openstack-request-id': 'req-b636333f-959d-469c-90d5-f77e8ec2425e', 'connection': 'close', 'status': '200', 'content-location': 'https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/8a6f1c29-c932-4fec-b6ae-1fbeec6b33fd/action'}
        Body: b''

set_image_metadata:
2023-07-26 07:22:02,754 91796 INFO [tempest.lib.common.rest_client] Request (ProjectReaderTests:test_set_image_metadata): 200 POST https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/347c9523-b121-44c1-895d-2ada4f4bc8b5/action 0.064s
2023-07-26 07:22:02,754 91796 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"os-set_image_metadata": {"metadata": {"image_id": "5137a025-3c5f-43c1-bc64-5f41270040a5", "image_name": "image", "kernel_id": "6ff710d2-942b-4d6b-9168-8c9cc2404ab1", "ramdisk_id": "somedisk"}}}
    Response - Headers: {'date': 'Wed, 26 Jul 2023 07:22:02 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'content-type': 'application/json', 'x-compute-request-id': 'req-60ad884a-30c8-4271-adfc-61661f66fe88', 'content-length': '168', 'openstack-api-version': 'volume 3.0', 'vary': 'OpenStack-API-Version', 'x-openstack-request-id': 'req-60ad884a-30c8-4271-adfc-61661f66fe88', 'connection': 'close', 'status': '200', 'content-location': 'https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/347c9523-b121-44c1-895d-2ada4f4bc8b5/action'}
        Body: b'{"metadata": {"image_id": "5137a025-3c5f-43c1-bc64-5f41270040a5", "image_name": "image", "kernel_id": "6ff710d2-942b-4d6b-9168-8c9cc2404ab1", "ramdisk_id": "somedisk"}}'

terminate_volume_connection:
2023-07-26 07:22:18,504 91796 INFO [tempest.lib.common.rest_client] Request (ProjectReaderTests:test_terminate_volume_attachment): 202 POST https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/b9138b09-e76d-44c6-a94f-4993081c566b/action 0.087s
2023-07-26 07:22:18,504 91796 DEBUG [tempest.lib.common.rest_client] Request - Headers: {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': '<omitted>'}
        Body: {"os-terminate_connection": {"connector": {}}}
    Response - Headers: {'date': 'Wed, 26 Jul 2023 07:22:18 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'x-compute-request-id': 'req-1505ae4a-c021-48d5-9ecd-8c51e840aa21', 'content-length': '0', 'content-type': 'application/json', 'openstack-api-version': 'volume 3.0', 'vary': 'OpenStack-API-Version', 'x-openstack-request-id': 'req-1505ae4a-c021-48d5-9ecd-8c51e840aa21', 'connection': 'close', 'status': '202', 'content-location': 'https://10.209.128.25/volume/v3/58abb29ef9fd4c26a93f0caf6d20ebdf/volumes/b9138b09-e76d-44c6-a94f-4993081c566b/action'}
        Body: b''

Found while adding tests here:
https://review.opendev.org/c/openstack/cinder-tempest-plugin/+/889379