<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="gmail-pl-s"><span class="gmail-pl-pds"></span>TRIPLEO_CONFIG_HASH [1] is generated based on the config value specified [2] which is default to </span><span class="gmail-pl-s">/var/lib/config-data/<service>. Many services specify path at </span><span class="gmail-pl-s">/var/lib/config-data/puppet-generated/<service> ([3] for example).  Hence the hash is not generated and update would fail for such services.<br><br></span></div><span class="gmail-pl-s">Solution:<br></span></div><span class="gmail-pl-s">1. Replace all </span><span class="gmail-pl-s"><span class="gmail-pl-s">/var/lib/config-data/puppet-generated/<service> with </span></span><span class="gmail-pl-s"><span class="gmail-pl-s"><span class="gmail-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="gmail-pl-s"><span class="gmail-pl-s">/var/lib/kolla/config_files/src:ro<br></span>2. </span>Pass<span class="gmail-pl-s"> CONFIG_VOLUME_PREFIX for all relevant services for docker-puppet.py to get correct path.<br><br></span></div><span class="gmail-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.<br></div><div><br>-- <br><div class="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><br><br><br>[1]. <a href="https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L377">https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L377</a><br>[2]. <a href="https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L362">https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L362</a><br>[3]. <a href="https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/opendaylight-api.yaml#L101">https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/opendaylight-api.yaml#L101</a><br>[4]. <a href="https://bugs.launchpad.net/tripleo/+bug/1720208">https://bugs.launchpad.net/tripleo/+bug/1720208</a><br></div></div></div>
</div></div></div></div></div></div>