LXD test fails out on first attempt to download image

Bug #1729080 reported by Jeff Lane on 2017-10-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Provider for Plainbox - Checkbox
Medium
Jeff Lane

Bug Description

Sometimes the image download fails, but the script only tries one time. It should sleep a bit and retry up to 2 more times before giving in.

DEBUG:root:Executing LXD Test
DEBUG:root:Attempting to initialize LXD
DEBUG:root:Command lxd init --auto:
DEBUG:root: STDERR: LXD has been successfully configured.

DEBUG:root:No local image available, attempting to import from default remote.
ERROR:root:Command lxc image copy ubuntu:17.10 local: --alias 0e72bbc6f257464f99a82ca06efadba1 returnd a code of 1
ERROR:root: STDOUT:
Copying the image: metadata: 100% (940.34MB/s)

ERROR:root: STDERR: If this is your first time using LXD, you should also run: lxd init
To start your first container, try: lxc launch ubuntu:16.04

error: Failed remote image download:
 - https://cloud-images.ubuntu.com/releases: websocket: close 1006 (abnormal closure): unexpected EOF

ERROR:root:Error encountered while attempting to import images from default remote.
WARNING:root:One or more setup stages failed.
DEBUG:root:Launching container
ERROR:root:Command lxc launch 0e72bbc6f257464f99a82ca06efadba1 testbed returnd a code of 1
ERROR:root: STDOUT: Creating testbed

ERROR:root: STDERR: error: not found

DEBUG:root:Cleaning up images and containers created during test
ERROR:root:Command lxc image delete 0e72bbc6f257464f99a82ca06efadba1 returnd a code of 1
ERROR:root: STDOUT:
ERROR:root: STDERR: error: not found

ERROR:root:Command lxc delete --force testbed returnd a code of 1
ERROR:root: STDOUT:
ERROR:root: STDERR: error: not found

FAIL: Container was not started and checked

Jeff Lane (bladernr) on 2017-10-31
Changed in plainbox-provider-checkbox:
importance: Undecided → Medium
Jeff Lane (bladernr) on 2017-10-31
Changed in plainbox-provider-checkbox:
status: In Progress → Fix Committed
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
milestone: 0.41.0 → 0.42.0
status: Fix Released → Fix Committed
Changed in plainbox-provider-checkbox:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers