[Bugs] [Bug 1617903] New: Geo-rep tests fails with Permission denied even though keys are distributed
bugzilla at redhat.com
bugzilla at redhat.com
Thu Aug 16 06:52:43 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1617903
Bug ID: 1617903
Summary: Geo-rep tests fails with Permission denied even though
keys are distributed
Product: GlusterFS
Version: mainline
Component: project-infrastructure
Assignee: bugs at gluster.org
Reporter: khiremat at redhat.com
CC: bugs at gluster.org, gluster-infra at gluster.org
Description of problem:
Occasionally geo-rep tests fail with Permission denied even though keys are
distributed.
Geo-rep generates keys using following command.
1. gluster system:: exec gsec_create
Geo-rep distributes keys using following command.
2. gluster vol geo-rep <mastervol> <slavehost>::<slavevol> create push-pem
Actually hook script is used behind to distribute as part of above command
extras/hook-scripts/S56glusterd-geo-rep-create-post.sh
In the test case, we do wait and confirm the key is distributed to
authorized_keys before proceeding further
#Verify the keys are distributed
EXPECT_WITHIN $GEO_REP_TIMEOUT 0 check_keys_distributed
tests/geo-rep.rc
function check_keys_distributed()
{
local search_key=$(cat
/var/lib/glusterd/geo-replication/master_slave_common_secret.pem.pub)
grep -F "$search_key" ~/.ssh/authorized_keys > /dev/null
echo $?
}
Version-Release number of selected component (if applicable):
How reproducible:
sometimes
Steps to Reproduce:
1. regression run of tests/00-geo-rep/00-georep-verify-setup.t
Actual results:
Fails sometimes
Expected results:
Should always pass
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list