docker_puppet_tasks cannot currently work with composable HA

Bug #1692519 reported by Michele Baldessari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
High
Unassigned

Bug Description

In our current work with HA containers we started using 'docker_puppet_tasks' to create short-lived containers that spawn the necessary pacemaker resources (using puppet manifests).

The problem with docker_puppet_tasks is that it runs only on the role marked as primary controller or the first role listed. This does not work with composable HA, because we need to create pacemaker resource via puppet on the first node which has an HA service.

(Note that this is a bit more precise than saying "the first node of a specific role", because a service could theoretically be part of multiple roles and in that case we would potentially have two bootstrap nodes with the latter definition)

Maybe we should add a docker_puppet_tasks_all_nodes which will run on all nodes and on all roles and only the HA containers will make use of it?

Tags: containers
Revision history for this message
Michele Baldessari (michele) wrote :

Dan, I am throwing this over the fence for the time being. Let's chat about it

Changed in tripleo:
assignee: nobody → Dan Prince (dan-prince)
Revision history for this message
Dan Prince (dan-prince) wrote :

If you need to run "tasks" on all nodes would it be reasonable to use the normal 'docker_config' sections which drive docker-cmd to run puppet initialization tasks that way?

Revision history for this message
Michele Baldessari (michele) wrote :

Yeah so we have taken the docker_config approach (see line 96 https://review.openstack.org/#/c/459597/10/docker/services/pacemaker/haproxy.yaml for example). It's not pretty but for the time being it is okay.

Maybe we can keep this bug around if we come up with something a bit cleaner?

Changed in tripleo:
milestone: pike-2 → pike-3
Revision history for this message
Emilien Macchi (emilienm) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in tripleo:
assignee: Dan Prince (dan-prince) → nobody
Changed in tripleo:
milestone: pike-3 → pike-rc1
Changed in tripleo:
milestone: pike-rc1 → pike-rc2
Changed in tripleo:
milestone: pike-rc2 → queens-1
Changed in tripleo:
milestone: queens-1 → queens-2
Changed in tripleo:
milestone: queens-2 → queens-3
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Changed in tripleo:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.