<div dir="ltr">Dear all<div><div><br></div><div>tl;dr:</div><div><div></div></div></div><div>Shall we build, publish, and test heat container agents on heat-agents directly?:)</div><div>Please help to review <a href="https://review.opendev.org/#/q/topic:build-container-agent+(status:open)">https://review.opendev.org/#/q/topic:build-container-agent+(status:open)</a></div><div><div><br></div><div>Current I think we encounter with following issues:</div><div><b>* No functional/scenario test for heat-agents but only unit tests</b></div><div>Right now, whatever patch people send up in heat-agents, we only vote against unit tests. This makes no sense for long term maintenance. Which makes me thinking of the second issue.</div><div><b>* No enable scenario tests for software deployment:</b></div><div>We have tests defined, but since we didn't build any customized image. We didn't enable it for a long time. To build a container image for heat-agents (aka heat container agent) is (IMO) the best way for us to enable these teats. Which we can also use it to cross gating on heat and heat-agents (or even heat-template). The no much to change for the test itself but only update the config script to enable the container. </div><div><b>* Can't guarantee cross-project usage:</b></div><div>We currently provide no guarantee for any usage of heat agents from other projects, especially Magnum and TripleO (I didn't personally check if TripleO still using it, but since they still have experiment CI running) who uses heat container agents. It will be nice if we provide basic images for other teams can build their additional requirements.</div><div><br></div><div>To resolve the above issues,  I propose [1]. Which a lot of logic was copied from the current magnum heat container agent scripts [2] so we can start with a higher possibility to allow magnum to reuse our works.</div><div><br></div><div>For a more detail approach in [1]. The patch defines a build job in `check` pipeline. And a publish job in `post-check`. Uses zuul secrets to save docker authN information. As for the account, I created a new `openstackheat` account [3] for it (I specifically recall there ware discussion about having an official image hub for OpenStack, but not quite sure what happened since).</div><div>The current approach also can support multiple architectures (like amd64 arm arm64 ppc64le s390x, etc). But for now, I think we should have tested before we publish for other architectures.</div><div><br></div><div>You can run the build or publish job easily by running `make build-images-all-archs` to build images for all architectures or `make upload-images-all-archs` to build and publish images for all architectures.</div><div><br></div><div>[1] <a href="https://review.opendev.org/#/q/topic:build-container-agent+(status:open)">https://review.opendev.org/#/q/topic:build-container-agent+(status:open)</a></div><div>[2] <a href="https://opendev.org/openstack/magnum/src/branch/master/dockerfiles/heat-container-agent">https://opendev.org/openstack/magnum/src/branch/master/dockerfiles/heat-container-agent</a></div><div>[3] <a href="https://hub.docker.com/r/openstackheat">https://hub.docker.com/r/openstackheat</a></div><div><div></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="background-image:none!important"><div style="font-size:small"><div><table border="0" cellpadding="0" cellspacing="0" style="color:rgb(0,0,0);font-size:medium;font-family:verdana"><tbody><tr><td colspan="3" align="left" valign="center"><span style="font-size:13px;font-family:verdana">May The Force of Open<font color="#ff0000" style="--darkreader-inline-color:#cb0606;">Stack</font> Be With You,</span> <br><b><i><font face="georgia, serif" size="4">Rico Lin<br></font></i></b>irc: ricolin</td></tr><tr><td colspan="3" align="left" valign="center" style="height:10px;border-bottom:1px dashed rgb(221,221,221)"></td></tr><tr><td colspan="3"></td></tr></tbody></table><br></div></div></div><font size="2" face="tahoma, sans-serif" color="#999999" style="--darkreader-inline-color:#817e76;"></font></div></div></div></div></div></div></div></div></div></div></div></div>