RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1231032 - redis fails to start when db is 0 bytes
Summary: redis fails to start when db is 0 bytes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: resource-agents
Version: 7.1
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: rc
: ---
Assignee: Fabio Massimo Di Nitto
QA Contact: Asaf Hirshberg
URL:
Whiteboard:
Depends On:
Blocks: 1231034 1250073
TreeView+ depends on / blocked
 
Reported: 2015-06-12 04:51 UTC by Fabio Massimo Di Nitto
Modified: 2015-11-19 04:48 UTC (History)
8 users (show)

Fixed In Version: resource-agents-3.9.5-47.el7
Doc Type: Bug Fix
Doc Text:
When a cluster node fails, the /var/lib/redis/dump.rdb database file in some cases changes its size to 0 bytes. Previously, when this happened, the Redis Open Clustering Framework (OCF) resource agent did not start correctly. This update ensures that in the described situation, Redis automatically clears the corrupted database file and resynchronizes the remaining Redis instances in the cluster. As a result, Redis starts as expected.
Clone Of:
: 1231034 1250073 (view as bug list)
Environment:
Last Closed: 2015-11-19 04:48:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:2190 0 normal SHIPPED_LIVE resource-agents bug fix and enhancement update 2015-11-19 08:06:48 UTC

Description Fabio Massimo Di Nitto 2015-06-12 04:51:48 UTC
Description of problem:

I am filing this against resource-agents and redis (starting from ras)

In case of a node failure and fencing operation, there is a chance that /var/lib/redis/dump.rdb is 0 bytes (fence during an update for example).

In that case redis will fail to start with a "short read".

redis server should ignore a 0 bytes file and resume operations IMHO.

the resource-agents should check for that condition and wipe the file since the db will be resync from the other nodes in the cluster.

Comment 1 David Vossel 2015-06-19 19:50:29 UTC
upstream patch posted

https://github.com/ClusterLabs/resource-agents/pull/623

Comment 10 michal novacek 2015-08-11 13:56:42 UTC
I have verified that the patch from comment #1 is included in redis resource
agent in resource-agents-3.9.5-50.el7.x86_64.

[root@virt-150 ~]# rpm -q resource-agents
resource-agents-3.9.5-50.el7.x86_64
[root@virt-150 ~]# wget -O redis.patched \
https://raw.githubusercontent.com/davidvossel/\
resource-agents/88d7714680418ba00446354aa9d5060090719ca9/heartbeat/redis
[root@virt-150 ~]# diff redis.patched /usr/lib/ocf/resource.d/heartbeat/redis
[root@virt-150 ~]# echo $?
0

Comment 13 errata-xmlrpc 2015-11-19 04:48:11 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, 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://rhn.redhat.com/errata/RHBA-2015-2190.html


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