Bug 1553011 - Colonizer deployment fails at volume create due to one host not being peer probed when hostnames are entered manually
Summary: Colonizer deployment fails at volume create due to one host not being peer pr...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-colonizer
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: RHGS 3.3.1 Async
Assignee: Ramakrishna Reddy Yekulla
QA Contact: Rahul Hinduja
URL:
Whiteboard:
Depends On:
Blocks: 1542835
TreeView+ depends on / blocked
 
Reported: 2018-03-08 02:24 UTC by Nag Pavan Chilakam
Modified: 2018-04-05 07:28 UTC (History)
5 users (show)

Fixed In Version: gluster-colonizer-1.0.4-3.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-12 12:07:19 UTC
Embargoed:


Attachments (Terms of Use)
peer probe didn't happen (304.48 KB, image/png)
2018-03-08 02:31 UTC, Nag Pavan Chilakam
no flags Details
bug validation logs for colonizer and final o/p text (80.00 KB, application/x-tar)
2018-03-09 09:06 UTC, Nag Pavan Chilakam
no flags Details
successful installed (229.82 KB, image/png)
2018-03-09 11:50 UTC, Nag Pavan Chilakam
no flags Details
peer status (253.51 KB, image/png)
2018-03-09 11:50 UTC, Nag Pavan Chilakam
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0477 0 normal SHIPPED_LIVE RHEA: new package: gluster-colonizer 2018-03-12 18:12:47 UTC

Description Nag Pavan Chilakam 2018-03-08 02:24:34 UTC
Description of problem:
seems like the peer probing fails to the last node if hostnames are entered manually
this problem was not seen when deploying colonizer by choosing hostnames automatically.
After entering hostnames manually, gluster colonizer goes ahead and tries to deploy gluster, while everything goes on smoothly, volume create fails.
From what I see that fails because one of the node is peer probed.
Possible that we may not be peer probing the last node in the pool of nodes when the manual hostname path logic is picked

may not be regression with the latest build, but seems it got introduced in one of the earlier


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

How reproducible:
-------------
3times

Steps to Reproduce:
1.deploy colonizer say media+fuse
2.choose to enter hostnames manually
3.proceed with the deployment

Actual results:
==============
deployment fails at the fag end during volume create



fatal: [172.18.178.65 -> 172.18.178.65]: FAILED! => {"changed": false, "failed": true, "failed_when_result": true, "msg": "volume create: gluster1: failed: Host glenmcgrath is not in ' Peer in Cluster' state\n", "rc": 1}

172.18.178.65              : ok=66   changed=50   unreachable=0    failed=1  
172.18.178.67              : ok=60   changed=46   unreachable=0    failed=0  
172.18.178.85              : ok=60   changed=46   unreachable=0    failed=0  
172.18.178.86              : ok=60   changed=46   unreachable=0    failed=0  
172.18.178.90              : ok=60   changed=46   unreachable=0    failed=0  
172.18.178.91              : ok=60   changed=46   unreachable=0    failed=0


i tried manually to peer glenmcgrath(hostname of the node which was not peer probed) node and was able to do it post this failure
I opened /var/log/glusterfs/cmd_history.log
i dont see a peer probing to glenmcgrath node by colonizer(the last node details entered by me)

Comment 2 Nag Pavan Chilakam 2018-03-08 02:31:01 UTC
Created attachment 1405664 [details]
peer probe didn't happen

Comment 3 Dustin Black 2018-03-08 14:26:08 UTC
Confirmed in the VM lab. This is some kind of regression. It does appear when using manually-assigned hostnames and IPs that one node in the list does not get probed.

Comment 4 Dustin Black 2018-03-08 15:22:31 UTC
The 'peer' module from gdeploy, which we use here for creating the trusted storage pool, has a required value of 'master', which seems to indicate the node that is expected to be the parent for the peering process. It seems that part of the logic excludes the 'master' node from the list of 'hosts' to be probed. If the play is not executed via ansible on exactly the same host indicated as 'master' then that node will be improperly skipped in the probing.

If my hosts are:
 - john
 - paul
 - george
 - ringo

And my master is:
 - john

Then the probe command excludes 'john' from the probe list, thus probing only paul, george, and ringo. If the ansible play is actually executed on paul, for instance, then paul will probe paul, george, and ringo, and john will not end up as part of the TSP.

Because in the scripts we currently execute all ansible plays based on the management network IP address, and due to python nuance the 'list' type has a non-deterministic order when read in a loop, it's not possible to always match the delegate_to host based on the management IP with the master hostname passed to the play values.

At this point in the playbook, the /etc/hosts files have already been populated, so a simple fix here is to set the peer probe play to set the delegate_to host to the applied storage network hostname matching the master node rather than using the management network IP address.

Comment 5 Dustin Black 2018-03-08 15:24:55 UTC
An ancillary related bug was found in the process of troubleshooting this that causes lines in the /etc/hosts file to be inappropriately overwritten if one hostname can nest inside another. For instance, if you have:

 blinky.pac-man.com
 inky.pac-man.com

it can occur that the regex match will cause the inky line to overwrite the blinky line.

Comment 6 Dustin Black 2018-03-08 16:10:48 UTC
Fixes tested in VM lab and pushed upstream with merge commit https://github.com/gluster/gluster-colonizer/commit/803e56ab34200e79cd86dc3711a6ca894f20495a

Comment 7 Nag Pavan Chilakam 2018-03-09 09:05:41 UTC
on_qa validation:
---------------
retested on the build provided ie as below


[root@cricketcrazy ~]# rpm -qa|egrep "gluster|fio|avahi|zero"
libvirt-daemon-driver-storage-gluster-3.2.0-14.el7_4.5.x86_64
avahi-0.6.31-17.el7.x86_64
gluster-zeroconf-avahi-0.1.3-2.el7rhgs.noarch
fio-2.2.10-2.el7ost.x86_64
avahi-libs-0.6.31-17.el7.x86_64
python2-zeroconf-0.18.0-3.el7rhgs.noarch
gluster-colonizer-1.0.4-3.el7rhgs.noarch
python-gluster-zeroconf-0.1.3-2.el7rhgs.noarch



used colonizer to setup ec+fuse setup and chose to enter hostnames manually as below

cricketcrazy.example.com
hellomiketesting.example.com
movie-buff-guy.example.com
node5.example.com
node9972344788.example.com
rhsonefinalround-test.example.com


peer probe passed successfully for all nodes and volume create too passed.

Atttached are the colonizer logs

Comment 8 Nag Pavan Chilakam 2018-03-09 09:06:22 UTC
Created attachment 1406182 [details]
bug validation logs for colonizer and final o/p text

Comment 9 Nag Pavan Chilakam 2018-03-09 11:49:22 UTC
(In reply to Dustin Black from comment #5)
> An ancillary related bug was found in the process of troubleshooting this
> that causes lines in the /etc/hosts file to be inappropriately overwritten
> if one hostname can nest inside another. For instance, if you have:
> 
>  blinky.pac-man.com
>  inky.pac-man.com
> 
> it can occur that the regex match will cause the inky line to overwrite the
> blinky line.

retried this kind of pattern too, colonizer successfully deployed cluster 
hence moving to verified

[root@k ~]# gluster pool list
UUID					Hostname 	State
36015193-aaae-4962-95b5-873e7b3b5ed7	blinky   	Connected 
f5a90ccc-1294-491c-a69a-99ab69a571bb	ink      	Connected 
7dacb25e-20d3-47da-b6c6-b5fd7cce8ac2	linky    	Connected 
1e521c95-d2c8-4829-be5c-d12853924e2a	oko      	Connected 
745392bb-5fda-4601-8ce6-21fc04629002	pinky    	Connected 
a62f3dcf-880b-4ed4-8542-e8bd383e167a	localhost	Connected 
[root@k ~]#

Comment 10 Nag Pavan Chilakam 2018-03-09 11:50:04 UTC
Created attachment 1406249 [details]
successful installed

Comment 11 Nag Pavan Chilakam 2018-03-09 11:50:31 UTC
Created attachment 1406250 [details]
peer status

Comment 14 errata-xmlrpc 2018-03-12 12:07:19 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://access.redhat.com/errata/RHEA-2018:0477


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