Instantiation failed with error: "ValueError: Field `associated_vnfc_cp_id' cannot be None"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I failed to instantiate VNF including a scalable VDU designed not to be created in the initial state, with instantiateVnfR
Details are as follows:
Conditions:
- The VNF includes the VDU named as "VDU_1".
- The VNF includes the CP named as "VDU1_CP0" binding to "VDU_1".
- The number of instances of "VDU_1" can be 0 or 1, and it is designated as 0 by "instantiationL
- instantiateVnfR
VNFD:
```
VDU_0:
type: tosca.nodes.
properties:
name: VDU_0
VDU_1:
type: tosca.nodes.
properties:
name: VDU_1
VDU0_CP0:
type: tosca.nodes.
properties: ...
requirements:
- virtual_binding: VDU_0
VDU1_CP0:
type: tosca.nodes.
properties: ...
requirements:
- virtual_binding: VDU_1
.
.
.
- instantiation_
type: tosca.policies.
properties:
levels:
r-node-min:
VDU_1:
r-node-max:
VDU_1:
```
instantiateVnfR
```
{
"flavourId": "default",
"instantiatio
"extVirtualLi
{
"extCps": [
{
"cpdId": "VDU0_CP0"
},
{
"cpdId": "VDU1_CP0"
}
],
"id": ...,
"resourceId": ...
},
],
"vimConnectio
"additionalPa
}
Error:
```
ERROR oslo_messaging.
Traceback (most recent call last):
File "/usr/local/
res = self.dispatcher
File "/usr/local/
return self._do_
File "/usr/local/
result = func(ctxt, **new_args)
File "<decorator-
File "/opt/stack/
return f(*a, **k)
File "/opt/stack/
self.
File "/opt/stack/
LOG.
File "/usr/local/
self.
File "/usr/local/
raise self.value
File "/opt/stack/
return function(self, context, *args, **kwargs)
File "/opt/stack/
vnflcm_
File "/opt/stack/
inst_
File "/opt/stack/
ext_cp_info = objects.
File "/opt/stack/
super(
File "/usr/local/
setattr(self, key, kwargs[key])
File "/usr/local/
field_value = field.coerce(self, name, value)
File "/usr/local/
return self._null(obj, attr)
File "/usr/local/
raise ValueError(_("Field `%s' cannot be None") % attr)
ValueError: Field `associated_
```
description: | updated |
description: | updated |
Fix proposed to branch: master /review. opendev. org/c/openstack /tacker/ +/832224
Review: https:/