Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:feature/pregen-locale into cloud-init:master

2017-07-20 Thread Chad Smith
Diff comments: > diff --git a/tests/unittests/test_distros/test_debian.py > b/tests/unittests/test_distros/test_debian.py > new file mode 100644 > index 000..bd7721c > --- /dev/null > +++ b/tests/unittests/test_distros/test_debian.py > @@ -0,0 +1,70 @@ > +# This file is part of cloud-init.

Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:feature/pregen-locale into cloud-init:master

2017-07-20 Thread Chad Smith
Diff comments: > diff --git a/tests/unittests/test_distros/test_debian.py > b/tests/unittests/test_distros/test_debian.py > new file mode 100644 > index 000..bd7721c > --- /dev/null > +++ b/tests/unittests/test_distros/test_debian.py > @@ -0,0 +1,70 @@ > +# This file is part of cloud-init.

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unittests-in-cloudinit-package into cloud-init:master

2017-07-27 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py > index d1740e5..8745ee7 100644 > --- a/cloudinit/net/__init__.py > +++ b/cloudinit/net/__init__.py > @@ -557,6 +558,67 @@ def get_interfaces(): > return ret > > > +class EphemeralIPv4Network(object): >

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unittests-in-cloudinit-package into cloud-init:master

2017-07-27 Thread Chad Smith
Per our discussion today, I simplified logic in EphemeralIPv4Network context manager to first attempt to add a network address and handle a non-zero exit code if the address already exits. All changes have been made per review comments, I separated out get_ip_info utility function so we can pro

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unittests-in-cloudinit-package into cloud-init:master

2017-07-27 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:unittests-in-cloudinit-package into cloud-init:master has been updated. Commit Message changed to: cloudinit.net: add initialize_network_device function and tests This is not yet called, but will be called in a subsequent Ec2-related branch to manua

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unittests-in-cloudinit-package into cloud-init:master

2017-07-27 Thread Chad Smith
Just tested on ubuntu AWS. minor fix needed to remove the route before removing the address, because the side-effect of removing the addr is the route is auto-deleted. -- https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/327827 Your team cloud-init commiters is requested t

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unittests-in-cloudinit-package into cloud-init:master

2017-07-27 Thread Chad Smith
Just validated on cent6 too: 2017-07-27 21:33:19,762 - handlers.py[DEBUG]: finish: init-local/search-Ec2Local: SUCCESS: found local data from DataSourceEc2Local -- https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/327827 Your team cloud-init commiters is requested to revie

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master

2017-08-01 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master with ~chad.smith/cloud-init:unittests-in-cloudinit-package as a prerequisite. Commit message: ec2: Allow Ec2 to run in init-local using dhclient in a sandbox. This branch is a prerequisite for IPv6

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master

2017-08-01 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master has been updated. Commit Message changed to: ec2: Allow Ec2 to run in init-local using dhclient in a sandbox. This branch is a prerequisite for IPv6 support in AWS and allows Ec2 datasource to query the metadata

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master

2017-08-03 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/net/dhcp.py b/cloudinit/net/dhcp.py > new file mode 100644 > index 000..4d59bd0 > --- /dev/null > +++ b/cloudinit/net/dhcp.py > @@ -0,0 +1,118 @@ > +# Copyright (C) 2017 Canonical Ltd. > +# > +# Author: Chad Smith > +# &

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master

2017-08-03 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/sources/DataSourceEc2.py > b/cloudinit/sources/DataSourceEc2.py > index 4ec9592..ae0fe26 100644 > --- a/cloudinit/sources/DataSourceEc2.py > +++ b/cloudinit/sources/DataSourceEc2.py > @@ -73,21 +77,25 @@ class DataSourceEc2(sources.DataSource): >

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master

2017-08-03 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py > index 46cb9c8..d38ea8b 100644 > --- a/cloudinit/net/__init__.py > +++ b/cloudinit/net/__init__.py > @@ -233,15 +231,24 @@ def generate_fallback_config(blacklist_drivers=None, > config_driver=None): > if D

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-local-dhcp into cloud-init:master

2017-08-04 Thread Chad Smith
All comments addressed, and we now handle backward compatibility for old metadata versions. Diff comments: > diff --git a/cloudinit/net/__init__.py b/cloudinit/net/__init__.py > index 46cb9c8..d38ea8b 100644 > --- a/cloudinit/net/__init__.py > +++ b/cloudinit/net/__init__.py > @@ -175,12 +175,10

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:analyze into cloud-init:master

2017-08-09 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:analyze into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/328819 tools: Add tooling for basic cloud-init

Re: [Cloud-init-dev] [Merge] ~raharper/cloud-init:bug-lp-1709180-v2-params into cloud-init:master

2017-08-10 Thread Chad Smith
Approved with minor nits questions inline. +1! Validated and inspected netplan output with the following: PYTHONPATH=. ./tools/net-convert.py --network-data=net-config.yaml --kind=yaml --output-kind=netplan --directory=out.d --mac=eth0,52:54:00:12:34:00 --mac=ens4,52:54:00:12:34:02 Prior to t

Re: [Cloud-init-dev] [Merge] ~rmccabe/cloud-init:dns_redirect_detect into cloud-init:master

2017-08-10 Thread Chad Smith
Thanks for the submit Ryan, is there an existing bug that was filed against cloud-init for this issue? It'd be great to have the bug as reference for future concerned parties/clouds. -- https://code.launchpad.net/~rmccabe/cloud-init/+git/cloud-init/+merge/328877 Your team cloud-init commiters is

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:cc-landscape-py3-config-fix into cloud-init:master

2017-08-15 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:cc-landscape-py3-config-fix into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) Related bugs: Bug #1699282 in cloud-init: "cloud-init process fails to configure puppet" https://bugs.launchpad.net/

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:cc-landscape-py3-config-fix into cloud-init:master

2017-08-15 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:cc-landscape-py3-config-fix into cloud-init:master has been updated. Description changed to: cc_landscape & cc_puppet: Fix six.StringIO use in writing configs Both landscape and puppet modules had issues with the way they wrote /etc/landscape/client

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:cc-landscape-py3-config-fix into cloud-init:master

2017-08-16 Thread Chad Smith
comments addressed Diff comments: > diff --git a/tests/unittests/test_handler/test_handler_landscape.py > b/tests/unittests/test_handler/test_handler_landscape.py > new file mode 100644 > index 000..d35ba60 > --- /dev/null > +++ b/tests/unittests/test_handler/test_handler_landscape.py > @@ -

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:schema-subcommand into cloud-init:master

2017-08-17 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:schema-subcommand into cloud-init:master with ~chad.smith/cloud-init:analyze as a prerequisite. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud

Re: [Cloud-init-dev] [Merge] ~raharper/cloud-init:default-lang-c-utf8 into cloud-init:master

2017-08-18 Thread Chad Smith
Looks good, just some inline nits and questions Diff comments: > diff --git a/cloudinit/distros/debian.py b/cloudinit/distros/debian.py > index abfb81f..b2904e8 100644 > --- a/cloudinit/distros/debian.py > +++ b/cloudinit/distros/debian.py > @@ -246,9 +250,17 @@ def apply_locale(locale, sys_path=

Re: [Cloud-init-dev] [Merge] ~powersj/cloud-init:cii-kvm into cloud-init:master

2017-08-18 Thread Chad Smith
Looks good, initial comments and running through tests now. Diff comments: > diff --git a/tests/cloud_tests/images/kvm.py b/tests/cloud_tests/images/kvm.py > new file mode 100644 > index 000..008acef > --- /dev/null > +++ b/tests/cloud_tests/images/kvm.py > @@ -0,0 +1,75 @@ > +# This file is

Re: [Cloud-init-dev] [Merge] ~powersj/cloud-init:cii-kvm into cloud-init:master

2017-08-18 Thread Chad Smith
Additionally, since you are importing paramiko, we probably need a dev dependency added to requirements-test.txt -- https://code.launchpad.net/~powersj/cloud-init/+git/cloud-init/+merge/327646 Your team cloud-init commiters is requested to review the proposed merge of ~powersj/cloud-init:cii-kv

Re: [Cloud-init-dev] [Merge] ~powersj/cloud-init:cii-kvm into cloud-init:master

2017-08-18 Thread Chad Smith
Diff comments: > diff --git a/tests/cloud_tests/instances/kvm.py > b/tests/cloud_tests/instances/kvm.py > new file mode 100644 > index 000..c855e07 > --- /dev/null > +++ b/tests/cloud_tests/instances/kvm.py > @@ -0,0 +1,222 @@ > +# This file is part of cloud-init. See LICENSE file for licen

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:schema-subcommand into cloud-init:master

2017-08-19 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:schema-subcommand into cloud-init:master has been updated. Description changed to: schema cli: Add schema subcommand to cloud-init cli and cc_runcmd schema This branch adds an jsonschema definition for the cc_runcmd module. cc_ntp is the only other

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:schema-subcommand into cloud-init:master

2017-08-19 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:schema-subcommand into cloud-init:master has been updated. Description changed to: schema cli: Add schema subcommand to cloud-init cli and cc_runcmd schema This branch adds an jsonschema definition for the cc_runcmd module. cc_ntp is the only other

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:schema-subcommand into cloud-init:master

2017-08-19 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:schema-subcommand into cloud-init:master has been updated. Description changed to: schema cli: Add schema subcommand to cloud-init cli and cc_runcmd schema This branch adds an jsonschema definition for the cc_runcmd module. cc_ntp is the only other

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:cc-landscape-py3-config-fix into cloud-init:master

2017-08-21 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/config/cc_puppet.py b/cloudinit/config/cc_puppet.py > index dc11561..28b1d56 100644 > --- a/cloudinit/config/cc_puppet.py > +++ b/cloudinit/config/cc_puppet.py > @@ -43,12 +45,13 @@ yaml notation). > install: > version: > conf:

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:cc-landscape-py3-config-fix into cloud-init:master

2017-08-22 Thread Chad Smith
Thanks for the patience on this. I figured out the issue I had with my calls to helpers.wrap_and_call resulted from relying on mock.patch(return_value) instead of mock.patch(new) Diff comments: > diff --git a/tests/unittests/test_handler/test_handler_landscape.py > b/tests/unittests/test_hand

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:fix-cloudinit-subcommands into cloud-init:master

2017-08-23 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:fix-cloudinit-subcommands into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) Related bugs: Bug #1712676 in cloud-init: "Cloud-init analyzeand devel commandline traceback" https://bugs.launchpad

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master

2017-08-24 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329499 ec2: Add IPv6 dhcp support to

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master

2017-08-24 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master has been updated. Description changed to: ec2: Add IPv6 dhcp support to Ec2DataSource. DataSourceEc2 now parses the metadata for each nic to determine if configured for ipv6 and/or ipv4 addresses. In AWS f

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master

2017-08-24 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master has been updated. Description changed to: ec2: Add IPv6 dhcp support to Ec2DataSource. DataSourceEc2 now parses the metadata for each nic to determine if configured for ipv6 and/or ipv4 addresses. In AWS f

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master

2017-08-25 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master. Requested reviews: Server Team CI bot (server-team-bot): continuous-integration cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master

2017-08-25 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:aws-ipv6-dhcp-support into cloud-init:master has been updated. Description changed to: ec2: Add IPv6 dhcp support to Ec2DataSource. DataSourceEc2 now parses the metadata for each nic to determine if configured for ipv6 and/or ipv4 addresses. In AWS f

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master

2017-08-25 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master has been updated. Status: Needs review => Work in progress For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329589 -- Your team cloud-init commiters is

Re: [Cloud-init-dev] [Merge] ~ajorgens/cloud-init:py27-analyze into cloud-init:master

2017-08-25 Thread Chad Smith
Oops. Thanks Andrew. Yeah, sloppy. my bad. Hmm wondering if we need IOError there too. -- https://code.launchpad.net/~ajorgens/cloud-init/+git/cloud-init/+merge/329653 Your team cloud-init commiters is requested to review the proposed merge of ~ajorgens/cloud-init:py27-analyze into cloud-init:m

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unittest-oauthlib-import into cloud-init:master

2017-08-29 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:unittest-oauthlib-import into cloud-init:master has been updated. Description changed to: url_helper: dynamically import oauthlib import from inside oauth_headers oauth_headers is the only function which requires oauthlib, move the import and ImportE

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unittest-oauthlib-import into cloud-init:master

2017-08-29 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:unittest-oauthlib-import into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329872 url_helper: dynamically

Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:cleanup/drop-ubuntu-init-switch into cloud-init:master

2017-08-30 Thread Chad Smith
We need to drop the module from doc/rtd/topics/modules.rst too. .. automodule:: cloudinit.config.cc_ubuntu_init_switch -- https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/329946 Your team cloud-init commiters is requested to review the proposed merge of ~smoser/cloud-init:c

Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:cleanup/drop-ubuntu-init-switch into cloud-init:master

2017-08-30 Thread Chad Smith
so that I understand intent here. We are leaving upstart logic in place so that tip could be used to still generate upstart-based packages if we wanted. We just don't want to package that init system by default anymore right? -- https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merg

Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:cleanup/drop-ubuntu-init-switch into cloud-init:master

2017-08-30 Thread Chad Smith
Hrm, I'm still seeing upstart jobs included in /etc/init/*conf dpkg -L cloud-init | grep etc/init /etc/init /etc/init/cloud-init-blocknet.conf /etc/init/cloud-init-container.conf /etc/init/cloud-init-nonet.conf /etc/init/cloud-final.conf /etc/init/cloud-init-local.conf /etc/init/cloud-log-shutdow

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master

2017-08-31 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330040 ec2 tests: Stop

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master

2017-08-31 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master has been updated. Description changed to: ec2 tests: Stop leaking calls through unmocked metadata addresses DataSourceEc2 behavior changed to first check a minimum acceptable metadata version uri

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master

2017-08-31 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master has been updated. Status: Needs review => Merged For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330040 -- Your team cloud-init commiters is re

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master

2017-08-31 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:bug/ec2-tests-unmocked-metadata into cloud-init:master has been updated. Commit Message changed to: ec2 tests: Stop leaking calls through unmocked metadata addresses DataSourceEc2 behavior changed to first check a minimum acceptable metadata version

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/move-base-testcase into cloud-init:master

2017-09-01 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/move-base-testcase into cloud-init:master has been updated. Commit Message changed to: tests: Move tests/unittests/helpers.py to cloudinit/tests/helpers Long term, we want unit tests to be as close as possible to the module they are testing t

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/move-base-testcase into cloud-init:master

2017-09-01 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/move-base-testcase into cloud-init:master has been updated. Description changed to: tests: Move tests/unittests/helpers.py to cloudinit/tests/helpers Long term, we want unit tests to be as close as possible to the module they are testing to i

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/move-base-testcase into cloud-init:master

2017-09-01 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:feature/move-base-testcase into cloud-init:master. Commit message: tests: Move tests/unittests/helpers.py to cloudinit/tests/helpers Long term, we want unit tests to be as close as possible to the module they are testing to improve test

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master

2017-09-01 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master has been updated. Status: Work in progress => Rejected For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329589 -- Your team cloud-init commiters is req

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master

2017-09-01 Thread Chad Smith
I'm pulling this together in another branch -- https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/329589 Your team cloud-init commiters is requested to review the proposed merge of ~chad.smith/cloud-init:json-datasource-metadata into cloud-init:master.

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master

2017-09-01 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330112 Datasources: Create

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master

2017-09-01 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master has been updated. Status: Needs review => Superseded For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330112 -- Your team cloud-init commiters is requ

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master

2017-09-01 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master with ~chad.smith/cloud-init:feature/move-base-testcase as a prerequisite. Requested reviews: cloud-init commiters (cloud-init-dev) Server Team CI bot (server-team-bot): continuous

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/move-base-testcase into cloud-init:master

2017-09-05 Thread Chad Smith
> I've updated the original merge proposal so that applies cleanly and passes > with current master. Please use that one, and let me fix it if it needs > additional changes. Thanks! Thanks Lars, forgot about those meddling vacations ;) welcome back -- https://code.launchpad.net/~chad.smith/cloud-

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-05 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330243 schema: Add json

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-05 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master has been updated. Description changed to: schema: Add json schema to resizefs and bootcmd modules Add schema definitions to both cc_resizefs and cc_bootcmd modules. Those schema defintions are us

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-05 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master has been updated. Description changed to: schema: Add json schema to resizefs and bootcmd modules Add schema definitions to both cc_resizefs and cc_bootcmd modules. Those schema defintions are us

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-05 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master has been updated. Description changed to: schema: Add json schema to resizefs and bootcmd modules Add schema definitions to both cc_resizefs and cc_bootcmd modules. Those schema defintions are us

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-05 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master has been updated. Description changed to: schema: Add json schema to resizefs and bootcmd modules Add schema definitions to both cc_resizefs and cc_bootcmd modules. Extend schema.py to parse and

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-05 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master has been updated. Description changed to: schema: Add json schema to resizefs and bootcmd modules Add schema definitions to both cc_resizefs and cc_bootcmd modules. Extend schema.py to parse and

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests/slow-openstack-datasource-tests into cloud-init:master

2017-09-05 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:tests/slow-openstack-datasource-tests into cloud-init:master has been updated. Description changed to: tests: mock missed openstack metadata uri network_data.json This missed mock in test_openstack resulted in a costly unit test timeout. LP: #17143

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests/slow-openstack-datasource-tests into cloud-init:master

2017-09-05 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:tests/slow-openstack-datasource-tests into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) Related bugs: Bug #1714376 in cloud-init: "unittests: OpenStack DS escape or timeout" https://bugs.lau

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests/slow-openstack-datasource-tests into cloud-init:master

2017-09-05 Thread Chad Smith
Leaving the overhaul of register_mock_metaserver for a separate branch which would consolidate AliYun, Ec2 and OpenStack tests to use the same httpretty mocking pattern. -- https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330253 Your team cloud-init commiters is requested

Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:bug/1715241-openstack-maybe-on-non-intel into cloud-init:master

2017-09-06 Thread Chad Smith
Ok so this adds a slight cost to non-x86 platforms init-network stage by placing a maybe on OpenStack datasource right? This maybe openstack still won't affect datasources which now run in init-local because they would have already been discovered. So ConfigDrive, Ec2,SmartOS, OpenNebula,DO etc

Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:bug/1715241-openstack-maybe-on-non-intel into cloud-init:master

2017-09-06 Thread Chad Smith
Diff comments: > diff --git a/tests/unittests/test_ds_identify.py > b/tests/unittests/test_ds_identify.py > index 1a81a89..c389029 100644 > --- a/tests/unittests/test_ds_identify.py > +++ b/tests/unittests/test_ds_identify.py > @@ -261,6 +268,29 @@ class TestDsIdentify(CiTestCase): > s

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests/slow-openstack-datasource-tests into cloud-init:master

2017-09-06 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:tests/slow-openstack-datasource-tests into cloud-init:master has been updated. Status: Needs review => Merged For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330253 -- Your team cloud-init commiter

Re: [Cloud-init-dev] [Merge] ~powersj/cloud-init:cii-kvm into cloud-init:master

2017-09-06 Thread Chad Smith
Thanks for working this josh. Here are a few more more comments. I'm still seeing spurious issues on my laptop trying to run this (I just hit an OOM as well) and NoValidConnectionsError from paramiko. But I have also seen successful runs. I'm +1 on this iteration with various fixes/comments inli

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

2017-09-07 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master. Requested reviews: Server Team CI bot (server-team-bot): continuous-integration cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

2017-09-07 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master has been updated. Commit Message changed to: cloud-config modules: honor distros definitions in each module Modules can optionally define a list of supported distros on which they can run by de

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

2017-09-07 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master has been updated. Commit Message changed to: cloud-config modules: honor distros definitions in each module Modules can optionally define a list of supported distros on which they can run by de

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master

2017-09-08 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master has been updated. Description changed to: Datasources: Create DataSource.get_data method in parent and write json metadata Each DataSource subclass must define its own get_data method. This branch form

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master

2017-09-08 Thread Chad Smith
Thanks for the review Ryan, pushed changes per your review comments. We should be able to handle TypeError issues during json errors and attempt encoding or exclusion of those items instead of bailing on everything. Diff comments: > diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-08 Thread Chad Smith
Good suggestions Scott, I pulled in your changes and adapted cc_runcmd, cc_ntp, cc_resizefs and cc_bootcmd to all set __doc__ through get_schema_doc(). -- https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330243 Your team cloud-init commiters is requested to review the pro

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-08 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master has been updated. Description changed to: schema and docs: Add jsonschema to resizefs and bootcmd modules Add schema definitions to both cc_resizefs and cc_bootcmd modules. Extend schema.py to p

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master

2017-09-08 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:feature/schema-resizefs-bootcmd into cloud-init:master has been updated. Description changed to: schema and docs: Add jsonschema to resizefs and bootcmd modules Add schema definitions to both cc_resizefs and cc_bootcmd modules. Extend schema.py to pa

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master

2017-09-08 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master has been updated. Description changed to: Datasources: Create DataSource.get_data method in parent and write json metadata Each DataSource subclass must define its own get_data method. This branch form

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master

2017-09-08 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:unify-datasource-get-data into cloud-init:master has been updated. Description changed to: Datasources: Create DataSource.get_data method in parent and write json metadata Each DataSource subclass must define its own get_data method. This branch form

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:collect-logs into cloud-init:master

2017-09-12 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:collect-logs into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330626 cmdline: cloud-init collect-logs Add a

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:collect-logs into cloud-init:master

2017-09-12 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:collect-logs into cloud-init:master has been updated. Description changed to: cmdline: cloud-init collect-logs Add a new collect-logs parameter to the cloud-init CLI. This script will collect all logs pertinent to a cloud-init run and store them in a

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:collect-logs into cloud-init:master

2017-09-13 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:collect-logs into cloud-init:master has been updated. Description changed to: cmdline: cloud-init collect-logs Add a new collect-logs parameter to the cloud-init CLI. This script will collect all logs pertinent to a cloud-init run and store them in a

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:chef_omnibus_version into cloud-init:master

2017-09-13 Thread Chad Smith
Pulled the original content from https://code.launchpad.net/~papodaca/cloud-init/+git/cloud-init/+merge/328943 and addresses review comments as well as added unit tests. -- https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330712 Your team cloud-init commiters is requested

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:chef_omnibus_version into cloud-init:master

2017-09-13 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:chef_omnibus_version into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) Related bugs: Bug #1462693 in cloud-init: "Need way to pin Chef version for omnibus install" https://bugs.launchpad.net/

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

2017-09-13 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/config/cc_runcmd.py b/cloudinit/config/cc_runcmd.py > index 7c3ccd4..0899d15 100644 > --- a/cloudinit/config/cc_runcmd.py > +++ b/cloudinit/config/cc_runcmd.py > @@ -22,7 +23,7 @@ from textwrap import dedent > # configuration options before actually attem

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

2017-09-13 Thread Chad Smith
Diff comments: > diff --git a/tests/unittests/test_runs/test_simple_run.py > b/tests/unittests/test_runs/test_simple_run.py > index 5cf666f..a8a2032 100644 > --- a/tests/unittests/test_runs/test_simple_run.py > +++ b/tests/unittests/test_runs/test_simple_run.py > @@ -63,5 +75,86 @@ class TestSi

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:collect-logs into cloud-init:master

2017-09-13 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:collect-logs into cloud-init:master has been updated. Description changed to: cmdline: cloud-init collect-logs Add a new collect-logs parameter to the cloud-init CLI. This script will collect all logs pertinent to a cloud-init run and store them in a

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:collect-logs into cloud-init:master

2017-09-13 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:collect-logs into cloud-init:master has been updated. Description changed to: cmdline: cloud-init collect-logs Add a new collect-logs parameter to the cloud-init CLI. This script will collect all logs pertinent to a cloud-init run and store them in a

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

2017-09-13 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/stages.py b/cloudinit/stages.py > index a1c4a51..1eb92cd 100644 > --- a/cloudinit/stages.py > +++ b/cloudinit/stages.py > @@ -821,28 +821,34 @@ class Modules(object): > skipped = [] > forced = [] > overridden = self.cfg.get('unve

Re: [Cloud-init-dev] [Merge] ~powersj/cloud-init:add-xkvm into cloud-init:master

2017-09-13 Thread Chad Smith
Diff comments: > diff --git a/tools/xkvm b/tools/xkvm > new file mode 100755 > index 000..a30ba91 > --- /dev/null > +++ b/tools/xkvm > @@ -0,0 +1,664 @@ > +#!/bin/bash > + Can you add a header comment here explaning what this is and how it's intended for use? > +set -f > + > +VERBOSITY=0

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:collect-logs into cloud-init:master

2017-09-13 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:collect-logs into cloud-init:master has been updated. Description changed to: cmdline: cloud-init collect-logs Add a new collect-logs parameter to the cloud-init CLI. This script will collect all logs pertinent to a cloud-init run and store them in a

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master

2017-09-13 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:config-modules-allow-distros-all into cloud-init:master has been updated. Commit Message changed to: cloud-config modules: honor distros definitions in each module Modules can optionally define a list of supported distros on which they can run by de

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests-fix-root-os-access-leak into cloud-init:master

2017-09-14 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:tests-fix-root-os-access-leak into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330774 tests: mock calls to

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests-fix-root-os-access-leak into cloud-init:master

2017-09-14 Thread Chad Smith
I'm not quite sure what we should do here. You are right that root user will likely never see os.access(W_OK) as False because root's a privileged user so the perms don't matter. Also, it seems that in containers we fail to resize up at cc_resizefs line 197 on ENOENT so generally trying to acco

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests-fix-root-os-access-leak into cloud-init:master

2017-09-14 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:tests-fix-root-os-access-leak into cloud-init:master has been updated. Description changed to: resizefs: Drop check and tests for read-only device file As root user, os.access(, os.W_OK) will always return True so that path will never get executed a

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:tests-fix-root-os-access-leak into cloud-init:master

2017-09-14 Thread Chad Smith
The proposal to merge ~chad.smith/cloud-init:tests-fix-root-os-access-leak into cloud-init:master has been updated. Commit Message changed to: resizefs: Drop check and tests for read-only device file As root user, os.access(, os.W_OK) will always return True so that path will never get execute

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:dhclient-from-var-tmp into cloud-init:master

2017-09-15 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:dhclient-from-var-tmp into cloud-init:master. Requested reviews: cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330875 ec2: Fix

Re: [Cloud-init-dev] [Merge] ~smoser/cloud-init:bug/1717598-fix-gce-user-data into cloud-init:master

2017-09-15 Thread Chad Smith
Diff comments: > diff --git a/cloudinit/sources/DataSourceGCE.py > b/cloudinit/sources/DataSourceGCE.py > index 94484d6..5438842 100644 > --- a/cloudinit/sources/DataSourceGCE.py > +++ b/cloudinit/sources/DataSourceGCE.py > @@ -211,8 +209,17 @@ if __name__ == "__main__": >

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:dhclient-from-var-tmp into cloud-init:master

2017-09-16 Thread Chad Smith
Test ran this on ass instances and cloud-init properly found Ec2Local datasource with no traceback. -- https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/330875 Your team cloud-init commiters is requested to review the proposed merge of ~chad.smith/cloud-init:dhclient-from-

Re: [Cloud-init-dev] [Merge] ~chad.smith/cloud-init:dhclient-from-var-tmp into cloud-init:master

2017-09-18 Thread Chad Smith
Tested on AWS with success using needs_exe param: 2017-09-18 21:45:19,929 - util.py[DEBUG]: Copying /sbin/dhclient to /var/tmp/cloud-init/cloud-init-dhcp-plxz9ijh/dhclient 2017-09-18 21:45:20,240 - handlers.py[DEBUG]: finish: init-local/search-Ec2Local: SUCCESS: found local data from DataSourceEc

[Cloud-init-dev] [Merge] ~chad.smith/cloud-init:add-cloudinit-pkg-to-all-targets into cloud-init:master

2017-09-20 Thread Chad Smith
Chad Smith has proposed merging ~chad.smith/cloud-init:add-cloudinit-pkg-to-all-targets into cloud-init:master. Requested reviews: Server Team CI bot (server-team-bot): continuous-integration cloud-init commiters (cloud-init-dev) For more details, see: https://code.launchpad.net/~chad.smith

<    1   2   3   4   5   6   7   8   >