-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server Reboot test for nfs-ganesha #27
base: centos-ci
Are you sure you want to change the base?
Conversation
Signed-off-by: Girjesh Rajoria <[email protected]>
server-reboot/sever_setup.sh
Outdated
#Parsing export id from volume export conf file | ||
export_id=$(grep 'Export_Id' ${conf_file} | sed 's/^[[:space:]]*Export_Id.*=[[:space:]]*\([0-9]*\).*/\1/') | ||
|
||
dbus-send --type=method_call --print-reply --system --dest=org.ganesha.nfsd /org/ganesha/nfsd/ExportMgr org.ganesha.nfsd.exportmgr.UpdateExport string:${conf_file} string:"EXPORT(Export_Id = ${export_id})" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do not recommend UpdateExport to enable/disable ACL. Please move these checks at the beginning itself i.e, in between line:29 and line:30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done as https://github.com/nfs-ganesha/ci-tests/blob/centos-ci/common-scripts/basic-gluster.sh which is used by other ci-tests. Should we change there also?
server-reboot/duffy.py
Outdated
arch=os.getenv("CENTOS_ARCH") | ||
count=2 | ||
server_script=os.getenv("SERVER_TEST_SCRIPT") | ||
server_setup_script=os.getenv("SERVER_SETUP_SCRIPT") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between server_script and server_setup_script?
server-reboot/duffy.py
Outdated
# disable the firewall on server, otherwise the client can not connect | ||
cmd="""ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@%s ' | ||
curl %s | bash - | ||
'""" % (b['hosts'][0], server_setup_script) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post reboot, cant we just restart nfs-ganesha process which should take care of exporting the gluster volume too?
@soumyakoduri |
@@ -0,0 +1,110 @@ | |||
import json, urllib, subprocess, sys, os, time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think this file should be included, can't you use the common-scripts/basic-gluster-duffy.py instead? If you made modifications, maybe those can be merged into that one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modification in these are only required for this particular test. https://github.com/nfs-ganesha/ci-tests/blob/centos-ci/common-scripts/basic-gluster-duffy.py is used by other tests so can not modify it.
@@ -0,0 +1,209 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same counts for this one, is it different from common-scripts/basic-gluster.sh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, all scripts should have a #! for the interpreter (/bin/sh in this case, since they're sh scripts)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit.
server-reboot/server.sh
Outdated
@@ -1,209 +1,54 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line, at least, should stay. Also, some kind of block comment telling what the file does...
245d4b6
to
19df33f
Compare
801b37d
to
c770b94
Compare
e9b2ca4
to
a09a2e5
Compare
e93af3b
to
ade304e
Compare
ade304e
to
7be933f
Compare
1a86ec1
to
1ed5d17
Compare
Perform mount from client, start i/o from the client. Reboot the server. Check whether IO got resumed. Test runs on Mount V3, V4.0 and V4.1
Signed-off-by: Girjesh Rajoria [email protected]