Skip to content

Commit

Permalink
Promoter: Get container list based on image_source
Browse files Browse the repository at this point in the history
tripleo-common/container-images/{overcloud_containers.yaml.j2,
tripleo_containers.yaml} are the sources of containers.

overcloud_containers.yaml.j2 is based on kolla driven workflow &
having image_source is kolla, ceph and prom.
and tripleo_containers.yaml is based on new container workflow
& having image_source is tripleo, ceph, graphana and prom.

We only builds container whose image source is kolla or tripleo
and push it to rdo registry.

So while pushing to container, using image_source to generate the
container list gives a exclusive list of containers which
are actually built and also helps it from not to maintain
exclude list of containers not coming from other sources.

Change-Id: I1506969502568ac277a99cdc82409782694e9f43
Signed-off-by: Chandan Kumar (raukadah) <chkumar@redhat.com>
  • Loading branch information
chkumar246 authored and Zuul CI committed Jul 17, 2020
1 parent f40f302 commit ea18db9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ci-scripts/dlrnapi_promoter/repo_client.py
Expand Up @@ -125,12 +125,16 @@ def get_containers_list(self, tripleo_common_commit, load_excludes=True):
full_list = [
i['imagename'].rpartition('/')[-1].split(':')[0]
for i in container_list['container_images_template']
if i['image_source'] == 'kolla'
]
# It also contains some empty strings that needs to be cleaned
full_list = [i for i in full_list if i]
elif 'container_images' in container_list:
full_list = [i['imagename'].rpartition('/')[-1].split(':')[0]
for i in container_list['container_images']]
full_list = [
i['imagename'].rpartition('/')[-1].split(':')[0]
for i in container_list['container_images']
if i['image_source'] == 'tripleo'
]
full_list = [i.split('openstack-')[-1] for i in full_list]
else:
full_list = []
Expand Down

0 comments on commit ea18db9

Please sign in to comment.