~raharper/curtin:fix/tip-flake8

Last commit made on 2020-05-12
Get this branch:
git clone -b fix/tip-flake8 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:
fix/tip-flake8
Repository:
lp:~raharper/curtin

Recent commits

16a6f30... by Ryan Harper on 2020-05-12

Replace 'l' for 'L' to make tip flake8 happy

LP: #1878236

331013c... by Ryan Harper on 2020-05-12

tox: add tip-flake8 environment

bb22f27... by Ryan Harper on 2020-05-12

Add config for installing/configuring crashdump

8a95a8e... by Ryan Harper on 2020-05-12

Remove \ from regex

5f9ab1b... by Ryan Harper on 2020-05-12

configure vmtest to to panic vms and detect failure

05f4759... by Ryan Harper on 2020-05-11

vmtest: add parameters to trigger guest exit on softlockup/panic

6cbdc02... by Ryan Harper on 2020-05-07

Makefile: make adjustments to call lint/style tools via python module

- Drop nosetest invocation
- Drop tools/run-pyflakes*
- Add pylint targets
- Add pylintopts and target_dirs
- Fix style and lint issues

145e493... by Ryan Harper on 2020-05-07

block-discover: ignore invalid id_serial/id_wwn values

When obtaining unique ids for identifying a block storage
device, block-discover looks for ID_WWN and ID_SERIAL values
and will use them in the rendered storage config. In some cases
the value of these attributes may be invalid. For example, some
consumer disks might have an invalid WWN number:

0x00000000000000000000

Curtin will also ignore empty values, like
ID_SERIAL=' '

Excluded ids will not be emitted in the final storage config.

LP: #1876848

8ab48f6... by Ryan Harper on 2020-05-06

Fix handing of reusing msdos partitions and flags

Disks with an MSDOS partition table and one partition with the
'bootable' flag set exposed a parsing error in block.sfdisk_info;
further digging revealed that curtin was not setting the bootable
flag on MSDOS partitions when required. Not setting isn't fatal,
grub still boots the partition, but we should set the flag if told
to do so. Additionally storage-config conversion of probe data
where the MSDOS boot flag is set was missing. The following changes
are done to fix this issue

- switch to sfdisk --json output and use/introduce util.load_json()
- block-meta: update parted command to set boot flag if present
- block-discover: prefer ID_PART_ENTRY_FLAGS when present, and 0x80
- Add vmtest to verify reuse of msdos partition and bootable flag
- Fix boot, extended, logical flag verfication
- Fix extended partition size verification

LP: #1875903

f4bd38f... by Michael Hudson-Doyle on 2020-05-05

block.detect_multipath: ignore fake "devices" from /proc/mounts

A tmpfs can be mounted with any old junk in the "device" field and
unfortunately casper sometimes puts "/dev/shm" there, which is usually a
directory. Ignore such cases.

LP: #1876626