lp:~raharper/curtin/fix-lp1531520

Created by Ryan Harper and last modified
Get this branch:
bzr branch lp:~raharper/curtin/fix-lp1531520
Only Ryan Harper can upload to this branch. If you are Ryan Harper please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Ryan Harper
Project:
curtin
Status:
Merged

Recent revisions

340. By Ryan Harper

from trunk

339. By Ryan Harper

Introduce assert_valid_devpath

Reduce duplicate code of raising ValueError when provided an invalid devpath.

338. By Ryan Harper

Use common message formatting when raising ValueError exceptions

337. By Ryan Harper

mdadm, block_meta: enforce use of devpath when specifying device names

Ensure all entry-points in mdadm which expect a device name are prefixed
with /dev/ otherwise raise a ValueError. This aides in finding code paths
which may pass in storage ids instead of looking doing a lookup on the id
and determining the device path.

336. By Ryan Harper

mdadm_create: raise exception if passed an invalid md_devname

335. By Ryan Harper

mdadm: don't attempt to convert degraded to integer

There's no need to convert attribute to integer, instead just
check if it isn't "0", ie, not degraded.

334. By Ryan Harper

md_sysfs_attr: fix inverted logic on isfile check

Ensure we attempt to load the contents of a file if it is a file.
Replace open-coded call to open with util.load_file()

333. By Ryan Harper

md_check function is part of the block.mdadm module

When running raid with 'preserve' flag raised, the code called
md_check from the wrong module.

332. By Scott Moser

fix bug in install_grub to partition when storage_config provided.

when installing with a storage config and grub is to be installed
on a partition (as it is in powerpc) we were not able to look
up the device that was to be installed on.

This puts a temporary bit of code in place that finds that device
via imports from commands.block_meta. The result is that
storage_config now works for lvm on power8 systems.

331. By Scott Moser

url_helper: raise import error on lack of oauth only when oauth is used

Previously url_helper.py would raise exception if no oauth module
was present. That is definitely reasonable.

However, in the jenkins 'vmtest' test environment there was no oauth
available. Everything else would have been fine, and only
'curtin pack' is executed from the host. It feels like curtin pack
is sane to want to run with minimal dependencies.

I do definitely want to be careful with the dynamic manner here.
However, outside of MAAS reporter using oauth, it really is a unlikely
path to be hit. And MAAS's use case is still satisfied because
--install-deps is provided.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:~curtin-dev/curtin/trunk
This branch contains Public information 
Everyone can see this information.

Subscribers