I saw tempest.api.volume.test_volumes_get.VolumesGetTestXML.test_volume_get_metadata_none failed in gate test,
ft370.4: tempest.api.volume.test_volumes_get.VolumesGetTestXML.test_volume_get_metadata_none[gate]_StringException: Empty attachments:
stderr
stdout
pythonlogging:'': {{{
2014-01-24 13:09:42,031 Request: POST http://127.0.0.1:8776/v1/2f6a96094b964ddfa11a8efaab294b3d/volumes
2014-01-24 13:09:42,031 Request Headers: {'Content-Type': 'application/xml', 'Accept': 'application/xml', 'X-Auth-Token': '<Token omitted>'}
2014-01-24 13:09:42,031 Request Body: <?xml version="1.0" encoding="UTF-8"?>
<volume xmlns="http://docs.openstack.org/compute/api/v1.1" display_name="Volume-tempest-1912928889" size="1"><metadata /></volume>
2014-01-24 13:09:42,211 Response Status: 200
2014-01-24 13:09:42,211 Nova request id: req-72816d73-a8cf-4df9-8a1f-f8c9aa13b5d6
2014-01-24 13:09:42,211 Response Headers: {'content-length': '447', 'date': 'Fri, 24 Jan 2014 13:09:42 GMT', 'content-type': 'application/xml', 'connection': 'close'}
2014-01-24 13:09:42,212 Response Body: <?xml version='1.0' encoding='UTF-8'?>
<volume xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/volume/api/v1" status="creating" display_name="Volume-tempest-1912928889" availability_zone="nova" bootable="false" created_at="2014-01-24 13:09:42.124425" display_description="None" volume_type="None" snapshot_id="None" source_volid="None" id="6e06d20f-cc94-4aa2-8486-c00258eeed04" size="1"><attachments/><metadata/></volume>
2014-01-24 13:09:42,212 Request: GET http://127.0.0.1:8776/v1/2f6a96094b964ddfa11a8efaab294b3d/volumes/6e06d20f-cc94-4aa2-8486-c00258eeed04
2014-01-24 13:09:42,212 Request Headers: {'Content-Type': 'application/xml', 'Accept': 'application/xml', 'X-Auth-Token': '<Token omitted>'}
2014-01-24 13:09:42,309 Response Status: 200
2014-01-24 13:09:42,309 Nova request id: req-6bb7a4d7-fb78-4c55-a5bd-cbcc6101f1b3
2014-01-24 13:09:42,309 Response Headers: {'content-length': '539', 'content-location': u'http://127.0.0.1:8776/v1/2f6a96094b964ddfa11a8efaab294b3d/volumes/6e06d20f-cc94-4aa2-8486-c00258eeed04', 'date': 'Fri, 24 Jan 2014 13:09:42 GMT', 'content-type': 'application/xml', 'connection': 'close'}
2014-01-24 13:09:42,309 Response Body: <?xml version='1.0' encoding='UTF-8'?>
<volume xmlns:os-vol-image-meta="http://docs.openstack.org/volume/ext/volume_image_metadata/api/v1" xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/volume/api/v1" status="creating" display_name="Volume-tempest-1912928889" availability_zone="nova" bootable="false" created_at="2014-01-24 13:09:42.124425" display_description="None" volume_type="None" snapshot_id="None" source_volid="None" id="6e06d20f-cc94-4aa2-8486-c00258eeed04" size="1"><attachments/><metadata/></volume>
2014-01-24 13:09:43,311 Request: GET http://127.0.0.1:8776/v1/2f6a96094b964ddfa11a8efaab294b3d/volumes/6e06d20f-cc94-4aa2-8486-c00258eeed04
2014-01-24 13:09:43,311 Request Headers: {'Content-Type': 'application/xml', 'Accept': 'application/xml', 'X-Auth-Token': '<Token omitted>'}
2014-01-24 13:09:43,395 Response Status: 200
2014-01-24 13:09:43,396 Nova request id: req-82ea3dfb-007f-4261-9856-4209c9237689
2014-01-24 13:09:43,396 Response Headers: {'content-length': '536', 'content-location': u'http://127.0.0.1:8776/v1/2f6a96094b964ddfa11a8efaab294b3d/volumes/6e06d20f-cc94-4aa2-8486-c00258eeed04', 'date': 'Fri, 24 Jan 2014 13:09:43 GMT', 'content-type': 'application/xml', 'connection': 'close'}
2014-01-24 13:09:43,396 Response Body: <?xml version='1.0' encoding='UTF-8'?>
<volume xmlns:os-vol-image-meta="http://docs.openstack.org/volume/ext/volume_image_metadata/api/v1" xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/volume/api/v1" status="error" display_name="Volume-tempest-1912928889" availability_zone="nova" bootable="false" created_at="2014-01-24 13:09:42.124425" display_description="None" volume_type="None" snapshot_id="None" source_volid="None" id="6e06d20f-cc94-4aa2-8486-c00258eeed04" size="1"><attachments/><metadata/></volume>
}}}
Traceback (most recent call last):
File "tempest/api/volume/test_volumes_get.py", line 120, in test_volume_get_metadata_none
volume = self.create_volume(metadata={})
File "tempest/api/volume/base.py", line 77, in create_volume
cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
File "tempest/services/volume/xml/volumes_client.py", line 182, in wait_for_volume_status
raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume 6e06d20f-cc94-4aa2-8486-c00258eeed04 failed to build and is in ERROR status
The corresponding cinder-volume log was:
2014-01-24 13:09:43.083 26476 DEBUG cinder.openstack.common.processutils [req-72816d73-a8cf-4df9-8a1f-f8c9aa13b5d6 fc161ba79e204faba89364d61a5d8544 2f6a96094b964ddfa11a8efaab294b3d] Result was 22 execute /opt/stack/new/cinder/cinder/openstack/common/processutils.py:167
2014-01-24 13:09:43.084 26476 ERROR cinder.brick.iscsi.iscsi [req-72816d73-a8cf-4df9-8a1f-f8c9aa13b5d6 fc161ba79e204faba89364d61a5d8544 2f6a96094b964ddfa11a8efaab294b3d] Failed to update iscsi target iqn.2010-10.org.openstack:volume-6e06d20f-cc94-4aa2-8486-c00258eeed04: Unexpected error while running command.
Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf tgt-admin --update iqn.2010-10.org.openstack:volume-6e06d20f-cc94-4aa2-8486-c00258eeed04
Exit code: 22
Stdout: 'Command:\n\ttgtadm -C 0 --lld iscsi --op new --mode target --tid 10 -T iqn.2010-10.org.openstack:volume-6e06d20f-cc94-4aa2-8486-c00258eeed04\nexited with code: 22.\n'
Stderr: 'tgtadm: this target already exists\n'
See details at http://logs.openstack.org/26/61926/9/gate/gate-tempest-dsvm-postgres-full/26f827e/
Thanks for reporting this, it's a duplicate of 1223469 which has merged so we should be in good shape for this one going forward.
Thanks!!