Cannot set multiple targets associated with aspectId
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Fix Committed
|
Medium
|
Ashutosh Mishra |
Bug Description
According to SOL001(*1) "A.6.1 ScalingAspect and InstantiationLevels policies with uniform delta",
number_of_instance of deltas in `VduScalingAspe
```
policies
...
- vdu_1_scaling_
type: tosca.policies.
properties:
aspect: database // aspect_id
deltas:
targets: [ vdu_1 ]
...
- vdu_2_scaling_
type: tosca.policies.
properties:
aspect: database // same aspect_id as vdu1
deltas:
targets: [ vdu_2 ]
...
```
But in current implementation of tacker, extract policies information using tosca_utils.
```
if tosca_policies is not []:
for p in tosca_policies:
if p.type == ETSI_SCALING_
for delta_id, delta_val in deltas.items():
// !! Overwrite if the same aspect_id !!
```
If it is the same aspect_id and delta_id, it will be overwritten by the value of the later one (overwrite by number_of_instance: 3 of vdu_2_scaling_
refs:
*1) SOL001: https:/
*2) _extract_
description: | updated |
Changed in tacker: | |
importance: | Undecided → Medium |
Changed in tacker: | |
status: | In Progress → Fix Committed |
Any update?