~raharper/curtin:vmtest/disable-trusty

Last commit made on 2019-05-02
Get this branch:
git clone -b vmtest/disable-trusty https://git.launchpad.net/~raharper/curtin
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Branch information

Name:
vmtest/disable-trusty
Repository:
lp:~raharper/curtin

Recent commits

1736c46... by Ryan Harper

vmtest: disable trusty, it's dead jim

d8e45d7... by Ryan Harper

vmtest: reenable UEFI 4k tests, which got dropped when fixing subclassing.

af25620... by Ryan Harper

vmtests: Add test_kernel_img_conf stub for PsuedoVMBaseClass

This fixes tests_vmtests failures due to missing stub for kernel-img-conf
file check.

309e76d... by Ryan Harper

curthooks: chzdev_import must encode data if provided

subprocess's stdin requires a bytes-like object so callers
must encode string values to bytes before submitting them.

LP: #1825007

16b46e1... by Ryan Harper

vmtest: test for kernel-img conf on ubuntu only

This fixes errors found during Centos tests as we only
create a kernel-img.conf on Ubuntu releases.

08bf6ff... by Dimitri John Ledkov

Setup kernel-img.conf like base-installer/live-installer did.

LP: #1534162

4795607... by Jean-Baptiste Lallement

zfs: pass pool and fs properties to zpool_create

block-meta use of zpool_create did not supply the optional parameters
that are supported in the zfs/zpool configuration dictionary. Fix
this by extracting the values from the config and passing them
to zpool_create.

LP: #1823682

8e08215... by Michael Hudson-Doyle

block_meta: pass lvm_partition size through human2bytes

type:lvm_partition schema allows for the 'size' field as integer
or string. Process the 'size' value through human2bytes which
converts 'size' values into bytes.

36351de... by Ryan Harper

clear-holders: refactor bcache shutdown and add longer timeout

Currently curtin will shutdown a bcache device by stopping the associated
cacheset. In some cases, the cacheset is responsible for multiple backing
devices each of which may have a large amount of dirty data which needs to
be flushed to the backing device before the cacheset can completely stop.

A better approach is to stop each backing device and monitor for when
their dirty-data and state indicate that it's clean and once all
related backing devices were stopped to stop the cacheset. However,
this triggered numerous kernel BUG() in kernels from Xenial 4.4 GA
through Disco 5.0 kernels.

A second approach unregistered the cacheset device; this was an
improvement but ultimately still triggered kernel BUG() in several
released kernels. This would have introduced a regression from
current behavior.

This patchset retains the original process of stopping the cacheset
and then the bcache device, however it refactors the code which
discovers, stops and waits into curtin.block.bcache and introduces
a higher timeout while waiting for bcache devices to stop.
The original fix mentioned was a 1200 second timeout.
This patch retains the total time, but breaks the sleep periods
up into smaller amounts and progressively increases the timeout.

LP: #1796292

c78ce6d... by Paride Legovini

schema-validate-storage: remove unused imports

Fixes pyflakes failure:

  tools/schema-validate-storage:3: 'jsonschema' imported but unused
  tools/schema-validate-storage:4: 'json' imported but unused
  tools/schema-validate-storage:6: 'yaml' imported but unused