ERROR tempest.lib.common.ssh AuthenticationException: Authentication failed.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
refstack |
Invalid
|
Undecided
|
Unassigned |
Bug Description
1、Execute compute cases
# ./refstack-client test -c ~/refstack-
2、The test output
2016-06-06 13:58:19,338 20767 WARNING [tempest.
2016-06-06 13:58:41,847 20767 INFO [paramiko.
2016-06-06 13:58:41,944 20767 INFO [paramiko.
2016-06-06 13:58:43,667 20767 INFO [paramiko.
2016-06-06 13:58:43,672 20767 ERROR [tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43.672 20767 ERROR tempest.
2016-06-06 13:58:43,974 20767 INFO [tempest.
======
Totals
======
Ran: 1 tests in 534.0000 sec.
- Passed: 0
- Skipped: 0
- Expected Fail: 0
- Unexpected Success: 0
- Failed: 1
3.Compute and validation configuration section in tempest.conf file
[compute]
image_ref = f1692596-
image_ref_alt = 845d2fb2-
flavor_ref = 2
flavor_ref_alt = 2
build_interval = 6
build_timeout = 200
ready_wait = 0
fixed_network_name = private_net
catalog_type = compute
region = RegionOne
endpoint_type = publicURL
volume_device_name = vdb
shelved_
min_compute_nodes = 1
[compute-
disk_config = true
api_extensions = all
change_password = false
resize = true
pause = true
shelve = true
suspend = true
live_migration = true
metadata_service = true
spice_console = true
rdp_console = true
rescue = true
enable_
interface_attach = true
snapshot = true
nova_cert = true
personality = true
attach_
allow_duplicate
config_drive = true
[validation]
run_validation = true
security_group = true
security_
connect_method = floating
auth_method = keypair
ip_version_for_ssh = 4
ping_timeout = 100
connect_timeout = 60
ssh_timeout = 300
image_ssh_user = "root"
image_ssh_password = "qweasd123456"
ssh_shell_prologue = set -eu -o pipefail; PATH=$$PATH:/sbin;
ping_size = 56
ping_count = 1
floating_ip_range = 172.16.74.0/24
network_for_ssh = public
4、# nova list --all-tenants
+------
| ID | Name | Tenant ID | Status | Task State | Power State | Networks |
+------
| 7ef4c3fa-
+------
5、# nova show 7ef4c3fa-
+------
| Property | Value |
+------
| OS-DCF:diskConfig | AUTO |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-STS:vm_state | active |
| OS-SRV-
| OS-SRV-
| accessIPv4 | 1.1.1.1 |
| accessIPv6 | ::babe:dc0c:1602 |
| config_drive | |
| created | 2016-06-
| flavor | m1.small (2) |
| hostId | 3f89afce295826b
| id | d02912a1-
| image | centos7-cloudinit (7f0058b7-
| key_name | tempest-
| metadata | {"hello": "world"} |
| name | tempest-
| os-extended-
| private_net network | 10.0.0.32, 172.16.74.234 |
| progress | 0 |
| security_groups | tempest-
| status | ACTIVE |
| tenant_id | 5ce444d267fd47c
| updated | 2016-06-
| user_id | 633bab33a673458
6.Prompt the same wrong cases are:
tempest.
tempest.
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in refstack: | |
status: | New → Incomplete |
Are you able to manually ssh to the VM and check that the keys are properly configured since your tempest.conf defines for ssh to use keypair ( auth_method = keypair )? You may also try to increase the "ssh_timeout = 300" value to see whether it will help.
Some debug information from this link may help https:/ /bugs.launchpad .net/tempest/ +bug/1583987