fix bug 770. Execute initial-config-primitive for NS-charm 83/7683/2 v6.0.1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 19 Jun 2019 08:46:07 +0000 (08:46 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Wed, 19 Jun 2019 15:05:10 +0000 (15:05 +0000)
Change-Id: I638b749dda47abe11c45bf0802ae9c45b5649358
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_lcm/lcm.py
osm_lcm/ns.py

index 3c7a205..8f66055 100644 (file)
@@ -46,8 +46,8 @@ min_RO_version = [0, 6, 3]
 min_n2vc_version = "0.0.2"
 min_common_version = "0.1.19"
 # uncomment if LCM is installed as library and installed, and get them from __init__.py
-lcm_version = '0.1.40'
-lcm_version_date = '2019-06-13'
+lcm_version = '0.1.41'
+lcm_version_date = '2019-06-19'
 health_check_file = path.expanduser("~") + "/time_last_ping"   # TODO find better location for this file
 
 
index caadce1..4a16835 100644 (file)
@@ -1228,6 +1228,7 @@ class NsLcm(LcmBase):
                         if isinstance(v, str) and v.startswith("!!yaml "):
                             add_params[k] = yaml.safe_load(v[7:])
                     add_params["rw_mgmt_ip"] = None
+                    initial_config_primitive_list = nsd["ns-configuration"].get('initial-config-primitive', [])
 
                 # add primitive verify-ssh-credentials to the list after config only when is a vnf or vdu charm
                 initial_config_primitive_list = initial_config_primitive_list.copy()
@@ -1396,6 +1397,7 @@ class NsLcm(LcmBase):
             # waiting all charms are ok
             configuration_failed = False
             if number_to_configure:
+                step = "Waiting all charms are active"
                 old_status = "configuring: init: {}".format(number_to_configure)
                 db_nsr_update["config-status"] = old_status
                 db_nsr_update["detailed-status"] = old_status