Bug 1899935 - [FFU 13->16.1][InstanceHA] Error:Unable to read /etc/corosync/corosync.conf: Is a directory
Summary: [FFU 13->16.1][InstanceHA] Error:Unable to read /etc/corosync/corosync.conf: ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: z4
: 16.1 (Train on RHEL 8.2)
Assignee: Jose Luis Franco
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-20 12:08 UTC by Jose Luis Franco
Modified: 2023-12-15 20:08 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.3.2-1.20201114031851.el8ost.src.rpm
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-17 15:35:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1905033 0 None None None 2020-11-20 13:27:39 UTC
OpenStack gerrit 763556 0 None MERGED Remove corosync.conf if it's a dir from remote. 2021-02-15 09:28:33 UTC
Red Hat Issue Tracker OSP-3205 0 None None None 2022-08-02 18:02:46 UTC
Red Hat Product Errata RHBA-2021:0817 0 None None None 2021-03-17 15:36:05 UTC

Description Jose Luis Franco 2020-11-20 12:08:02 UTC
Description of problem:

When upgrading from OSP13 to OSP16.1 an InstanceHA compute node, any pcs command executed on the already upgraded environment fails with:

Error:Unable to read /etc/corosync/corosync.conf: Is a directory

When the /etc/corosync directory was checked we could see that /etc/corosync/corosync.conf was really a directory.

This directory was present also on all the other computes which were not upgraded yet, however in OSP13 it seems this wasn't a problem for pacemaker.

Therefore, we need to add an upgrade task that checks if the directory exists and remove it if it's empty or back it up if it isn't.

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


How reproducible:


Steps to Reproduce:
1. Deploy OSP13 environmetn with instanceHA
2. Add directory /etc/corosync/corosync.conf:
mkdir /etc/corosync/corosync.conf
3. Run the FFU from 13 to 16.1 for control plane
4. Upgrade first compute
5. Run pcs status

Actual results:

Cluster check "pcs status" command fails on the compute node

Expected results:


Cluster check "pcs status" command works on the compute node

Additional info:

Comment 1 Jose Luis Franco 2020-11-20 13:27:40 UTC
Bugzilla not marked as a blocker as it can be easily workaround.

The fix is to remove the /etc/corosync/corosync.conf folder (or simply rename it) from the Compute node.

Comment 12 Jose Luis Franco 2021-01-29 17:11:08 UTC
Code present in RHOS-16.1-RHEL-8-20210120.n.1, validated in pidone instanceHA FFU CI job:  http://10.19.227.143:8080/view/CI%20Jobs/job/osp-13-16-ffu-iha/105/

Comment 18 errata-xmlrpc 2021-03-17 15:35:42 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.4 director bug fix advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:0817


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