Increase container shutdown delay before force-killing to avoid db
corruption after controller reboots
Parameterize SHUTDOWNDELAY envvar as lxc_container_shutdown_delay
with default value 60 seconds
Rename lxc.default.j2 template to lxc-net.default.j2 to align with
destination config file name lxc-net
Add new lxc.default.j2 template to use the lxc_container_shutdown_delay
variable and allow user-defined value
Related-Bug: 1806696
Change-Id: I1d3b7990e462140fdb402883f8d25422eafca66b
(cherry picked from commit d0d9384aee36277e899aa664bc9f64835c33d6c4)
Reviewed: https:/ /review. openstack. org/633767 /git.openstack. org/cgit/ openstack/ openstack- ansible- lxc_hosts/ commit/ ?id=3138838ff8f 169ae0cf413c459 785d5f20306f33
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 3138838ff8f169a e0cf413c459785d 5f20306f33
Author: Justin Alford <email address hidden>
Date: Tue Dec 18 13:04:57 2018 -0700
Increase LXC container default shutdown delay
Increase container shutdown delay before force-killing to avoid db shutdown_ delay shutdown_ delay
corruption after controller reboots
Parameterize SHUTDOWNDELAY envvar as lxc_container_
with default value 60 seconds
Rename lxc.default.j2 template to lxc-net.default.j2 to align with
destination config file name lxc-net
Add new lxc.default.j2 template to use the lxc_container_
variable and allow user-defined value
Related-Bug: 1806696
Change-Id: I1d3b7990e46214 0fdb402883f8d25 422eafca66b e899aa664bc9f64 835c33d6c4)
(cherry picked from commit d0d9384aee36277