Rabbit OCF - master status caching error

Bug #1540936 reported by Alexey Lebedeff
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dmitry Mescheryakov
8.0.x
Fix Released
High
Bogdan Dobrelya

Bug Description

Single monitor run reports several nodes as a master. Like this:

2016-01-29T01:50:17.168543+00:00 info: INFO: p_rabbitmq-server: get_monitor(): rabbit app is running. master is node-2.test.domain.local
2016-01-29T01:50:17.841360+00:00 info: INFO: p_rabbitmq-server: get_monitor(): rabbit app is running. master is node-1.test.domain.local

dmitriyme pointed out that it happens nearby of https://github.com/openstack/fuel-library/blob/bde7c0d4a64c02350ef169060d0218fbf46569c5/files/fuel-ha-utils/ocf/rabbitmq#L1394 - probably status_master should be initialized at every loop iteration there

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Please provide logs

Changed in fuel:
status: New → Incomplete
tags: added: area-library rabbitmq
Changed in fuel:
importance: Undecided → High
milestone: none → 9.0
assignee: nobody → Fuel Library Team (fuel-library)
tags: added: regression-8.0
Changed in fuel:
status: Incomplete → Triaged
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

You're right, no logs needed

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bogdan Dobrelya (bogdando)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/275312

tags: added: move-to-mu
Andrey Maximov (maximov)
tags: removed: move-to-mu
Andrey Maximov (maximov)
tags: added: hit-hcf
Changed in fuel:
assignee: Bogdan Dobrelya (bogdando) → Dmitry Mescheryakov (dmitrymex)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/275312
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=6c0364ab335445d27ab557f3686ee32442607c6f
Submitter: Jenkins
Branch: master

commit 6c0364ab335445d27ab557f3686ee32442607c6f
Author: Bogdan Dobrelya <email address hidden>
Date: Tue Feb 2 17:31:34 2016 +0100

    Fix uninitialized status_master

    Fix multiple nodes may be reported in logs as the running master

    Closes-bug: #1540936

    Change-Id: Ic2dfe7b2ba657b9bf06d97f49ddb4b69f2f4e063
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Andrey Maximov (maximov) wrote :

mos team supports rabbitmq ha scripts.

tags: added: area-mos
removed: area-library
Revision history for this message
Andrey Maximov (maximov) wrote :

so I set area-mos tag

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/275772

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/8.0)

Reviewed: https://review.openstack.org/275772
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=b0f86ec4e8580b17af550defc335e9f6ba8bd5f5
Submitter: Jenkins
Branch: stable/8.0

commit b0f86ec4e8580b17af550defc335e9f6ba8bd5f5
Author: Bogdan Dobrelya <email address hidden>
Date: Tue Feb 2 17:31:34 2016 +0100

    Fix uninitialized status_master

    Fix multiple nodes may be reported in logs as the running master

    Closes-bug: #1540936

    Change-Id: Ic2dfe7b2ba657b9bf06d97f49ddb4b69f2f4e063
    Signed-off-by: Bogdan Dobrelya <email address hidden>
    (cherry picked from commit 6c0364ab335445d27ab557f3686ee32442607c6f)

tags: added: on-verification
Revision history for this message
Dmitriy Kruglov (dkruglov) wrote :

Verified on MOS 8.0, build 539. The issue is fixed.

ISO details:
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "539"
  build_id: "539"
  fuel-nailgun_sha: "baec8643ca624e52b37873f2dbd511c135d236d9"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "e2d79330d5d708796330fac67722c21f85569b87"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "87dfb6bc25d4650264f09c338ed77c21a3d6fe87"

tags: removed: on-verification
Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :

[root@nailgun ~]# cd /var/log/remote
[root@nailgun remote]# find . |grep lrmd
./node-39.test.domain.local/lrmd.log
./node-40.test.domain.local/lrmd.log
./node-38.test.domain.local/lrmd.log
[root@nailgun remote]# grep -i 'master' ./node-38.test.domain.local/lrmd.log
2016-03-22T09:25:07.346625+00:00 info: INFO: p_rabbitmq-server[30860]: get_monitor(): also checking if we are master.
2016-03-22T09:25:08.805039+00:00 info: INFO: p_rabbitmq-server[30860]: get_monitor(): master attribute is 0
...

[root@nailgun remote]# grep -i 'master is' ./node-39.test.domain.local/lrmd.log
2016-03-22T09:12:44.655445+00:00 info: INFO: p_rabbitmq-server[32475]: get_monitor(): master is node-38.test.domain.local
....
[root@nailgun remote]# grep -i 'master is' ./node-40.test.domain.local/lrmd.log
2016-03-22T10:21:50.148183+00:00 info: INFO: p_rabbitmq-server[5888]: get_monitor(): master is node-38.test.domain.local
...

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
Sofiia Andriichenko (sandriichenko) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.