<div dir="ltr">Hi Steve<div><br></div><div>When you say the registry would require a machine with plenty of disk space, do you have an estimate of storage needed?</div><div><br></div><div>Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-20 14:21 GMT+01:00 Steven Dake (stdake) <span dir="ltr"><<a href="mailto:stdake@cisco.com" target="_blank">stdake@cisco.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Infra folks,</div>
<div><br>
</div>
<div>I'd like to see a full CI/CD pipeline of Kolla to an OpenStack infrastructure hosted registry.</div>
<div><br>
</div>
<div>With docker registry 2.2 and earlier a Docker push of Kolla containers took 5-10 hours.  This is because of design problems in Docker which made a push each layer of each Docker image repeatedly.  This has been rectified in docker-regitery 2.3 (the latest
 hub tagged docker registry).  The 5-10 hour upload times are now down to about 15 minutes.  Now it takes approximately 15 minutes to push all 115 kolla containers on a gigabit network.</div>
<div><br>
</div>
<div>Kolla in general wants to publish to a docker registry at least per tag, and possibly per commit (or alternatively daily).  We already build Kolla images in the gate, and although sometimes our jobs time out on CentOS the build on Ubuntu is about 12 minutes.
  The reason our jobs time out on CentOS is because we lack local to the infrastructure mirrors as is available on Ubuntu from a recent patch I believe that Monty offered.</div>
<div><br>
</div>
<div>We have one of two options going forward</div>
<ol>
<li>We could publish to the docker hub registry</li><li>We could publish to <a href="http://docker-registry.openstack.org" target="_blank">docker-registry.openstack.org</a></li></ol>
<div>Having a <a href="http://docker-registry.openstack.org" target="_blank">docker-registry.openstack.org</a> would be my preference, but requires a machine with plenty of disk space and a copy of docker 1.10.1 or later running on it.  The docker-registry 2.3 and later runs as a container inside Docker.  The machine could
 be Ubuntu or CentOS – we have gate scripts for both that do the machine setup which the infrastructure team could begin with[1][2]  I don't care which distro is used for docker registry – it reallly shouldn't matter as it will be super lightweight and really
 only need a /var/lib/docker that is fast and large.  Kolla dev's can help get the docker registry setup and provide guidance to the infrastructure team on how to setup Docker, but I'm unclear of OpenStack has resources to make this particular request happen.</div>
<div><br>
</div>
<div>NB the machine need not be baremetal – it  really doesn't matter.  It does need fast bi-directional networking and fast disk IO to meet the gate timeout requirements and Operator requirements that a pull is speedy.  The other change needed is a CentOS
 mirror internal to the infrastructure, so our CentOS jobs don't time out and we can push per cmmit (or we could add a nightly job).</div>
<div><br>
</div>
<div>This is something new OpenStack hasn't done before, so feedback from the infrastructure team welcome if that team is willing to maintain a <a href="http://docker-registry.openstack.org" target="_blank">docker-registry.openstack.org</a>.  The other challenge here will be authentication – we setup our gate Docker without
 TLS because we throw away the VMs but infra will want to setup TLS with the docker registry.  Folks wanting to use the docker reigstry service from OpenStack will need to be able to put TLS credentials in the gating in some way.  I'm not sure we want to just
 check these credentials into our repository – which means they need to somehow be injected into our VMs to protect the security of the Docker images.</div>
<div><br>
</div>
<div>If infra decides they don’t want to take on a <a href="http://docker-registry.openstack.org" target="_blank">docker-registry.openstack.org</a>, guidance on how to get our credentials securely into our built VM would be helpful.</div>
<div><br>
</div>
<div>One final note – Docker can be setup to use Swift as a storage backend, or alternatively can use straight up disk space on the node.  It can also publish to an AWS storage backend and has many other storage backend modes.</div>
<div><br>
</div>
<div>Regards</div>
<div>-steve</div>
<div><br>
</div>
<div><br>
</div>
<div>[1] <a href="https://github.com/openstack/kolla/blob/master/tools/setup_RedHat.sh" target="_blank">https://github.com/openstack/kolla/blob/master/tools/setup_RedHat.sh</a></div>
<div>[2] <a href="https://github.com/openstack/kolla/blob/master/tools/setup_Debian.sh" target="_blank">https://github.com/openstack/kolla/blob/master/tools/setup_Debian.sh</a></div>
</div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>