Rabbit master re-election happens after failover of controller with rabbit slave
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Bogdan Dobrelya | ||
8.0.x |
Won't Fix
|
Medium
|
MOS Oslo | ||
Mitaka |
Invalid
|
Medium
|
Bogdan Dobrelya |
Bug Description
Steps to Reproduce:
Check 3 in 1 rabbit failover
Scenario:
1. SSH to controller and get rabbit master
2. Destroy not rabbit master node
3. Check that rabbit master stay as was
4. Run ostf ha
5. Turn on destroyed slave
6. Check rabbit master is the same
7. Run ostf ha
8. Destroy rabbit master node
9. Check that new rabbit-master appears
10. Run ostf ha
11. Power on destroyed node
12. Check that new rabbit-master was not elected
13. Run ostf ha
[root@nailgun ~]# fuel node
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|---
1 | ready | slave-05_compute | 1 | 10.109.30.7 | 64:17:61:36:a1:00 | compute | | True | 1
4 | ready | slave-03_controller | 1 | 10.109.30.8 | 64:f1:8c:b6:e2:34 | controller | | False | 1
3 | ready | slave-02_controller | 1 | 10.109.30.4 | 64:f1:6b:07:1c:82 | controller | | True | 1
2 | ready | slave-04_compute | 1 | 10.109.30.9 | 64:94:54:46:44:dc | compute | | True | 1
6 | ready | slave-06_cinder | 1 | 10.109.30.10 | 64:cb:f7:d7:58:9b | cinder | | True | 1
5 | ready | slave-01_controller | 1 | 10.109.30.3 | 64:fa:d4:f6:da:45 | controller | | True | 1
Actual result:
Test failed on step 3 according to master was re-elected.
After deployment node 3 was elected as rabbit master - in test we destroy node -4 (that was run as rabbit slave)
And after this master -reelection happens and node-5 become the master
At the same time OSTF ha suit is passed, so please, clarify if the requirement like: If failover happens on node that is master slave, master rabbit node should become the same is valid? If not lets reassign this issue to qa team for test updates
Master/Slave Set: master_
Masters: [ node-5.
Slaves: [ node-3.
[root@nailgun ~]# cat /etc/fuel/
VERSION:
feature_groups:
- mirantis
production: "docker"
release: "8.0"
api: "1.0"
build_number: "466"
build_id: "466"
fuel-nailgun_sha: "f81311bbd6fee2
python-
fuel-agent_sha: "6823f1d4005a63
fuel-
astute_sha: "b81577a5b7857c
fuel-library_sha: "fe03d887361eb8
fuel-ostf_sha: "ab5fd151fc6c1a
fuel-mirror_sha: "b62f3cce5321fd
fuelmenu_sha: "fac143f4dfa757
shotgun_sha: "63645dea384a37
network-
fuel-upgrade_sha: "616a7490ec7199
fuelmain_sha: "727f7076f04cb0
set to medium according to ha cluster is healthy after master re-election, and according to log it happens due to timeouts in rabbitmqctl