Comment 3 for bug 1589380

Revision history for this message
xuchao (xuchao) wrote :

Why the same result, success and failure are all

==============================
Failed 1 tests - output below:
==============================

tempest.api.compute.servers.test_create_server.ServersTestJSON.test_host_name_is_same_as_server_name[id-ac1ad47f-984b-4441-9274-c9079b7a0666]
---------------------------------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/root/refstack-client/.tempest/tempest/api/compute/servers/test_create_server.py", line 140, in test_host_name_is_same_as_server_name
        self.assertTrue(linux_client.hostname_equals_servername(self.name))
      File "/root/refstack-client/.tempest/.venv/lib/python2.7/site-packages/unittest2/case.py", line 702, in assertTrue
        raise self.failureException(msg)
    AssertionError: False is not true

Captured pythonlogging:
~~~~~~~~~~~~~~~~~~~~~~~
    2016-06-12 14:38:54,099 27761 INFO [tempest.lib.common.ssh] Creating ssh connection to '172.16.74.238' as 'root' with public key authentication
    2016-06-12 14:38:57,106 27761 WARNING [tempest.lib.common.ssh] Failed to establish authenticated ssh connection to root@172.16.74.238 ([Errno None] Unable to connect to port 22 on 172.16.74.238). Number attempts: 1. Retry after 2 seconds.
    2016-06-12 14:39:00,113 27761 WARNING [tempest.lib.common.ssh] Failed to establish authenticated ssh connection to root@172.16.74.238 ([Errno None] Unable to connect to port 22 on 172.16.74.238). Number attempts: 2. Retry after 3 seconds.
    2016-06-12 14:39:03,640 27761 INFO [paramiko.transport] Connected (version 2.0, client OpenSSH_6.6.1)
    2016-06-12 14:39:03,840 27761 INFO [paramiko.transport] Authentication (publickey) failed.
    2016-06-12 14:39:06,080 27761 INFO [paramiko.transport] Authentication (password) failed.
    2016-06-12 14:39:06,089 27761 WARNING [tempest.lib.common.ssh] Failed to establish authenticated ssh connection to root@172.16.74.238 (Authentication failed.). Number attempts: 3. Retry after 4 seconds.
    2016-06-12 14:39:10,607 27761 INFO [paramiko.transport] Connected (version 2.0, client OpenSSH_6.6.1)
    2016-06-12 14:39:10,677 27761 INFO [paramiko.transport] Authentication (publickey) successful!
    2016-06-12 14:39:10,696 27761 INFO [tempest.lib.common.ssh] ssh connection to root@172.16.74.238 successfully created
======
Totals
======
Ran: 1 tests in 55.0000 sec.
 - Passed: 0
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 1