vnflcm op rollback operation does not delete k8s resource created during instantiation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
Medium
|
Ayumu Ueha |
Bug Description
CNF instantiate failed and executed `vnflcm op rollback` after transitioning to `FAILED_TEMP` with the resource created on k8s cluster.
The state became to `ROLLED_BACK` after `vnflcm op rollback`, but the created k8s resource was not deleted.
If operate correctly, the rollback command should operate processing of termination and remove the resource.
The execution log is shown as following:
1. CNF instantiate with using vnf package that fails k8s resource creation, and check the operation state is `FAILED_TEMP` and k8s resource created but pending status.
````
$ openstack vnflcm instantiate 26faaad6-
Instantiate request for VNF Instance 26faaad6-
$ openstack vnflcm op list
+------
| ID | Operation State | VNF Instance ID | Operation |
+------
| 3d44ae3c-
+------
$ kubectl get all
NAME READY STATUS RESTARTS AGE
pod/vdu1-
pod/vdu1-
NAME READY AGE
statefulset.
```
2. The rollback command is executed and changes the state to `ROLLED_BACK`, but the k8s resource has not been deleted.
```
$ openstack vnflcm op rollback 3d44ae3c-
Rollback request for LCM operation 3d44ae3c-
$ openstack vnflcm op list
+------
| ID | Operation State | VNF Instance ID | Operation |
+------
| 3d44ae3c-
+------
$ kubectl get all
NAME READY STATUS RESTARTS AGE
pod/vdu1-
pod/vdu1-
NAME READY AGE
statefulset.
```
description: | updated |
description: | updated |
Changed in tacker: | |
importance: | Undecided → Medium |
Changed in tacker: | |
assignee: | nobody → Ayumu Ueha (ueha) |
Fix proposed to branch: master /review. opendev. org/c/openstack /tacker/ +/799131
Review: https:/