Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1512586 - OSP11->12 upgrade and clean deployment: /var/lib/mysql/gvwstate.dat gets corrupted on one of the controller nodes after rebooting them post upgrade [rhel-7.4.z]
Summary: OSP11->12 upgrade and clean deployment: /var/lib/mysql/gvwstate.dat gets corr...
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: resource-agents
Version: 7.4
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: ---
Assignee: Oyvind Albrigtsen
QA Contact: Udi Shkalim
Depends On: 1499677
TreeView+ depends on / blocked
Reported: 2017-11-13 15:23 UTC by Oneata Mircea Teodor
Modified: 2017-11-30 17:14 UTC (History)
18 users (show)

Fixed In Version: resource-agents-3.9.5-105.el7_4.3
Doc Type: If docs needed, set a value
Doc Text:
When a Galera cluster node is running, it keeps track of the last known state of the cluster in the gvwstate.dat temporary file. This file is deleted after the node shuts down. Previously, an ungraceful node shutdown sometimes left an empty gvwstate.dat file on the disk. Consequently, the node failed to join the cluster on recovery. With this update, the resource-agents scripts delete this empty file, and as a result, the described problem no longer occurs
Clone Of: 1499677
Last Closed: 2017-11-30 16:09:46 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Github ClusterLabs resource-agents pull 1052 None None None 2017-11-13 15:24:05 UTC
Red Hat Product Errata RHBA-2017:3327 normal SHIPPED_LIVE resource-agents bug fix update 2017-11-30 20:20:19 UTC

Description Oneata Mircea Teodor 2017-11-13 15:23:53 UTC
This bug has been copied from bug #1499677 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 4 Damien Ciabrini 2017-11-20 11:56:23 UTC
Instructions for testing:

. Start a 3-node galera cluster, and let it synchronize fully.

. Once the cluster is ready, stop it via pacemaker:
  pcs resource disable galera-master

. On one of the node, simulate a "bad stop" event that would leave an empty view state on disk:

  sudo touch /var/lib/mysql/gvwstate.dat
  sudo chown mysql. /var/lib/mysql/gvwstate.dat

. Restart the galera cluster and watch it restart properly on the node with the empty view state

  pcs resource disable galera-master

. On the node recovered node, look at the journal log for a recovery string:

"WARNING: empty /var/lib/mysql/gvwstate.dat detected, removing it to prevent PC recovery failure at next restart"

Comment 8 Udi Shkalim 2017-11-20 19:17:42 UTC
Verified on: resource-agents-3.9.5-105.el7_4.3

followed steps on comment #4 and resource was recovered successfully

var/log/messages:Nov 20 14:14:08 localhost galera(galera)[92]: WARNING: empty /var/lib/mysql/gvwstate.dat detected, removing it to prevent PC recovery failure at next restart

[root@controller-0 ~]# pcs status
Cluster name: tripleo_cluster
Stack: corosync
Current DC: controller-2 (version 1.1.16-12.el7_4.4-94ff4df) - partition with quorum
Last updated: Mon Nov 20 19:15:36 2017
Last change: Mon Nov 20 19:13:55 2017 by root via cibadmin on controller-0

12 nodes configured
37 resources configured

Online: [ controller-0 controller-1 controller-2 ]
GuestOnline: [ galera-bundle-0@controller-1 galera-bundle-1@controller-2 galera-bundle-2@controller-0 rabbitmq-bundle-0@controller-0 rabbitmq-bundle-1@controller-1 rabbitmq-bundle-2@controller-2 redis-bundle-0@controller-0 redis-bundle-1@controller-1 redis-bundle-2@controller-2 ]

Full list of resources:

 ip-        (ocf::heartbeat:IPaddr2):       Started controller-0
 ip-  (ocf::heartbeat:IPaddr2):       Started controller-1
 ip- (ocf::heartbeat:IPaddr2):       Started controller-2
 ip- (ocf::heartbeat:IPaddr2):       Started controller-0
 ip- (ocf::heartbeat:IPaddr2):       Started controller-1
 ip- (ocf::heartbeat:IPaddr2):       Started controller-2
 openstack-cinder-volume        (systemd:openstack-cinder-volume):      Started controller-0
 Docker container set: rabbitmq-bundle []
   rabbitmq-bundle-0    (ocf::heartbeat:rabbitmq-cluster):      Started controller-0
   rabbitmq-bundle-1    (ocf::heartbeat:rabbitmq-cluster):      Started controller-1
   rabbitmq-bundle-2    (ocf::heartbeat:rabbitmq-cluster):      Started controller-2
 Docker container set: galera-bundle []
   galera-bundle-0      (ocf::heartbeat:galera):        Master controller-1
   galera-bundle-1      (ocf::heartbeat:galera):        Master controller-2
   galera-bundle-2      (ocf::heartbeat:galera):        Master controller-0
 Docker container set: redis-bundle []
   redis-bundle-0       (ocf::heartbeat:redis): Master controller-0
   redis-bundle-1       (ocf::heartbeat:redis): Slave controller-1
   redis-bundle-2       (ocf::heartbeat:redis): Slave controller-2
 Docker container set: haproxy-bundle []
   haproxy-bundle-docker-0      (ocf::heartbeat:docker):        Started controller-0
   haproxy-bundle-docker-1      (ocf::heartbeat:docker):        Started controller-1
   haproxy-bundle-docker-2      (ocf::heartbeat:docker):        Started controller-2

Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled
[root@controller-0 ~]# rpm -qa | grep resource-agents-3.9.5-105

Comment 11 errata-xmlrpc 2017-11-30 16:09:46 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.

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