VNF Instance can be terminated and patched at the same time

Bug #1946412 reported by YaoYudie
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
New
Low
Unassigned

Bug Description

Found that VNF Instance can be terminated and patched at the same time.
However,according to standard you cannot have two operations at the same time, and you should return 409
Here are the log:

terminate start:
2021-10-06 07:48:09.286 DEBUG tacker.conductor.conductor_server [req-56eb2eb7-0b4f-44d7-bb33-8e8a409053d9 nfv nfv_user] send_notification start notification[{'notificationType': 'VnfLcmOperationOccurrenceNotification', 'notificationStatus': 'START', 'operationState': 'STARTING', 'vnfInstanceId': 'c9f825fb-077d-4a21-9e8d-976a28b75041', 'operation': 'TERMINATE', 'isAutomaticInvocation': False, '_links': {'vnfInstance': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_instances/c9f825fb-077d-4a21-9e8d-976a28b75041'}, 'vnfLcmOpOcc': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_lcm_op_occs/c863d9ed-96c5-47ea-83fb-3e7d466abdbe'}}, 'vnfLcmOpOccId': 'c863d9ed-96c5-47ea-83fb-3e7d466abdbe'}] from (pid=11363) send_notification /opt/stack/tacker/tacker/conductor/conductor_server.py:1775

terminate end:
2021-10-06 07:50:05.876 DEBUG tacker.conductor.conductor_server [req-56eb2eb7-0b4f-44d7-bb33-8e8a409053d9 nfv nfv_user] send_notification start notification[{'notificationType': 'VnfLcmOperationOccurrenceNotification', 'notificationStatus': 'RESULT', 'operationState': 'COMPLETED', 'vnfInstanceId': 'c9f825fb-077d-4a21-9e8d-976a28b75041', 'operation': 'TERMINATE', 'isAutomaticInvocation': False, 'vnfLcmOpOccId': 'c863d9ed-96c5-47ea-83fb-3e7d466abdbe', '_links': {'vnfInstance': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_instances/c9f825fb-077d-4a21-9e8d-976a28b75041'}, 'vnfLcmOpOcc': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_lcm_op_occs/c863d9ed-96c5-47ea-83fb-3e7d466abdbe'}}, 'affectedVnfcs': [{'id': '13ff50f7-2bde-428c-8ac4-b1683d135207', 'vduId': 'masterNode', 'changeType': 'REMOVED', 'computeResource': {'vimConnectionId': '46c30192-5353-4b8c-a9b5-674d3328480d', 'resourceId': '3bd0ec30-e216-4ca1-9151-462c814094e8', 'vimLevelResourceType': 'OS::Nova::Server'}, 'metadata': {'stackId': 'b50224bb-c740-42a6-95c2-f990933d8d91'}, 'affectedVnfcCpIds': ['masterNode_CP1', '2c22eda8-93d6-4e24-a92e-a1529dee247d'], 'removedStorageResourceIds': []}], 'affectedVirtualLinks': [{'id': 'cc2260ca-38ad-453d-aef8-0bdb848d9e57', 'vnfVirtualLinkDescId': 'net0', 'changeType': 'REMOVED', 'networkResource': {'vimConnectionId': None, 'resourceId': '843fca04-93e3-4c5a-8444-c2eff3055986', 'vimLevelResourceType': 'OS::Neutron::Net'}, 'metadata': {}}], 'affectedVirtualStorages': [], 'changedExtConnectivity': []}] from (pid=11363) send_notification /opt/stack/tacker/tacker/conductor/conductor_server.py:1775

patch start:
2021-10-06 07:48:23.242 DEBUG tacker.conductor.conductor_server [req-076c000a-a9ea-4f01-a7f3-d2fdf3ccc169 nfv nfv_user] send_notification start notification[{'notificationType': 'VnfLcmOperationOccurrenceNotification', 'notificationStatus': 'START', 'operationState': 'PROCESSING', 'vnfInstanceId': 'c9f825fb-077d-4a21-9e8d-976a28b75041', 'operation': 'MODIFY_INFO', 'isAutomaticInvocation': False, 'vnfLcmOpOccId': '650f479c-db27-4ab5-a302-e167f23140c7', '_links': {'vnfInstance': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_instances/c9f825fb-077d-4a21-9e8d-976a28b75041'}, 'vnfLcmOpOcc': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_lcm_op_occs/650f479c-db27-4ab5-a302-e167f23140c7'}}}] from (pid=11363) send_notification /opt/stack/tacker/tacker/conductor/conductor_server.py:1775

patch end:
2021-10-06 07:49:56.288 DEBUG tacker.conductor.conductor_server [req-076c000a-a9ea-4f01-a7f3-d2fdf3ccc169 nfv nfv_user] send_notification start notification[{'notificationType': 'VnfLcmOperationOccurrenceNotification', 'notificationStatus': 'RESULT', 'operationState': 'COMPLETED', 'vnfInstanceId': 'c9f825fb-077d-4a21-9e8d-976a28b75041', 'operation': 'MODIFY_INFO', 'isAutomaticInvocation': False, 'vnfLcmOpOccId': '650f479c-db27-4ab5-a302-e167f23140c7', '_links': {'vnfInstance': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_instances/c9f825fb-077d-4a21-9e8d-976a28b75041'}, 'vnfLcmOpOcc': {'href': 'http://172.22.39.3:9890/vnflcm/v1/vnf_lcm_op_occs/650f479c-db27-4ab5-a302-e167f23140c7'}}, 'changed_info': {}}] from (pid=11363) send_notification /opt/stack/tacker/tacker/conductor/conductor_server.py:1775

Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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