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

Bug #1722554 reported by Gabriele Cerami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Incomplete
Wishlist
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
Changed in tripleo:
importance: Undecided → High
status: New → Triaged
Revision history for this message
wes hayutin (weshayutin) wrote :

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

Revision history for this message
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
Revision history for this message
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
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
status: Triaged → Incomplete
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
Changed in tripleo:
importance: High → Wishlist
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.