Wait for cloud-init to finish before provisioning Before provisioning a native charm, a script is executed to wait until cloud-init finishes. This will avoid some racing conditions. Fixes bug 1184 Change-Id: Icc87f90f5941cf7b13bdd7dd01e5544122fb769e Signed-off-by: David Garcia <david.garcia@canonical.com>
Reformat N2VC to standardized format Change-Id: I7bfc2236cd5f059dc1b659e9fb746fef619124b8 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
fix 1208: add native charm support for rhel and fix centos support The commit adds SO discovery support for rhel and adds a script to add a DNAT rule to rhel and centos images. There are some things that needs to be taken in acount. - It uses firewalld, wich is the default firewall for centos and rhel, instead of iptables. This may break some thinghs if the image uses iptables. - If firewalld is not actibe it assumes that the VM is not using it, so it creates a input rule to accept all incoming conections (by default rejects all). If the firewall was not enabled, with accept all it should have the same behavior. Change-Id: I29c9781d354c4e8268e19f64dcc9568d725a0de3 Signed-off-by: endika <endika.aldecoa@ehu.eus>
Revert "Revert ""Remove unused lines of code""" This reverts commit 8bfcc14713a71f43f155e3cddec168380134d344. approved by TSC on 15/09/20 Change-Id: I176b1b625cbc2d94013921401b2e6048aed675f8
Revert ""Remove unused lines of code"" This reverts commit e8102d9e28e5c502fc66ca842d14e1ad29efbfda. Change-Id: Ic22f292f601f45451d3fdd56ab98bfa4ea9161eb Signed-off-by: David Garcia <david.garcia@canonical.com>
"Remove unused lines of code" Change-Id: I02be0efe4918083d95a4017c898bfabaf269e779 Signed-off-by: David Garcia <david.garcia@canonical.com>
Make API Proxy optional and avoid replacing existing SSH Keys in the provisioner - Fixes bug 1154 - Fixes bug 1083 Change-Id: I0ee5e092f5ff205089c2b80ece9f4262572d58d2 Signed-off-by: David Garcia <david.garcia@canonical.com>
Install iptables-persistent if it doesn't exist Change-Id: I7535e7ff3b74236cd3c7e752244252481582d557 Signed-off-by: David Garcia <david.garcia@canonical.com>
Change to sane default timeout Changes the default timeout from ~28 hours to 1 hour. Fixed syntax errors in two log messages. Adds unit tests for timeouts. Adds nose config to create Junit style output. Fixes bug 1014 Change-Id: I7d1c2d28b397adc3ac638aa2366925dc744eade3 Signed-off-by: beierlm <mark.beierl@canonical.com>
Fix bug 1050: Make provisioner asynchronous Change-Id: I19a47abbea81deff64698a16715f5fd7c9e6e8e4 Signed-off-by: David Garcia <david.garcia@canonical.com>
Enable lint, flake8 and unit tests Cleans up non pep compliant code. Adds a simple unit test. Formats according to black. Tox automatically runs lint, flake8 and unit test suite with coverage. To run each individually, execute: tox -e pylint tox -e black tox -e flake8 tox -e cover Note that these are all run for each patch via Jenkins. The full tox suite should be run locally before any commit to ensure it will not fail in Jenkins. Change-Id: I2f87abe3d5086d6d65ac33a27780c498fc7b1cd3 Signed-off-by: beierlm <mark.beierl@canonical.com>
Fix provisoner timeout Run `apt-get update` before attempting to install a package, for cloud images without an apt cache. Change-Id: Id67a347d90edbaa862a6d9c48ed1613f3fe2ad0d Signed-off-by: Adam Israel <adam.israel@canonical.com>
Native charm support This patch adds a provisioner which will prepare a VM, via SSH, to run the Juju agent, enabling a native charm to run on the VM. Change-Id: Icd5d873a12e2d7b2e7cb5424e87d8083a7921c16 Signed-off-by: Adam Israel <adam.israel@canonical.com>