Bug 1460911

Summary: /var/lib/config-data/ irrationally big
Product: Red Hat OpenStack Reporter: Attila Fazekas <afazekas>
Component: openstack-tripleo-heat-templatesAssignee: Martin André <maandre>
Status: CLOSED ERRATA QA Contact: Omri Hochman <ohochman>
Severity: low Docs Contact: Andrew Burden <aburden>
Priority: low    
Version: 12.0 (Pike)CC: dprince, emacchi, jschluet, maandre, m.andre, mburns, rhallise, tvignaud
Target Milestone: z4Keywords: TestOnly, Triaged, ZStream
Target Release: 12.0 (Pike)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-7.0.12-8.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-05 18:52:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Attila Fazekas 2017-06-13 06:18:08 UTC
Description of problem:
ls -lh /var/lib/config-data/*/etc/udev/hwdb.bin 
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/aodh/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/ceilometer/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/glance_api/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/gnocchi/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/heat_api_cfn/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/heat_api/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/heat/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/keystone/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.0M Jun  1 17:30 /var/lib/config-data/memcached/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.0M Jun  1 17:30 /var/lib/config-data/mongodb/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:40 /var/lib/config-data/mysql/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/neutron/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/nova/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/nova_placement/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/panko/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:43 /var/lib/config-data/rabbitmq/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:40 /var/lib/config-data/redis/etc/udev/hwdb.bin
-r--r--r--. 1 root root 7.1M Jun  1 17:42 /var/lib/config-data/swift/etc/udev/hwdb.bin


128MB for not used config binary.

Comment 1 Dan Prince 2017-06-23 15:23:01 UTC
There are some patches ongoing patches upstream to help optimize what we copy out of the docker-puppet config runs. Good that you noticed this but I think it will soon be fixed upstream.

Comment 2 Dan Prince 2017-06-23 18:49:57 UTC
The upstream patch where Martin appears to be working on this already is here btw:
https://review.openstack.org/#/c/476153/

Comment 3 Martin André 2017-07-17 14:40:20 UTC
Part of the work to use a much smaller config-data for containers config files already landed upstream.

I've made the service containers consume only the files that puppet generated, now I need to generalize it to the boostrap containers. This is a bit more tricky since these ones do not use the kolla set-configs.py script for the vast majority of them.

Then we can stop extracting all of /etc from the containers and just use the puppet-generated data.

Comment 4 Dan Prince 2017-10-20 13:08:48 UTC
We've had some improvement here but it likely won't be fully resolved until Queens (OSP13).

Comment 9 Lon Hohberger 2018-09-11 10:37:00 UTC
According to our records, this should be resolved by openstack-tripleo-heat-templates-7.0.12-8.el7ost.  This build is available now.

Comment 12 errata-xmlrpc 2018-12-05 18:52:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3789