Description of problem: Testing the test suite on newer Centos 8 builder, i see that the aformentioned test fail on them. Since that's freshly installed system, this step is blocking: ok 21 [ 36/ 821] < 156> 'gluster-mountbroker status' ps show : 6781 pts/0 S+ 0:00 \_ timeout --foreground -k 5 500 prove -vmfe /bin/bash ./tests/00-geo-rep/00-georep-verify-non-root-setup.t 6782 pts/0 S+ 0:00 \_ /usr/bin/perl -w /bin/prove -vmfe /bin/bash ./tests/00-geo-rep/00-georep-verify-non-root-setup.t 6783 pts/0 S+ 0:00 \_ /bin/bash ./tests/00-geo-rep/00-georep-verify-non-root-setup.t 7890 ? Ss 0:00 \_ /bin/sh /bin/ssh-copy-id -i /root/.ssh/id_rsa.pub nroot.0.1 7916 ? S 0:00 \_ /bin/sh /bin/ssh-copy-id -i /root/.ssh/id_rsa.pub nroot.0.1 7917 ? S 0:36 \_ ssh -v -o PreferredAuthentications=, -o ControlPath=none nroot.0.1 7918 ? R 0:05 \_ sed -ne s/.*remote software version //p that's because the ssh key need to be accepted automatically.
You might want to change the severity of this RHBZ if this is blocking the CentOS 8 builder upgrade tests.
Kotresh, can you please take a look at the failing test?
Hi Deepshikha, Looking at it. /sunny
Hi, Can you provide machine for further analysis, it will help to resolve this faster. /sunny
Created attachment 1645578 [details] proposed patch
There isn't a need for much analysis, the problem is that on a new system, the remote key need to be accepted by ssh-copy-id, that's why it is blocked on the command: "ssh -v -o PreferredAuthentications=, -o ControlPath=none nroot.0.1". I do not know how that was supposed to work in the first place, but I suspect this did worked by accident, because we do not reinstall the builder on each run. The attached patch should work, and to test it, no need for anything special, just use a fresh VM (either vagrant, virt-builder, anything) and test. just make sure the know_hosts file of root is empty, since that's the state of a freshly install VM.
(In reply to M. Scherer from comment #6) > There isn't a need for much analysis, the problem is that on a new system, > the remote key need to be accepted by ssh-copy-id, that's why it is blocked > on the command: "ssh -v -o PreferredAuthentications=, -o ControlPath=none > nroot.0.1". > Thanks for analysis and patch. > I do not know how that was supposed to work in the first place, but I > suspect this did worked by accident, because we do not reinstall the builder > on each run. Yes, I suppose it worked because builders were not freshly installed. >The attached patch should work, and to test it, no need for > anything special, just use a fresh VM (either vagrant, virt-builder, > anything) and test. just make sure the know_hosts file of root is empty, > since that's the state of a freshly install VM.
REVIEW: https://review.gluster.org/23887 (test: fix non-root test case for geo-rep) posted (#1) for review on master by Sunny Kumar
The option for maintaining order for authentication method: "PreferredAuthentications: publickey" -- fails on regression as well on local system. I have changed its order to password.
Update: Can be reproduced in system by removing/making_empty "~/.ssh/known_hosts" file for root. Works with patch: https://review.gluster.org/#/c/glusterfs/+/23887/2/ /sunny
REVIEW: https://review.gluster.org/23887 (test: fix non-root test case for geo-rep) merged (#3) on master by Amar Tumballi