<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 29, 2017 at 12:04 AM, Janki Chhatbar <span dir="ltr"><<a href="mailto:jankihc91@gmail.com" target="_blank">jankihc91@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi<br><br></div>I understand during an update, paunch restarts containers whenever the hash of image is changed. <span class="m_8628752224860544769gmail-pl-s"><span class="m_8628752224860544769gmail-pl-pds"></span>TRIPLEO_CONFIG_HASH [1] is generated based on the config value specified [2] which is default to </span><span class="m_8628752224860544769gmail-pl-s">/var/lib/config-data/<service><wbr>. Many services specify path at </span><span class="m_8628752224860544769gmail-pl-s">/var/lib/config-data/puppet-<wbr>generated/<service> ([3] for example).  Hence the hash is not generated and update would fail for such services.<br><br></span></div><span class="m_8628752224860544769gmail-pl-s">Solution:<br></span></div><span class="m_8628752224860544769gmail-pl-s">1. Replace all </span><span class="m_8628752224860544769gmail-pl-s"><span class="m_8628752224860544769gmail-pl-s">/var/lib/config-data/puppet-<wbr>generated/<service> with </span></span><span class="m_8628752224860544769gmail-pl-s"><span class="m_8628752224860544769gmail-pl-s"><span class="m_8628752224860544769gmail-pl-s">/var/lib/config-data/<service> in THTs</span></span>. Downside side is not all files present here need to be mount to </span><br><span class="m_8628752224860544769gmail-pl-s"><span class="m_8628752224860544769gmail-pl-s">/var/lib/kolla/config_files/<wbr>src:ro<br></span>2. </span>Pass<span class="m_8628752224860544769gmail-pl-s"> CONFIG_VOLUME_PREFIX for all relevant services for docker-puppet.py to get correct path.<br></span></div></div></blockquote><div>from relevant service's THT. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span class="m_8628752224860544769gmail-pl-s"><br></span></div><span class="m_8628752224860544769gmail-pl-s">I have raised a bug for this [4]. This is very important for updates to work properly for all services.<br></span><div><div><div><div><div><br></div><div>Looking forward to hear from the community.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br>-- <br><div class="m_8628752224860544769gmail_signature"><div dir="ltr">Thanking you<div><br></div><div>Janki Chhatbar</div><div>OpenStack | Docker | SDN</div><div><a href="http://simplyexplainedblog.wordpress.com" target="_blank">simplyexplainedblog.wordpress.<wbr>com</a><br><br><br>[1]. <a href="https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L377" target="_blank">https://github.com/openstack/<wbr>tripleo-heat-templates/blob/<wbr>master/docker/docker-puppet.<wbr>py#L377</a><br>[2]. <a href="https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L362" target="_blank">https://github.com/openstack/<wbr>tripleo-heat-templates/blob/<wbr>master/docker/docker-puppet.<wbr>py#L362</a><br>[3]. <a href="https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/opendaylight-api.yaml#L101" target="_blank">https://github.com/openstack/<wbr>tripleo-heat-templates/blob/<wbr>master/docker/services/<wbr>opendaylight-api.yaml#L101</a><br>[4]. <a href="https://bugs.launchpad.net/tripleo/+bug/1720208" target="_blank">https://bugs.launchpad.net/<wbr>tripleo/+bug/1720208</a><br></div></div></div>
</div></font></span></div></div></div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thanking you<div><br></div><div>Janki Chhatbar</div><div>OpenStack | Docker | SDN</div><div><a href="http://simplyexplainedblog.wordpress.com" target="_blank">simplyexplainedblog.wordpress.com</a></div></div></div>
</div></div>