Fix ns_create stuck in pending state issue
while deploying network service if vnf creation raised exception,
ns_create stuck in PENDING_CREATE state. Fixing this issue.
Closes-Bug:
@@ -257,6 +257,7 @@ class NSPluginDb(network_service.NSPluginBase, db_base.CommonDbMixin):
if len(output) > 0:
for vnfd_name, vnfd_val in iteritems(vnfd_dict):
for instance in vnfd_val['instances']:
+ if 'mgmt_url_' + instance in output:
mgmt_urls[instance] = ast.literal_eval(
output['mgmt_url_' + instance].strip())
vnf_ids[instance] = output['vnf_id_' + instance]
