~mpontillo/curtin/fix-improper-bond-parameters-bug-1588547

Viewing all changes in revision 371.

  • Committer: Ryan Harper
  • Date: 2016-04-04 16:49:11 UTC
  • Revision ID: ryan.harper@canonical.com-20160404164911-88w0dx2ynhla2hgl
block: add debug regarding raid modules being missing on mdadm create

While testing for Precise with HWE Kernels we ran into Launchpad bug 1519470
again. To make the error more readable to what actually causes it we add some
lsmod and modinfo before.

Before just:
Stderr: u'mdadm: Defaulting to version 1.2 metadata\nmdadm: RUN_ARRAY failed: Invalid argument\n'

Now augmented by a clear:
mdadm_create failed - extra debug regarding md modules
Running command ['lsmod'] with allowed return codes [0] (shell=False, capture=True)
modules loaded:
Module Size Used by
dm_crypt 23456 0
iscsi_tcp 18587 0
libiscsi_tcp 25377 1 iscsi_tcp
libiscsi 57717 2 iscsi_tcp,libiscsi_tcp
scsi_transport_iscsi 89953 3 iscsi_tcp,libiscsi
floppy 70207 0
pata_acpi 13038 0

Running command ['find', '/lib/modules/3.13.0-77-generic/kernel/drivers/md'] with allowed return codes [0, 1] (shell=False, capture=True)
no available md modules found

Along it fixes an issue in PsuedoTests that was introduced with the HWE testing.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: