Skip to content

virtualization/verify_lxd_vm should wait longer before trying to access the VM #695

@bladernr

Description

@bladernr

Bug Description

The test works fine, but is a bit quick to start trying to ssh into the VM, causing several retries. This makes the log noisy.

Simple fix, it just needs a longer pause before trying to connect to the VM, and maybe longer between retries too, to avoid unnecessary repetition.

To Reproduce

Run checkbox and run the virtualization/verify_lxd_vm job
Note in the logs all the retries (captured below).

Environment

Current checkbox version

Relevant log output

DEBUG:root:Wait for vm to boot
ERROR:root:Command lxc exec testbed -- lsb_release -a returnd a code of 1
ERROR:root: STDOUT: 
ERROR:root: STDERR: Error: Failed to connect to lxd-agent

DEBUG:root:Re-verify VM booted
ERROR:root:Command lxc exec testbed -- lsb_release -a returnd a code of 1
ERROR:root: STDOUT: 
ERROR:root: STDERR: Error: Instance is not running

DEBUG:root:Re-verify VM booted
ERROR:root:Command lxc exec testbed -- lsb_release -a returnd a code of 1
ERROR:root: STDOUT: 
ERROR:root: STDERR: Error: Failed to connect to lxd-agent

DEBUG:root:Re-verify VM booted
ERROR:root:Command lxc exec testbed -- lsb_release -a returnd a code of 1
ERROR:root: STDOUT: 
ERROR:root: STDERR: Error: Failed to connect to lxd-agent

DEBUG:root:Re-verify VM booted
DEBUG:root:Command lxc exec testbed -- lsb_release -a:
DEBUG:root: STDOUT: Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.1 LTS
Release:	20.04
Codename:	focal

Additional context

Simple fix to clear up a minor annoyance and make the test output cleaner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions