The machinectl cache is currently set image to 16G by default. If
multiple container images are imported into the cache this may be too
small by default. This change sets the cache to "64G" by default allowing
the cache more room to grow by.
This change also disables the quota system once the limit has been set
The option `lxc_host_machine_quota_disabled` has been added to disable or
enable the quota system as needed. This is done after the default limit has
been set so an adequately sized sparce file can be created should it not
already exist.
> More documentation can be seen here [0] with regard to the set-limit
option.
Because we support both modern and older systemd, the cache prep tasks
for old systemd have been updated so that deployers using earlier
versions of systemd can benefit from the ability to grow an existing
cache via playbook run.
Reviewed: https:/ /review. openstack. org/545851 /git.openstack. org/cgit/ openstack/ openstack- ansible- lxc_hosts/ commit/ ?id=49edbd39b14 e648ce2fe2c5afa 9e01adf684c80d
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 49edbd39b14e648 ce2fe2c5afa9e01 adf684c80d
Author: Kevin Carter <email address hidden>
Date: Wed Dec 13 00:12:56 2017 -0600
Clean-up old systemd prep and allow machinctl to grow
This is a backport of: /review. openstack. org/527592 /review. openstack. org/545801
- https:/
- https:/
The machinectl cache is currently set image to 16G by default. If
multiple container images are imported into the cache this may be too
small by default. This change sets the cache to "64G" by default allowing
the cache more room to grow by.
This change also disables the quota system once the limit has been set machine_ quota_disabled` has been added to disable or
The option `lxc_host_
enable the quota system as needed. This is done after the default limit has
been set so an adequately sized sparce file can be created should it not
already exist.
> More documentation can be seen here [0] with regard to the set-limit
option.
Because we support both modern and older systemd, the cache prep tasks
for old systemd have been updated so that deployers using earlier
versions of systemd can benefit from the ability to grow an existing
cache via playbook run.
[0] https:/ /www.freedeskto p.org/software/ systemd/ man/machinectl. html#set- limit%20% 5BNAME% 5D%20BYTES
Closes-Bug: #1745361 6808ac37a9ea79a 50e29671115
Change-Id: I85fefc6ce186bb
Signed-off-by: Kevin Carter <email address hidden>