Custom Search

Thursday, February 27, 2014

OpenStack Tempest CLI Test Issue Fixed

Fix
===
#sudo vim /etc/tempest/tempest.conf
[identity]
uri=http://127.0.0.1:5000/v2.0/
admin_password=openstack


Error
=====
(.venv)saju@saju-Inspiron-5521:~/tempest_test/tempest$ nosetests -vx tempest.cli.simple_read_only.test_glance
tempest.cli.simple_read_only.test_glance.SimpleReadOnlyGlanceClientTest.test_glance_fake_action ... 2014-02-27 01:20:08.463 13671 INFO tempest.cli [-] running: '/usr/local/bin/glance --os-username admin --os-tenant-name admin --os-password pass --os-auth-url http://127.0.0.1:5000/v2.0/   this-does-not-exist '
ok
tempest.cli.simple_read_only.test_glance.SimpleReadOnlyGlanceClientTest.test_glance_help ... 2014-02-27 01:20:08.710 13671 INFO tempest.cli [-] running: '/usr/local/bin/glance --os-username admin --os-tenant-name admin --os-password pass --os-auth-url http://127.0.0.1:5000/v2.0/   help '
ok
tempest.cli.simple_read_only.test_glance.SimpleReadOnlyGlanceClientTest.test_glance_image_list ... 2014-02-27 01:20:08.962 13671 INFO tempest.cli [-] running: '/usr/local/bin/glance --os-username admin --os-tenant-name admin --os-password pass --os-auth-url http://127.0.0.1:5000/v2.0/   image-list '
ERROR

======================================================================
ERROR: tempest.cli.simple_read_only.test_glance.SimpleReadOnlyGlanceClientTest.test_glance_image_list
----------------------------------------------------------------------
_StringException: pythonlogging:'': {{{2014-02-27 01:20:08,962 running: '/usr/local/bin/glance --os-username admin --os-tenant-name admin --os-password pass --os-auth-url http://127.0.0.1:5000/v2.0/   image-list '}}}

Traceback (most recent call last):
  File "/home/saju/tempest_test/tempest/tempest/cli/simple_read_only/test_glance.py", line 42, in test_glance_image_list
    out = self.glance('image-list')
  File "/home/saju/tempest_test/tempest/tempest/cli/__init__.py", line 81, in glance
    'glance', action, flags, params, admin, fail_ok)
  File "/home/saju/tempest_test/tempest/tempest/cli/__init__.py", line 104, in cmd_with_auth
    return self.cmd(cmd, action, flags, params, fail_ok)
  File "/home/saju/tempest_test/tempest/tempest/cli/__init__.py", line 125, in cmd
    result)
CommandFailed: Command '['/usr/local/bin/glance', '--os-username', 'admin', '--os-tenant-name', 'admin', '--os-password', 'pass', '--os-auth-url', 'http://127.0.0.1:5000/v2.0/', 'image-list']' returned non-zero exit status 1

-------------------- >> begin captured logging << --------------------
tempest.cli: INFO: running: '/usr/local/bin/glance --os-username admin --os-tenant-name admin --os-password pass --os-auth-url http://127.0.0.1:5000/v2.0/   image-list '
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 3 tests in 0.881s

FAILED (errors=1)


No comments:

Post a Comment