12 Commits

Author SHA1 Message Date
Dan Prince
a52498ab4d Move containers-common.yaml into deployment
Change-Id: I8cc27cd8ed76a1e124cbb54c938bb86332956ac2
Related-Blueprint: services-yaml-flattening
2019-04-14 18:15:12 -04:00
Sofer Athlan-Guyot
c693ba6648 Use container_cli instead of docker to run mysql upgrade command.
We can't assume that docker will be in the environment anymore.

Change-Id: I99d08d19c708a1e5fff92d14bf30ceb849153d8f
2019-03-21 14:47:33 +00:00
Cédric Jeanneret
8895739702 Replace hard-coded 'docker pull' by '{{container_cli}} pull'
This should prevent some issues when we're using podman...

Change-Id: I4777e4cc4238d74d72cc4c2a09783563ec777d96
2019-03-21 11:03:03 +01:00
Zuul
73dcbc459c Merge "Give sudo powers in Disable mysql task." 2019-03-13 22:00:40 +00:00
Zuul
37e44456a9 Merge "Switch ContainerCli to podman by default" 2019-03-12 21:39:59 +00:00
Emilien Macchi
5ff6f7416d Switch ContainerCli to podman by default
The plan is:

- Docker is deprecated in Stein
- Podman is the default in Stein
- Docker will be removed in Train

Change-Id: I8f00d3e539abc4a169d6b48b8ce697e54aa2eae9
2019-03-12 11:17:15 -04:00
Emilien Macchi
24fb8776dd Rename docker_puppet_apply to container_puppet_apply
Change-Id: I1e23b78f54f3609b249565bf3c448453b684d214
2019-03-12 00:57:21 +00:00
Jose Luis Franco Arza
cdfa27f079 Give sudo powers in Disable mysql task.
In order to allow the external upgrade tasks disable
the galera bundle we need to run the task as sudo, otherwise
the task will fail with: Error: unable to get cib.

Change-Id: Id2916738ff36961fc9489a828e02545024fd5ab0
2019-03-07 15:09:54 +01:00
Zuul
009991f50d Merge "Rename docker_config_scripts to container_config_scripts" 2019-03-07 05:32:02 +00:00
Emilien Macchi
160cddda3f Rename docker_config_scripts to container_config_scripts
Change-Id: Iabd65560c2fc28b3aeca07a21efa861c4c583c01
2019-03-06 09:05:50 -05:00
Michele Baldessari
e6ab4856d7 Do not restart bundles during a minor update
It makes no sense since we are going to stop the cluster on the node
anyway. With change Ib3562adbd83f7162c2aeb450329b7cc4ab200fc2 we
inject the TRIPLEO_MINOR_UDPATE variable into the update playbooks
and we also push it (by default to false) inside the paunch start
container step.

By exporting the variable TRIPLEO_MINOR_UPDATE without a value we
tell docker (and podman) to inherit this value from the host.
When the env variable is set to true we avoid calling pcs inside
the containers to restart the bundles because at that point we
know that restarting the HA container would make no sense.

We tested the changes as follows:
A) Ran a minor update (openstack overcloud update prepare + openstack
overcloud update run --roles Controller) and observed that there were no
extra pcmk-managed bundles restarts (i.e. even when paunch decided to
invoke the <service>_restart_bundle it was a noop because
TRIPLEO_MINOR_UDPATE was 'true')
B) We ran a re-deploy without any changes and observed that no restart
of pcmk-managed bundles took place
C) We ran a re-deploy and forced some configuration changes and observed
that TRIPLEO_MINOR_UDPATE was false and that the
<service>_restart_bundle was run by paunch and that it restarted the
bundle that had the config changed.

Co-Authored-By: Damien Ciabrini <dciabrin@redhat.com>

Change-Id: Id1d671506d3ec827bc311b47d9363952e1239ce3
2019-03-06 08:40:39 +01:00
David J Peacock
6dbfde9c85 flatten database service MySQL Server
This change combines the previous puppet and docker files into a single
file that performs the docker service installation and configuration.

With this patch the baremetal version of database service MySQL Server
has been removed.

Change-Id: I407bd8d8fe9bde53609e4316b12eb0b7151552ca
Related-Blueprint: services-yaml-flattening
2019-02-28 08:36:31 -05:00