]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
ftests: Init LXC in a separate thread
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 30 Mar 2022 14:12:52 +0000 (08:12 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Fri, 1 Apr 2022 14:02:02 +0000 (08:02 -0600)
commit546c9bd0159abe0c3ddc6c59e1bd2fbc0bacd0fb
tree6d04242f24dd2060ee31b53bc8f156ea0deffb3a
parent6ea126bd7a42b302eadcc806ee1354ba3cafdf9c
ftests: Init LXC in a separate thread

Occasionally LXC fails with a socket timeout error when running
on Github Actions.  To alleviate this, run `lxc init` in a separate
thread.  While init is running, periodically print an inane log
message in an attempt to appease Github Actions.  If `lxc init`
fails, Container() will now retry the init up to five times.

Error: Failed instance creation: write unix
@->/var/snap/lxd/common/lxd/unix.socket: i/o timeout

Error: Failed instance creation: websocket: close 1006
(abnormal closure): unexpected EOF

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
ftests/container.py