Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker2podman: pull images from docker daemon #5280

Merged
merged 2 commits into from May 13, 2020

Conversation

dsavineau
Copy link
Contributor

The docker2podman playbook only installs the podman package and updates
the systemd units with the right container_binary value.

We never pull the container image so if one service is restarted then
the container image will be pulled first before the service can start
which could cause longer downstream.

To avoid to download the container image from internet again we can just
pull it from the local docker daemon.

The container_{binding,package,service}_name variables are removed
because they are only used in the ceph-container-engine role which
isn't call in this playbook.

Signed-off-by: Dimitri Savineau dsavinea@redhat.com

@dsavineau
Copy link
Contributor Author

we need #5237 first to test this

@dsavineau dsavineau added this to the v4.2 milestone Apr 16, 2020
@dsavineau dsavineau changed the title [skip ci] docker2podman: pull images from docker daemon docker2podman: pull images from docker daemon Apr 23, 2020
@dsavineau
Copy link
Contributor Author

jenkins test centos-container-docker_to_podman

@dsavineau dsavineau changed the title docker2podman: pull images from docker daemon [skip ci] docker2podman: pull images from docker daemon Apr 23, 2020
@dsavineau dsavineau force-pushed the docker2podman_transfert_image branch from f8d00db to 2af3dbd Compare April 23, 2020 17:50
@dsavineau dsavineau changed the title [skip ci] docker2podman: pull images from docker daemon docker2podman: pull images from docker daemon Apr 23, 2020
@dsavineau
Copy link
Contributor Author

jenkins test centos-container-docker_to_podman

@dsavineau dsavineau changed the title docker2podman: pull images from docker daemon [skip ci] docker2podman: pull images from docker daemon Apr 23, 2020
@dsavineau dsavineau force-pushed the docker2podman_transfert_image branch from 2af3dbd to a1d5aa3 Compare April 23, 2020 18:09
@dsavineau dsavineau changed the title [skip ci] docker2podman: pull images from docker daemon docker2podman: pull images from docker daemon Apr 23, 2020
@dsavineau
Copy link
Contributor Author

jenkins test centos-container-docker_to_podman

@dsavineau dsavineau changed the title docker2podman: pull images from docker daemon [skip ci] docker2podman: pull images from docker daemon Apr 23, 2020
@dsavineau dsavineau force-pushed the docker2podman_transfert_image branch from a1d5aa3 to fdd0336 Compare April 23, 2020 18:27
@dsavineau dsavineau changed the title [skip ci] docker2podman: pull images from docker daemon docker2podman: pull images from docker daemon Apr 23, 2020
@dsavineau
Copy link
Contributor Author

jenkins test centos-container-docker_to_podman

@dsavineau dsavineau removed the DNM Do NOT merge label Apr 23, 2020
@chkumar246
Copy link

check-github

@guits
Copy link
Collaborator

guits commented Apr 24, 2020

@chkumar246 your job is failing for unrelated reason, any chance you can take a look and fix it? We can't merge this patch because of that

guits
guits previously approved these changes Apr 24, 2020
@dsavineau dsavineau changed the title docker2podman: pull images from docker daemon [skip ci] docker2podman: pull images from docker daemon Apr 30, 2020
@dsavineau dsavineau force-pushed the docker2podman_transfert_image branch from fdd0336 to fb40b54 Compare April 30, 2020 15:38
@dsavineau dsavineau requested a review from guits April 30, 2020 15:38
@dsavineau dsavineau changed the title [skip ci] docker2podman: pull images from docker daemon docker2podman: pull images from docker daemon Apr 30, 2020
@dsavineau
Copy link
Contributor Author

jenkins test centos-container-docker_to_podman

@dsavineau
Copy link
Contributor Author

@guits do you want to split this PR into two dedicated PR ?

The second commit is associated to a BZ but the first commit is an enhancement.

WDYT ?

The docker2podman playbook only installs the podman package and updates
the systemd units with the right container_binary value.

We never pull the container image so if one service is restarted then
the container image will be pulled first before the service can start
which could cause longer downstream.

To avoid to download the container image from internet again we can just
pull it from the local docker daemon.

The container_{binding,package,service}_name variables are removed
because they are only used in the ceph-container-engine role which
isn't call in this playbook.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
The dashboard nodes (alertmanager, grafana, node-exporter, and prometheus)
were not manage during the docker to podman migration.

This adds the systemd container template of those services to a dedicated
file (systemd.yml) in order to include it in the docker2podman playbook.

This also adds the dashboard container images pull from docker to podman.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1829389

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
@dsavineau dsavineau changed the title docker2podman: pull images from docker daemon [skip ci] docker2podman: pull images from docker daemon Apr 30, 2020
@dsavineau dsavineau force-pushed the docker2podman_transfert_image branch from fb40b54 to ac72424 Compare April 30, 2020 18:02
@dsavineau dsavineau changed the title [skip ci] docker2podman: pull images from docker daemon docker2podman: pull images from docker daemon Apr 30, 2020
@dsavineau
Copy link
Contributor Author

jenkins test centos-container-docker_to_podman

@guits
Copy link
Collaborator

guits commented May 13, 2020

@guits do you want to split this PR into two dedicated PR ?

The second commit is associated to a BZ but the first commit is an enhancement.

WDYT ?

I think it's fine, I would backport this anyway

@guits guits merged commit 252e78b into ceph:master May 13, 2020
@dsavineau dsavineau deleted the docker2podman_transfert_image branch May 13, 2020 15:01
@dsavineau dsavineau removed this from the v4.2 milestone May 22, 2020
@guits guits added this to the v4.1z1 milestone May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants