<div dir="ltr">For some back group on what's heat container agents here,<div><br></div><div>We have heat agent hooks [1] which design to be used with os-collect-config to and os-apply-config, to keep watching metadata server and execute any received commands with heat agents. If you build with diskimage-builder, you will generate an image with heat agents and services installed inside.</div><div><br></div><div>But this will force operators to use large images to run for any application deployments and also add limitations to the application environment (you need also able to install all services above).</div><div><br></div><div>For that, heat container agents seem to be a better approach if we don't want the above limitations. The concept is simple, just put every service into a container, so whatever the OS operator pick, as long as it supports running containers, it should work.</div><div><br></div><div>Once we have our container image built, we can deploy/config application after the container with heat agents started in Nova instance.</div><div><br></div><div><br></div><div>[1] <a href="https://opendev.org/openstack/heat-agents">https://opendev.org/openstack/heat-agents</a> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 13, 2020 at 11:46 AM Rico Lin <<a href="mailto:rico.lin.guanyu@gmail.com">rico.lin.guanyu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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)" target="_blank">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)" target="_blank">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" target="_blank">https://opendev.org/openstack/magnum/src/branch/master/dockerfiles/heat-container-agent</a></div><div>[3] <a href="https://hub.docker.com/r/openstackheat" target="_blank">https://hub.docker.com/r/openstackheat</a></div><div><div></div></div>-- <br><div dir="ltr"><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"><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">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"></font></div></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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"><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">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"></font></div></div></div></div></div></div></div></div></div></div>