Could not get stack_id during healing a scale outed vnf instance

Bug #1919434 reported by LiangLu
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
LiangLu

Bug Description

get this error message during running heal api for a scaleout-ed vnfinstance:

Error: Heal Vnf failed for vnf e0a29dc3-7ad1-4a06-a9bd-52a54b1591d1, error: Failed to find stack_id None
 ^[[00m: tacker.common.exceptions.VnfHealFailed: Heal Vnf failed for vnf e0a29dc3-7ad1-4a06-a9bd-52a54b1591d1, error: Failed to find stack_id None

This error message is caused by empty stack_id value in vnfc_res_info.metadata,
and in an instantiated vnfinstance, there is value in vnfc_res_info.metadata.

In instantaite_vnf, vnfc_res_info.metadata is get from tacker variable stack_resources
https://opendev.org/openstack/tacker/src/branch/master/tacker/vnfm/infra_drivers/openstack/openstack.py#L1016

However in scale_out, this variable is get from heat_client:
https://opendev.org/openstack/tacker/src/branch/master/tacker/vnfm/infra_drivers/openstack/openstack.py#L1380

In our environment, heat does not save resource_id into metadata, thus, scale_out cannot get right resource.

LiangLu (lianglu)
Changed in tacker:
assignee: nobody → LiangLu (lianglu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 5.0.0.0rc1

This issue was fixed in the openstack/tacker 5.0.0.0rc1 release candidate.

Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Medium
Revision history for this message
Yasufumi Ogawa (yasufum) wrote :
Changed in tacker:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.