Description
The OneFlow component doesn't handle correctly the case when a single VM deployment fails during the role scaling operation. Instead of reporting a failure, it reports SUCCESS leaving the VM body information empty inside the JSON Service body:
# Extract from the JSON Service Body
...
"nodes": [
{
"deploy_id": 4,
"vm_info": null
}
]
...
This may result in unexpected behavior, since the VM isn't controlled by the service or any other component and its information remains empty in the JSON body of the service.
To Reproduce
Create a OneFlow Service with the role scaling policies enabled. The following template was used to reproduce the case:
Once the Service is deployed, wait for the service to automatically scale (you can force this by creating an attribute on the VMs and change its value).
To force the scaling operation to fail, once the Service is in RUNNING state, you can DISABLE all hosts, so that when the Service tries to scale, it's going to fail since there are no more free hosts left.
At this point, the OneFlow service will add the VM to the Service body with the empty body.
Expected behavior
The Service scaling operation is cancelled and the error is reported correctly.
Details
Affected Component: OneFlow
Hypervisor: KVM
Version: 6.8
Additional context
In some cases, the VM deployment works correctly during the scaling operation, but due to other errors or unexpected messages during deployment may cause the same behavior.
Description The OneFlow component doesn't handle correctly the case when a single VM deployment fails during the role scaling operation. Instead of reporting a failure, it reports
SUCCESS
leaving the VM body information empty inside the JSON Service body:This may result in unexpected behavior, since the VM isn't controlled by the service or any other component and its information remains empty in the JSON body of the service.
To Reproduce
Create a OneFlow Service with the role scaling policies enabled. The following template was used to reproduce the case:
RUNNING
state, you canDISABLE
all hosts, so that when the Service tries to scale, it's going to fail since there are no more free hosts left.Expected behavior The Service scaling operation is cancelled and the error is reported correctly.
Details
Additional context In some cases, the VM deployment works correctly during the scaling operation, but due to other errors or unexpected messages during deployment may cause the same behavior.
Progress Status