lp:~raharper/curtin/fix-lp1531520
- Get this branch:
- bzr branch lp:~raharper/curtin/fix-lp1531520
Branch merges
- Server Team CI bot: Approve (continuous-integration)
- curtin developers: Pending requested
-
Diff: 340 lines (+84/-53)3 files modifiedcurtin/block/mdadm.py (+38/-22)
curtin/commands/block_meta.py (+7/-7)
tests/unittests/test_block_mdadm.py (+39/-24)
Related bugs
Bug #1531520: raid preserve issues discovered upon use from block_meta | Medium | Fix Released |
Related blueprints
Branch information
Recent revisions
- 339. By Ryan Harper
-
Introduce assert_
valid_devpath Reduce duplicate code of raising ValueError when provided an invalid devpath.
- 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. - 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