Add cleanup code for dockerhub containers, removing old promoted container images.

Bug #1722554 reported by Gabriele Cerami on 2017-10-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
Unassigned

Bug Description

Before promotion floods dockerhub with containers, we need to add code somewhere to clean up unused old promoted containers images

Tags: ci Edit Tag help
Changed in tripleo:
importance: Undecided → High
status: New → Triaged
wes hayutin (weshayutin) wrote :

We are contacting <email address hidden> for suggestions here as the community doc is unclear.

Gabriele Cerami (gcerami) wrote :

Docker has not replied yet. We emailed also openstack-dev community

http://lists.openstack.org/pipermail/openstack-dev/2017-October/123781.html

The first result is that now we know that the space problem will be less serious that anticipated.
We also have the option to look at the kolla_images ansible module to interact with docker.io api. Still using raw api calls, but at least a module where to put this new code

Changed in tripleo:
milestone: queens-1 → queens-2
Gabriele Cerami (gcerami) wrote :

Even kolla_docker is using docker-py. Docker-py interacts with the local engine API not with the registry API. I'm not sure anymore where to put the code that will deal with registry. Doing it in ansible is too complicated, we have to cycle over every tag of every image, apply the criterias to select an image to remove, end then delete. Ansible is not really good at these kind of loops.
If we do it in python, either we put it in kolla docker, and the we have to depend on kolla, or we create a module on our own

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:
milestone: rocky-2 → rocky-3
Changed in tripleo:
milestone: rocky-3 → rocky-rc1
Changed in tripleo:
milestone: rocky-rc1 → stein-1
Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Changed in tripleo:
milestone: stein-3 → stein-rc1
Changed in tripleo:
milestone: stein-rc1 → train-1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers