Remove EE Charms when VNF has only day-1 operations Add paramter in EE deletion method to allow deletion of a single application instead of the whole model Change-Id: I4d1ebdd0c44c21a01c4d1e0e1f10b63ac983d787 Signed-off-by: Dario Faccin <dario.faccin@canonical.com>
Python3.10/Ubuntu 22.04 part 2 Removal of loop from all methods Change-Id: I05bfe90f82b8c8acba3172de89c7d8e0ee08402b Signed-off-by: Mark Beierl <mark.beierl@canonical.com>
Reformat files according to new black validation Change-Id: Ifebf4e97ae22b0131d0e84c58a18468b454ee6a7 Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
Fix cross-model relation condition Provider and requirer are in different controllers. Change-Id: Icd6d82571d62c562517292d368241244cbe06f3e Signed-off-by: Patricia Reinoso <patricia.reinoso@canonical.com>
Fixing Bug 2181 Application name creation for Helm chart Change-Id: Id0a83e2b5fee1dbb4c4109f7974b073fc7c3abd7 Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
Fix Bug 2181 VDU level charm application name creation problem has been fixed. Change-Id: Ie9e039ae2a3b8734dc6bf0b6dfc14b3455941b84 Signed-off-by: Gulsum Atici <gulsum.atici@canonical.com>
Fixing charm application name creation if DU is Helm Chart/KDU If deployment unit is a Helm chart/KDU, vdu_profile_id and vdu_count will be empty string. Change-Id: Ifb6aed0f08f2d7687d0cd6a31506268926ac7f63 Signed-off-by: aticig <gulsum.atici@canonical.com>
Feature 10944 Change naming of charms Modifying n2vc_conn.py/N2VCConnector _get_application_name method to generate new application naming for charms Change-Id: I1908bdbe4ce1a959a8a407f77913a414ec23fbb4 Signed-off-by: aticig <gulsum.atici@canonical.com>
Feature 10908 pass over upgrade request to Libjuju Change-Id: I7a4ea434f22b939a80f58941a892ed92dae62ee6 Signed-off-by: aticig <gulsum.atici@canonical.com>
Bug 1939 fixed: : added a random suffix to the end of the Juju app name, in order to allow multiple Juju charms per VDU I followed the second option of the bug's description. Now, Juju applications have a random suffix with size=5 (the random suffix size used by K8s), in order to avoid collisions between applications' names; Also fixed unit-test on test_n2vc_juju_conn.py Change-Id: I5d3eb8282889e58361f7c21214b11071a7530d26 Signed-off-by: Pedro Escaleira <escaleira@av.it.pt>
Feature 10887: Add cross-model relations support Changes: - Extend `add_relation` method in N2VCJujuConn to include the CMR case - Add `add_relation` method to K8sJujuConn - Add n2vc/definitions.py file that includes definition ofjects for Offer and RelationEndpoint. - Change `n2vc.libjuju.Libjuju.list_offers` method to be private, and accept a filter `offer_name` parameter. - Update `n2vc.libjuju.Libjuju.consume` method arguments. - Add `n2vc.libjuju.Libjuju.offer` method to create an offer. Unit tests associated to the code changes have been either created or updated accordingly Change-Id: Ibf8d574528dee0fa898e0e97578dd3a6aa68316a Signed-off-by: David Garcia <david.garcia@canonical.com>
Feature 10239: Distributed VCA - Add vca_id in all calls that invoke libjuju. This is for being able to talk to the default VCA or the VCA associated to the VIM - Add store.py: Abstraction to talk to the database. - DBMongoStore: Use the db from common to talk to the database - MotorStore: Use motor, an asynchronous mongodb client to talk to the database - Add vca/connection.py: Represents the data needed to connect the VCA - Add EnvironConfig in config.py: Class to get the environment config, and avoid LCM from passing that Change-Id: I28625e0c56ce408114022c83d4b7cacbb649434c Signed-off-by: David Garcia <david.garcia@canonical.com>
Fix bug 1505 Delete ssh-key generation in N2VCConnector initialization Change-Id: I5f33adf683ffeef34de270bf9b458a172dd4059d Signed-off-by: David Garcia <david.garcia@canonical.com>
Feature-9904: Enhancing NG-UI to enable Juju operational view dashboard Unit testing added for new functions - UpdateVcaStatus in test_n2vc_juju_conn.py - GetExecutedActionsTest in test_libjuju.py - GetApplicationConfigsTest in test_libjuju.py Change-Id: I7d750d8c39bc7bc061568c28d29f53d1b87c4c23 Signed-off-by: gspri <priyadharshini.g@tataelxsi.co.in> Signed-off-by: ksaikiranr <saikiran.k@tataelxsi.co.in>
Fixes for scaling proxy and native charm With changes in here, it can remove application while scaling in and it can add application existed k8s proxy charm model. Change-Id: If4fd378fdafd925fa1750ce4769506b44adc233c Signed-off-by: aktas <emin.aktas@ulakhaberlesme.com.tr>
Feature 9952: Distributed Proxy Charms Add cloud_name and cloud_credential arguments in these functions to allow allocating proxy charms in different clouds: - create_execution_environment - register_execution_environment - install_k8s_proxy_charm Change-Id: I3e57c6e5b9e25f9abfb7a579a188cf98d457e2b2 Signed-off-by: David Garcia <david.garcia@canonical.com>
Fix bug 1263 Update database endpoints when a new VCA_HOST_IP is provided Before, we were not considering the that the VCA_HOST_IP could be updated, in that case, the old ips stored in the database should be replace by the new one. Of course, this won't do any model migration from the previous VCA to the new one. It will only start pointing to the new VCA provided. Change-Id: I5e259f773f90e4f440d87c4b6342cd82425c0e0c Signed-off-by: David Garcia <david.garcia@canonical.com>
Add get_metrics command to n2vc_juju_conn and libjuju Change-Id: I6cde1528579c8ca7aa72d935c5e570004468bb1a Signed-off-by: David Garcia <david.garcia@canonical.com>
Add unit tests for K8s Proxy Charm Feature This commit also makes an initial template for future test in n2vc_juju_conn.py Change-Id: I34cb0f52bc2e6ce6b514ea4f99658f109e21875f Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>