Feature 10296 Pip Standardization Creates standard template for tox.ini Introduces 'safety' for listing upstream CVEs Pins all versions of all upstream modules Removes Makefile step and places all build logic into tox.ini Change-Id: Ic14321bd5bddb322db08ac3e25202cc64cac2dff Signed-off-by: David Garcia <david.garcia@canonical.com>
Fix bug 1542 to allow juju to add Azure AKS Storage classes in Azure might have no metadata annotations. This change takes into account that situation. Change-Id: I4f7151d2481b41fd8434e0d95ea5d1a156b68309 Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com> (cherry picked from commit e77a91e534731b45c8f9648fc99e3f2d25313fa7)
Fix bug 1533: use bionic as default series in proxy charms Xenial is 2 LTS behind the current one. This patch will force bionic rather than Xenial from now on. The current charms do not properly work in Xenial. The best solution will be to fix this bug: https://osm.etsi.org/bugzilla/show_bug.cgi?id=1551 Change-Id: I1a0c466b6151b19a1eaf5d97f0373ab271601f89 Signed-off-by: David Garcia <david.garcia@canonical.com> (cherry picked from commit f643c1359c1edbe8bb851ce935416e534b234e74)
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> (cherry picked from commit 9074b05b797b591eeb9b86b54c5a699b30454906)
Clean up commented or unused code Change-Id: Ib116128c15d727b9124e51d2475556045b79ac0d Signed-off-by: David Garcia <david.garcia@canonical.com>
Pin chardet to 3.0.4 Chardet 3.0.4 was last modified in 2017, and the next release of chardet 4.0.0 was released only recently (Dec 2020). As many other pip packages still depend on 3.0.4 we need to explicitly pin that here to avoid conflicts later at LCM docker build time. Change-Id: I2a1ee0d61e641c0dc3f240345ce47f0d13d8fb22 Signed-off-by: beierlm <mark.beierl@canonical.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> (cherry picked from commit f97b231c021d082f5f56ac88804af3d73be2caa9)
Add ModelConfig This class maps the model-config from the vca_config. That config will be passed every time a model is added. Change-Id: I0a1e47ba7d708f3514c64a6f20d410a21fe8ea1d Signed-off-by: David Garcia <david.garcia@canonical.com> (cherry picked from commit a71d4a04c1e8ad3ffe1a129024e6dbc14d6d3bd5)
Fix bug 1448: minor fix in JujuModelWatcher.wait_for_model Add an `application_ready` function in the Juju Watcher to check if all the applications of the model are ready. This function checks that not only the application is ready, but also all the units of the application. Additionally, I have added a stability check. After considering a model as ready, we will wait for 10 seconds, and check again. Change-Id: Icd8d88613416b75cfd241e7044dbeffa6cbc6a8e Signed-off-by: David Garcia <david.garcia@canonical.com> (cherry picked from commit c344117335d4ffbd06ef90ae8dce9cb3910165fb)
Fix bug 1467 Do not raise exceptions in n2vc.libjuju.add_model() or n2vc.libjuju.destroy_model() functions In general, functions should be as idempotent as possible. In this particular case, executing the add_model() function several times with the same arguments should just work. Same thing for destroy_model(). If the model has already been destroyed, it should return and not give any errors saying that the model doesn't exist. Change-Id: I87e11ea0fe1b4063b2f89900fcc2bbf1f915b953 Signed-off-by: David Garcia <david.garcia@canonical.com>
Minor improvements to libjuju.py - Increase default timeout to connect to the controller - Minor fix in destroy_model function - Fix unit tests. Now they run faster :-) Change-Id: Ia2cbcb3e052fe91f4e712ea572ecf444b1d5894f Signed-off-by: David Garcia <david.garcia@canonical.com> (cherry picked from commit 435b86410c96c0e034a892ac5df9ebc9547e3b7d)