为什么风暴可以在一次测试中成功,但在一批测试中失败

2024-05-23 17:53:24 发布

您现在位置:Python中文网/ 问答频道 /正文

我用tempest测试了我的openstack云,我可以成功地运行一个测试,比如

testr run -- tempest.cli.simple_read_only.test_cinder.SimpleReadOnlyCinderClientTest.test_cinder_availability_zone_list

成功地完成了下面的命令

^{pr2}$

但当我批量运行时,例如

testr run --parallel

失败的原因如下:

FAIL: tempest.cli.simple_read_only.test_cinder.SimpleReadOnlyCinderClientTest.test_cinder_availability_zone_list
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
  pythonlogging:''
  stderr
  stdout
Traceback (most recent call last):
  File "/root/tempest.bak/tempest/cli/simple_read_only/test_cinder.py", line 107, in test_cinder_availability_zone_list
    self.cinder('availability-zone-list')    
  File "/root/tempest.bak/tempest/cli/__init__.py", line 84, in cinder
    'cinder', action, flags, params, admin, fail_ok)    
  File "/root/tempest.bak/tempest/cli/__init__.py", line 109, in cmd_with_auth
    return self.cmd(cmd, action, flags, params, fail_ok)    
  File "/root/tempest.bak/tempest/cli/__init__.py", line 129, in cmd
    stderr=result_err)    

CommandFailed: Command '['/usr/local/bin/cinder', '--os-username', 'xxx', '--os-tenant-name', 'xxx', '--os-password', 'xxx', '--os-auth-url', 'http://xxxx:5000/v2.0', '--endpoint-type', 'publicURL', 'availability-zone-list']' returned non-zero exit status 1

其他命令,如:传输列表,也都失败了。在

有人能解释一下为什么会这样吗?我确信租户的名字,密码是正确的。因为单项测试可以通过。在


Tags: inpytestcmdzonecliosline