settingsLogin | Registersettings

[openstack-dev] [tripleo][update] TRIPLEO_CONFIG_HASH not generated, no update of service

0 votes

Hi

I understand during an update, paunch restarts containers whenever the hash
of image is changed. TRIPLEOCONFIGHASH [1] is generated based on the
config value specified [2] which is default to /var/lib/config-data/.
Many services specify path at /var/lib/config-data/puppet-generated/
([3] for example). Hence the hash is not generated and update would fail
for such services.

Solution:
1. Replace all /var/lib/config-data/puppet-generated/ with
/var/lib/config-data/
in THTs. Downside side is not all files present here need to be mount to
/var/lib/kolla/configfiles/src:ro
2. Pass CONFIG
VOLUME_PREFIX for all relevant services for docker-puppet.py
to get correct path.

I have raised a bug for this [4]. This is very important for updates to
work properly for all services.

Looking forward to hear from the community.

--
Thanking you

Janki Chhatbar
OpenStack | Docker | SDN
simplyexplainedblog.wordpress.com

[1].
https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L377
[2].
https://github.com/openstack/tripleo-heat-templates/blob/master/docker/docker-puppet.py#L362
[3].
https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/opendaylight-api.yaml#L101
[4]. https://bugs.launchpad.net/tripleo/+bug/1720208


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Sep 28, 2017 in openstack-dev by jankihc91_at_gmail.c (460 points)  

1 Response

0 votes

On Fri, Sep 29, 2017 at 12:04 AM, Janki Chhatbar jankihc91@gmail.com
wrote:

Hi

I understand during an update, paunch restarts containers whenever the
hash of image is changed. TRIPLEOCONFIGHASH [1] is generated based on
the config value specified [2] which is default to
/var/lib/config-data/. Many services specify path at
/var/lib/config-data/puppet-generated/ ([3] for example). Hence
the hash is not generated and update would fail for such services.

Solution:
1. Replace all /var/lib/config-data/puppet-generated/ with /var/lib/config-data/
in THTs. Downside side is not all files present here need to be mount to
/var/lib/kolla/configfiles/src:ro
2. Pass CONFIG
VOLUME_PREFIX for all relevant services for
docker-puppet.py to get correct path.

from relevant service's THT.

I have raised a bug for this [4]. This is very important for updates to
work properly for all services.

Looking forward to hear from the community.

--
Thanking you

Janki Chhatbar
OpenStack | Docker | SDN
simplyexplainedblog.wordpress.com

[1]. https://github.com/openstack/tripleo-heat-templates/blob/
master/docker/docker-puppet.py#L377
[2]. https://github.com/openstack/tripleo-heat-templates/blob/
master/docker/docker-puppet.py#L362
[3]. https://github.com/openstack/tripleo-heat-templates/blob/
master/docker/services/opendaylight-api.yaml#L101
[4]. https://bugs.launchpad.net/tripleo/+bug/1720208

--
Thanking you

Janki Chhatbar
OpenStack | Docker | SDN
simplyexplainedblog.wordpress.com


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Sep 28, 2017 by jankihc91_at_gmail.c (460 points)  
...