Optional parameter is required in some processes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
New
|
Undecided
|
Unassigned |
Bug Description
Current implementation has the below bug:
`metadata` field in VnfInstanceV2 is accessed at [1] during DB synchronization.
```
def _get_pod_
"""Extract a Pod starting with the specified 'resource_name' name"""
namespace = vnf_instance.
```
This field is optional (i.e. cardinality of this field is `0..1` in SOL002/003 specification), but this process has no None check. This results in a below bug when processing VNF instances with no `metadata` value.
```
2023-06-14 04:32:56.294 1 ERROR tacker.
```
We can resolve this issue by getting namespace from `vnf_instance.
description: | updated |
Changed in tacker: | |
assignee: | nobody → Navum Gupta (navum) |
Changed in tacker: | |
assignee: | Navum Gupta (navum) → nobody |
I am working on this bug