[openstack-dev] tempest api volume test failed

Nikesh Kumar Mahalka nikeshmahalka at vedams.com
Wed Jul 30 13:51:31 UTC 2014


I deployed a single node devstack on Ubuntu 14.04.
This devstack belongs to Juno.

When i am running tempest api volume test, i am getting some tests failed.

Below are steps for devstack deployment:
1) git clone https://github.com/openstack-dev/devstack.git
2)cd devstack
3)vi local.conf

[[local|localrc]]

ADMIN_PASSWORD=some_password
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=ADMIN
#FLAT_INTERFACE = eth0
FIXED_RANGE=192.168.2.80/29
#FLOATING_RANGE=192.168.20.0/25
HOST_IP=192.168.2.64
LOGFILE=$DEST/logs/stack.sh.log
SCREEN_LOGDIR=$DEST/logs/screen
SYSLOG=True
SYSLOG_HOST=$HOST_IP
SYSLOG_PORT=516
RECLONE=yes
CINDER_ENABLED_BACKENDS=client:client_driver

[[post-config|$CINDER_CONF]]

[client_driver]
volume_driver=cinder.volume.drivers.san.client.iscsi.client_iscsi.ClientISCSIDriver
san_ip = 192.168.2.192
san_login = some_name
san_password =some_password
client_iscsi_ips = 192.168.2.193

4)./stack.sh


Now,I am running tempest test
cd /opt/stack/tempest
./run_tempest.sh tempest.api.volume


Below is portion of failed test :
Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_get.py",
line 157, in test_volume_create_get_update_delete_as_clone
    origin = self.create_volume()
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume 4c195bdd-5fea-4da5-884e-69a2026d9ca0
failed to build and is in ERROR status


======================================================================
FAIL: tempest.api.volume.test_volumes_get.VolumesV1GetTest.test_volume_create_get_update_delete_from_image[gate,image,smoke]
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{
2014-07-30 18:42:49,462 16328 INFO     [tempest.common.rest_client]
Request (VolumesV1GetTest:test_volume_create_get_update_delete_from_image):
200 POST http://192.168.2.64:8776/v1/f0cd225e70f249b3a2e40daafb5e34bd/volumes
0.300s
2014-07-30 18:42:49,545 16328 INFO     [tempest.common.rest_client]
Request (VolumesV1GetTest:test_volume_create_get_update_delete_from_image):
200 GET http://192.168.2.64:8776/v1/f0cd225e70f249b3a2e40daafb5e34bd/volumes/6e6585a9-6f7b-42c0-b099-ec72c13a4040
0.082s
2014-07-30 18:42:50,626 16328 INFO     [tempest.common.rest_client]
Request (VolumesV1GetTest:test_volume_create_get_update_delete_from_image):
200 GET http://192.168.2.64:8776/v1/f0cd225e70f249b3a2e40daafb5e34bd/volumes/6e6585a9-6f7b-42c0-b099-ec72c13a4040
0.079s
2014-07-30 18:42:50,698 16328 INFO     [tempest.common.rest_client]
Request (VolumesV1GetTest:_run_cleanups): 202 DELETE
http://192.168.2.64:8776/v1/f0cd225e70f249b3a2e40daafb5e34bd/volumes/6e6585a9-6f7b-42c0-b099-ec72c13a4040
0.069s
2014-07-30 18:42:50,734 16328 INFO     [tempest.common.rest_client]
Request (VolumesV1GetTest:_run_cleanups): 404 GET
http://192.168.2.64:8776/v1/f0cd225e70f249b3a2e40daafb5e34bd/volumes/6e6585a9-6f7b-42c0-b099-ec72c13a4040
0.035s
}}}

Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 128, in wrapper
    return f(self, *func_args, **func_kwargs)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_get.py",
line 153, in test_volume_create_get_update_delete_from_image
    self._volume_create_get_update_delete(imageRef=CONF.compute.image_ref)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_get.py",
line 63, in _volume_create_get_update_delete
    self.client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume 6e6585a9-6f7b-42c0-b099-ec72c13a4040
failed to build and is in ERROR status


======================================================================
FAIL: setUpClass (tempest.api.volume.test_volumes_list.VolumesV1ListTestJSON)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_list.py",
line 68, in setUpClass
    volume = cls.create_volume(metadata=cls.metadata)
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 7a138090-d3b5-4e2f-a47f-e349b4ff730a failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass (tempest.api.volume.test_volumes_list.VolumesV1ListTestXML)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_list.py",
line 68, in setUpClass
    volume = cls.create_volume(metadata=cls.metadata)
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/xml/volumes_client.py",
line 205, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 73642c6f-cb61-479a-886f-4e2d1b531732 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass (tempest.api.volume.test_volumes_list.VolumesV2ListTestJSON)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_list.py",
line 68, in setUpClass
    volume = cls.create_volume(metadata=cls.metadata)
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 9c1b4c90-2902-4a8f-85ed-b861bc70c84e failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass (tempest.api.volume.test_volumes_list.VolumesV2ListTestXML)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_list.py",
line 68, in setUpClass
    volume = cls.create_volume(metadata=cls.metadata)
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/xml/volumes_client.py",
line 205, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 28585cba-13cd-4cf4-9fe9-739a756b7b76 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass
(tempest.api.volume.test_volumes_negative.VolumesV1NegativeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_negative.py",
line 35, in setUpClass
    cls.volume = cls.create_volume()
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 9f306c25-c8f7-4232-b156-c4f4f8cdb6b0 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass
(tempest.api.volume.test_volumes_negative.VolumesV1NegativeTestXML)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_negative.py",
line 35, in setUpClass
    cls.volume = cls.create_volume()
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/xml/volumes_client.py",
line 205, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 5995eb28-8f20-4d67-8666-623274bbc984 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass
(tempest.api.volume.test_volumes_negative.VolumesV2NegativeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_negative.py",
line 35, in setUpClass
    cls.volume = cls.create_volume()
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 04a70e0f-fc11-485d-9d4e-ece8c975fa8b failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass
(tempest.api.volume.test_volumes_negative.VolumesV2NegativeTestXML)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_negative.py",
line 35, in setUpClass
    cls.volume = cls.create_volume()
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/xml/volumes_client.py",
line 205, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 326e5b3c-cc76-4171-8d00-82961465bef8 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass (tempest.api.volume.test_volumes_snapshots.VolumesSnapshotTest)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_snapshots.py",
line 30, in setUpClass
    cls.volume_origin = cls.create_volume()
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 8f3ae686-42d0-4617-bbd2-9daafda52976 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass
(tempest.api.volume.test_volumes_snapshots.VolumesSnapshotTestXML)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/test_volumes_snapshots.py",
line 30, in setUpClass
    cls.volume_origin = cls.create_volume()
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/xml/volumes_client.py",
line 205, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume fa8ded5d-95be-4a41-a6bd-f37ce744c012 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass (tempest.api.volume.v2.test_volumes_list.VolumesV2ListTestJSON)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/v2/test_volumes_list.py",
line 44, in setUpClass
    volume = cls.create_volume(metadata=cls.metadata)
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/json/volumes_client.py",
line 162, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 250fcdcc-503b-40e6-bc6d-b778930c8f16 failed to build
and is in ERROR status


======================================================================
FAIL: setUpClass (tempest.api.volume.v2.test_volumes_list.VolumesV2ListTestXML)
----------------------------------------------------------------------
Traceback (most recent call last):
_StringException: Traceback (most recent call last):
  File "/opt/stack/tempest/tempest/test.py", line 76, in decorator
    f(cls)
  File "/opt/stack/tempest/tempest/api/volume/v2/test_volumes_list.py",
line 44, in setUpClass
    volume = cls.create_volume(metadata=cls.metadata)
  File "/opt/stack/tempest/tempest/api/volume/base.py", line 103, in
create_volume
    cls.volumes_client.wait_for_volume_status(volume['id'], 'available')
  File "/opt/stack/tempest/tempest/services/volume/xml/volumes_client.py",
line 205, in wait_for_volume_status
    raise exceptions.VolumeBuildErrorException(volume_id=volume_id)
VolumeBuildErrorException: Volume %(volume_id)s failed to build and is
in ERROR status
Details: Volume 7960cfa1-f259-4b69-a38a-f91a6f8ca30f failed to build
and is in ERROR status


Ran 141 tests in 839.342s

FAILED (failures=36)



More information about the OpenStack-dev mailing list