Bug 2054128

Summary: Updating controller node to RHOSP16.1.7 fails because galera resource fails to start
Product: Red Hat OpenStack Reporter: Takashi Kajinami <tkajinam>
Component: openstack-tripleo-heat-templatesAssignee: OSP Team <rhos-maint>
Status: CLOSED NOTABUG QA Contact: Joe H. Rahme <jhakimra>
Severity: medium Docs Contact:
Priority: medium    
Version: 16.1 (Train)CC: astupnik, lmiccini, mburns, ramishra
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-16 08:40:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Takashi Kajinami 2022-02-14 09:06:22 UTC
Description of problem:

Updating controller node to RHOSP16.1.7 fails at "TASK [Wait for containers to start for step 2 using paunch]" .

Looking at logs, it turned out /var/log/mariadb is deleted while uninstalling mariadb package, which is the task introduced by [1], although galera-bundle-resource requires the directory.

[1] https://review.opendev.org/c/openstack/tripleo-heat-templates/+/814786


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Update controller node from older RHOSP16.1 to RHOSP16.1.7

Actual results:
Update fails at "TASK [Wait for containers to start for step 2 using paunch]"

Expected results:
Update succeeds without any failures

Additional info:

Comment 3 Takashi Kajinami 2022-02-14 09:38:59 UTC
Hmmm.... it seems mariadb-server package is not installed in RHOSP16.1.6 freshly deployed.

~~~
$ rpm -qa | grep mariadb
mariadb-connector-c-3.1.11-2.el8_2.x86_64
mariadb-connector-c-config-3.1.11-2.el8_2.noarch
     
$ rpm -q --whatprovides /var/log/mariadb
file /var/log/mariadb is not owned by any package
     
$ cat /etc/rhosp-release
Red Hat OpenStack Platform release 16.1.6 GA (Train)
~~~

The package is installed in RHOSP13 deployment and I confirmed the directory
is owned by the mariadb-server.

~~~
[heat-admin@controller-0 ~]$ rpm -qa | grep mariadb
mariadb-server-galera-10.1.20-3.el7ost.x86_64
mariadb-config-10.1.20-3.el7ost.x86_64
mariadb-common-10.1.20-3.el7ost.x86_64
mariadb-libs-10.1.20-3.el7ost.x86_64
mariadb-errmsg-10.1.20-3.el7ost.x86_64
mariadb-10.1.20-3.el7ost.x86_64
mariadb-server-10.1.20-3.el7ost.x86_64
[heat-admin@controller-0 ~]$ rpm -q --whatprovides /var/log/mariadb
mariadb-server-10.1.20-3.el7ost.x86_64
[heat-admin@controller-0 ~]$ cat /etc/rhosp-release 
Red Hat OpenStack Platform release 13.0.16 (Queens)
~~~