~raharper/curtin/trunk.simple-bridge

  • Committer: Scott Moser
  • Author(s): Ryan Harper
  • Date: 2017-02-06 20:22:00 UTC
  • mfrom: (432.2.15 trunk.lp1635560)
  • Revision ID: smoser@ubuntu.com-20170206202200-qqfmooorwxo7ed0a
content decoding in load_file, apply_net raise exception on errors

This patch series fixes two issues. First, subcommands of the apply_net
command were exiting non-zero but we failed to raise and exception
which let curtin hide an error. We've modified apply_net to re-raise
the exception when it occurs. Additionally update vmtest to look for
stack-traces in the installation log and mark a test failed if it
detects one; this should prevent future cases from re-occurring.

The second error is when loading a file with and encoding, load_file
did not handle this case. Merge in a version of load_file from
cloud-init which already handles this case. Introduce new
unittests to validate the function as it touches some block related
code where we read partition data directly.

Finally, the mock_open feature of unittest.mock only supports
binary data in version 2.0.0 or newer, so skip this unittest on
systems without a new-enough mock; note this does not affect
the function of the code on the same release, only the unittest.
Filename Latest Rev Last Changed Committer Comment Size
..
partitioning-demos 207.1.144 8 years ago Wesley Wiedenmeier Reorganized examples into demos and config files f Diff
tests 207.1.144 8 years ago Wesley Wiedenmeier Reorganized examples into demos and config files f Diff
apt-source.yaml 389.7.244 7 years ago Christian Ehrhardt APT: rework examples and documentation Now that w 10.1 KB Diff Download File
basic.yaml 207.1.22 8 years ago Wesley Wiedenmeier Added demo of custom partitioning to config exampl 454 bytes Diff Download File
finalize.windows 254.2.7 8 years ago Scott Moser merge with trunk 1.2 KB Diff Download File
network-all.yaml 380.1.1 8 years ago Ryan Harper net: introduce 'control' field to network configur 3.1 KB Diff Download File
network-bond.yaml 253.2.5 8 years ago ryan.harper at canonical Inject versioned network config Use the same dict 1.2 KB Diff Download File
network-bridge.yaml 253.2.5 8 years ago ryan.harper at canonical Inject versioned network config Use the same dict 769 bytes Diff Download File
network-ipv6-bond-vlan.yaml 416.4.3 7 years ago Ryan Harper fix up test-cases for ipv6 1.4 KB Diff Download File
network-iscsiroot.yaml 387.2.1 8 years ago Ryan Harper Remove the use of eth for interface names; we want 1 KB Diff Download File
network-simple.yaml 253.2.5 8 years ago ryan.harper at canonical Inject versioned network config Use the same dict 728 bytes Diff Download File
network-vlan.yaml 253.2.5 8 years ago ryan.harper at canonical Inject versioned network config Use the same dict 585 bytes Diff Download File