Using ::WaitCondition as rolling_update mechanism on ::ResourceGroup
When trying to use OS::Heat:
The ResourceGroup defines a proprety: update_policy
test:
type: OS::Heat:
update_policy:
rolling_
properties:
count: 8
resource_def:
type: test_detail.yaml
and inside test_detail.yaml we have:
interface1:
type: OS::Neutron::Port
[...]
wait_condition:
type: OS::Heat:
[...]
wait_handle:
type: OS::Heat:
[...]
vm:
type: OS::Nova::Server
properties:
networks:
- port: { get_resource: interface1 }
user_
user_data: { get_resource: user_data }
[...]
user_data:
type: OS::Heat:
properties:
parts:
- config:
- path: /run/cloud-
- /run/cloud-
We want to use the wait condition notifications as the main driver for the rolling_update policy but it appears that the only condition working to hold all the VMs going for update at the same time is if we use "pause_time"as part of the "rolling_update" definition. The problem with this approach is: "pause_time" is not deterministic for the Server status!! we should not move to the next instance in the ResourceGroup just based on time, we need to be sure that the instance is ready providing the service before moving to the next one.
Is there a way to achieve this?? maybe using a different resource type??
Thanks
Question information
- Language:
- English Edit question
- Status:
- Open
- For:
- Ubuntu heat Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ivens Zambrano for more information if necessary.