lp:~paolo-de-rosa/curtin/curtin

Created by Paolo de Rosa on 2016-04-24 and last modified on 2016-04-26
Get this branch:
bzr branch lp:~paolo-de-rosa/curtin/curtin
Only Paolo de Rosa can upload to this branch. If you are Paolo de Rosa please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Paolo de Rosa
Project:
curtin
Status:
Development

Recent revisions

386. By Paolo de Rosa on 2016-04-26

fix indenteation

385. By Paolo de Rosa on 2016-04-24

fix join syntax

384. By Paolo de Rosa on 2016-04-24

small patch to load apt mirrors keys

383. By Ryan Harper on 2016-04-21

block_meta: fix previous partition size, start conversion with 4k sectors

On systems with logical_block_size = 4096, the values for size and start
in sysfs are still in 512b sector size. Handle this by converting the
sysfs values to bytes and then converting to sectors based on the logical
block size value.

Add vmtests to test when running with 4k sector sizes.

382. By Ryan Harper on 2016-04-20

curtin.net: emit source /etc/network/interfaces.d/*.cfg in eni

- Play nice with users and have eni source interfaces.d configurations.
- Fix up network unittests
  - Remove restriction in curtin's eni parser about iface redefinition;
    man (5) interfaces says this is allowed.
  - Update output of render_interfaces to account for source line
- Add vmtest to test user-defined network config in interfaces.d

381. By Ryan Harper on 2016-04-17

net: introduce 'control' field to network configuration

Allow users to specify how they want ifupdown to treat the
interface. The default value for control is 'auto' which
results in an auto $iface line in eni. If control is
'manual', then we emit a comment instead, # control-manual $iface
Any other value of control will emit a an allow-$control value.

These lines control whether ifupdown will ensure the interfaces are
up during boot. auto and hotplug ifaces will be considered a requirement
for network to be "up".

The 'manual' setting is useful for things like iscsiroot which
will configure networking in initramfs and when the root filesystem
runs, we do not want ifupdown to bring the interface used to connect
to the iscsi target up or down.

380. By Ryan Harper on 2016-04-12

vmtests: complete the removal of net.ifnames boot parameter

In addition from removing it from the base class, we also need
to update tools/maas2roottar which writes its own eni. We
dropped the auto eth0 and added a source line to make use of
the cloud-init written eni sourced config.

cloud images older than Xenial will make use of the the
/etc/network/interfaces.d/eth0.cfg that's written into them.

379. By Scott Moser on 2016-04-08

vmtests: add network vlan testing

- Utilize a real vlan configuration used in openstack deployments which on
  trusty sometimes triggers a bug/issue with ifupdown (lp:1565711)

378. By Scott Moser on 2016-04-08

disable cloud-init networking

Curtin provides networking information statically into the system.
cloud-init's networking discovery and fallback is used in other
cases where no explicit networking is provided.

In theory they should be able to live side by side without disabling
cloud-init, however:
 * the next commit (vlan fixes) seems to have issues without disabling
   cloud-init networking.
 * best case, having both of these network configurations written is
   still confusing.

cloud-init's networking should be effectively disabled because curtin
writes
 /etc/udev/rules.d/70-persistent-net.rules
while cloud-init writes .link files into
 /etc/systemd/network/50-cloud-init-*.link

Also, curtin's ENI stanzas would be consumed before
cloud-init's ENI changes in /etc/network/interfaces.d/50-cloud-init.cfg
-------------- this line and the following will be ignored --------------

modified:
  curtin/net/__init__.py
unknown:
  20160305.txt
  20160308.txt
  all.json
  better-multipath-hack.diff
  boot-initrd
  curtin-common_0.1.0~bzr359-0ubuntu1_all.deb
  curtin-common_0.1.0~bzr365-0ubuntu1_all.deb
  curtin-python2_0.1.0~bzr359-0ubuntu1_all.deb
  curtin.egg-info/
  curtin_0.1.0~bzr359-0ubuntu1.debian.tar.xz
  curtin_0.1.0~bzr359-0ubuntu1.dsc
  curtin_0.1.0~bzr359-0ubuntu1_all.deb
  curtin_0.1.0~bzr359-0ubuntu1_amd64.build@
  curtin_0.1.0~bzr359-0ubuntu1_amd64.changes
  curtin_0.1.0~bzr359-0ubuntu1_source.build
  curtin_0.1.0~bzr359-0ubuntu1_source.changes
  curtin_0.1.0~bzr359.orig.tar.gz
  curtin_0.1.0~bzr365-0ubuntu1.debian.tar.xz
  curtin_0.1.0~bzr365-0ubuntu1.dsc
  curtin_0.1.0~bzr365-0ubuntu1_all.deb
  curtin_0.1.0~bzr365-0ubuntu1_amd64.build@
  curtin_0.1.0~bzr365-0ubuntu1_amd64.changes
  curtin_0.1.0~bzr365-0ubuntu1_source.build
  curtin_0.1.0~bzr365-0ubuntu1_source.changes
  curtin_0.1.0~bzr365.orig.tar.gz
  foo
  max.json
  msg
  my.py
  out
  out.diff
  out.log
  out.svg
  out3.log
  python-curtin_0.1.0~bzr359-0ubuntu1_all.deb
  python-curtin_0.1.0~bzr365-0ubuntu1_all.deb
  python3-curtin_0.1.0~bzr359-0ubuntu1_all.deb
  python3-curtin_0.1.0~bzr365-0ubuntu1_all.deb
  rootfs.tar.xz
  save-curtin-python2.diff
  tags
  xenial-core-amd64.tar.gz
  debian/curtin-python2.install
pending merges:
  ryan harper 2016-04-07 use util.write_file for writing network configuration files
    ryan harper 2016-04-06 vmtests: enhance vlan testing on all releases
    ryan harper 2016-04-05 fix up vlan test-case
    ryan harper 2016-04-05 convert before concat
    ryan harper 2016-04-05 [merge] from trunk
    ryan harper 2016-04-05 vmtests/vlan: expand vlan test-case to check iface is configured with vlan_id
    ryan harper 2016-04-04 vmtests: add vlan testcase
    ryan harper 2016-04-04 [merge] from trunk

377. By Ryan Harper on 2016-04-05

tools/vmtest-sync-images: fix insertion of top-level curtin path

Fix up sys.path to import realpath of top-level curtin directory to make
it equivalent to running PYTHONPATH=`pwd` from top-level. This fixed an
issue with sub-module level imports.

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