redhat-openstack / tripleo-quickstart

Ansible roles for setting up TripleO virtual environments and building images
16 stars 15 forks source link

image building: implement 1-hop copy for publishing images (vs. 2). #64

Closed halcyondude closed 8 years ago

halcyondude commented 8 years ago

Background: the existing publish role in oooq uses fetch to copy everything from ansible target (virthost in this case) where the images are built --> localhost (or the jenkins slave in the CI use case). They are then copied with a shell block calling rsync, from localhost to publishing destination.

On our jenkins slaves this is problematic as the images are single-digit GB in size, and the default home disk for the slaves is 20G . The existing playbook does clean up localhost after the copy, but already I've had a few failures in POC jobs due to space issues on the slaves.

This issue is to track creating a simple 1-hop (vs. existing 2-hop) variant of the publish role. Goal is for it to be small, simple, no frills. It will be useful for CI + developers using tripleo-quickstart image building to cook their own custom images.

It should use delagate to (from) --> publishing_dest using the synchronize standard module (instead of shell: rsync).

The existing playbook will be left alone. We still do require the 2 hop, rsync protocol only (vs ssh) implementation for RDO CI, as there is not direct routes between image build location --> publishing endpoint.

halcyondude commented 8 years ago

WIP posted for review. Still needs testing.

https://review.gerrithub.io/#/c/270709/

trown commented 8 years ago

moved to https://github.com/redhat-openstack/ansible-role-tripleo-image-build/issues/8