Bug 1460911 - /var/lib/config-data/ irrationally big
Summary: /var/lib/config-data/ irrationally big
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z4
: 12.0 (Pike)
Assignee: Martin André
QA Contact: Omri Hochman
Andrew Burden
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-13 06:18 UTC by Attila Fazekas
Modified: 2019-10-23 06:37 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-heat-templates-7.0.12-8.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-05 18:52:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 476153 0 None master: MERGED tripleo-heat-templates: Copy only generated puppet files into the container (Ia4ad6d77387e3dc354cd131c2f9756939fb8f736) 2018-09-10 18:37:04 UTC
Red Hat Product Errata RHBA-2018:3789 0 None None None 2018-12-05 18:54:21 UTC

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


Note You need to log in before you can comment on or make changes to this bug.