Unable to setup pids-limit for galera pcs resource via heat templates
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Undecided
|
Antonio Romito |
Bug Description
Description
===========
Currently is it not possible to set --pids-limit for galera pcs resource via heat template
Steps to reproduce
==================
It can be only manually set file limits by adding --pids-limits to pacemaker cib but this requires manual steps.
~~~
Commands to be run:
# Do this on any cluster node
# Unmanaged the resource
pcs resource unmanage galera-bundle
# Dump the original CIB
pcs cluster cib > cib-galera.xml
cp cib-galera.xml cib-galera.xml.org
# Edit cib-galera.xml and update on the resource so that the galera-bundle line looks like the following (choose the limit you want):
#
# - <podman image="
# + <podman image="
# Push the updated CIB. At this stage, no galera resource will restart
pcs cluster cib-push --config cib-galera.xml
# Force pacemaker to reprobe the state of the galera resource (that way it forgets that it has to restart it once it becomes managed again)
pcs resource refresh galera-bundle
# Give back control of the resource to pacemaker
pcs resource manage galera-bundle
# restart each resource individually for a rolling restart and the new value to take effect
~~~
Expected result
===============
--pid-limit should be tunable manually via heat template
Actual result
=============
Currently, it's only possible to set it by modifying manually galera's CIB.
Environment
===========
OpenStack Train
Changed in tripleo: | |
assignee: | nobody → Antonio Romito (antonioromito) |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/c/openstack /puppet- tripleo/ +/849629 /opendev. org/openstack/ puppet- tripleo/ commit/ 91eb4140b5b8337 cbd029a58ea1cb4 c3bab3fa21
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 91eb4140b5b8337 cbd029a58ea1cb4 c3bab3fa21
Author: Antonio Romito <email address hidden>
Date: Thu Nov 24 09:06:30 2022 +0000
Template option addition for --pids-limit on Galera cluster resource
mysql_bundle.pp has been modified to be able to configure --pids-limit option :profile: :pacemaker: :database: :mysql_ bundle: :pids_limit: " is used
using a template. By default the parameter remains 'undef' when not specified.
When "tripleo:
as an ExtraConfig it will automatically set the value in the Galera cluster
resource.
Closes-Bug: #1982751
Change-Id: Iffe9c9a1d7ca73 6f273d2da43928d 7da4a99d1d6