Bug 2032959 - RFE : set galera max files by THT [NEEDINFO]
Summary: RFE : set galera max files by THT
Keywords:
Status: ON_DEV
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo
Version: 16.1 (Train)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: z2
: ---
Assignee: Damien Ciabrini
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-15 14:46 UTC by Jeremy
Modified: 2023-08-11 13:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
ifrangs: needinfo? (dciabrin)


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 849629 0 None MERGED Template option addition for --pids-limit on Galera cluster resource 2023-05-08 16:23:41 UTC
Red Hat Issue Tracker OSP-11855 0 None None None 2021-12-15 14:47:25 UTC

Description Jeremy 2021-12-15 14:46:26 UTC
Description of problem: Currently we can only set galera max connections via heat templates [1]. So we have to manual set file limits by adding --pids-limits $ to pacemaker cib after the fact. This requires manual steps [2] . We would like to be able to set the file limit by template to be easier and safer. 

[1]
[root@controller-0 heat-admin]# grep -r mysql_max /etc/puppet/hieradata/
/etc/puppet/hieradata/service_configs.json:    "mysql_max_connections": 4096,


[root@undercloud-0 stack]# grep -R MysqlMaxConnections /usr/share/openstack-tripleo-heat-templates/
/usr/share/openstack-tripleo-heat-templates/deployment/database/mysql-base.yaml:  MysqlMaxConnections:
/usr/share/openstack-tripleo-heat-templates/deployment/database/mysql-base.yaml:            mysql_max_connections: {get_param: MysqlMaxConnections}


[2]
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="cluster.common.tag/rhosp16-openstack-mariadb:pcmklatest" network="host" options="--user=root --log-driver=k8s-file --log-opt path=/var/log/containers/stdouts/galera-bundle.log -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS" promoted-max="3" replicas="3" run-command="/bin/bash /usr/local/bin/kolla_start"/>
# +        <podman image="cluster.common.tag/rhosp16-openstack-mariadb:pcmklatest" network="host" options="--user=root --pids-limit 6666 --log-driver=k8s-file --log-opt path=/var/log/containers/stdouts/galera-bundle.log -e KOLLA_CONFIG_STRATEGY=COPY_ALWAYS" promoted-max="3" replicas="3" run-command="/bin/bash /usr/local/bin/kolla_start"/>

# 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






Version-Release number of selected component (if applicable):
16.1
How reproducible:
100%
Steps to Reproduce:
1.above in [2]
2.
3.

Actual results:
manual edits required

Expected results:
THT to set value

Additional info:


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