tempest.api.compute.servers.test_device_tagging fails with libvirt-xen

Bug #1694736 reported by Anthony PERARD
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)

Bug Description

On the Xen Project CI, two new tests always fails:


It appear that the test is trying to ssh to the instance while the instance itself is powering off.

from tempest, Captured pythonlogging:
    2017-05-31 07:41:22,451 28296 INFO [tempest.api.compute.servers.test_device_tagging] Attempting to verify tagged devices in server d7004fb9-c241-4976-befb-85af3771778f via the metadata service:
    2017-05-31 07:41:22,452 28296 DEBUG [tempest.lib.common.utils.linux.remote_client] Remote command: set -eu -o pipefail; PATH=$PATH:/sbin; curl -V
    2017-05-31 07:41:22,453 28296 INFO [tempest.lib.common.ssh] Creating ssh connection to '' as 'cirros' with public key authentication
    2017-05-31 07:41:25,451 28296 WARNING [tempest.lib.common.ssh] Failed to establish authenticated ssh connection to cirros@ ([Errno None] Unable to connect to port 22 on Number attempts: 1. Retry after 2 seconds.

From screen-n-cpu.txt.gz:
May 31 07:41:30.385202 ds-xen-rax-iad-10748 nova-compute[21012]: DEBUG nova.virt.driver [-] Emitting event <LifecycleEvent: 1496216475.24, d7004fb9-c241-4976-befb-85af3771778f => Stopped> {{(pid=21012) emit_event /opt/stack/new/nova/nova/virt/driver.py:1446}}
May 31 07:41:30.385567 ds-xen-rax-iad-10748 nova-compute[21012]: INFO nova.compute.manager [-] [instance: d7004fb9-c241-4976-befb-85af3771778f] VM Stopped (Lifecycle Event)

More logs can be found at:

Tags: xen Edit Tag help
Revision history for this message
Matt Riedemann (mriedem) wrote :

These are only run when ssh validation is enabled, which was made the default in devstack last week:


That's likely why it's on in the xenproject CI now. You could disable it explicitly until the bug is fixed. I'm not sure why this would cause issues with libvirt+xen but not libvirt+qemu though.

Changed in nova:
status: New → Confirmed
Revision history for this message
Anthony PERARD (anthony-perard) wrote :

tempest.api.compute.servers.test_device_tagging is the only test that fails whith ssh validation enabled, the other tests works fine. We may need to find out what the guest is doing, it maybe could not start properly.

As suggested, I've disable ssh validation on the CI for now.


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers