-
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
Checking EXPORT Block Parameters at Client End #26
base: centos-ci
Are you sure you want to change the base?
Conversation
Signed-off-by: Mohammed Azhar Padariyakam <mpadariy@redhat.com>
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.
Some nits.
echo "FAILURE Since Write Permissions Were Not Blocked To The Client" | ||
exit ret | ||
else | ||
echo "SUCCESS ON WRITE PERMISSIONS FAILURE" |
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 should probably not include the word "FAILURE"
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.
@dang
What I meant here is ... The expected output is that the write permissions should fail ....
Should I give a better wording like ... "SUCCESS ON WRITE PERMS DECLINED" ?
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.
That would be fine, yes. It's just that people (and CI frameworks) frequently look for FAIL and FAILURE in output, so see if a test failed. In this case, it is succeeding, so it shouldn't use the word FAIL. Anything else (like DECLINED) is fine.
echo "FAILURE Since v4.0 Permissions Were Not Given To The Client" | ||
exit ret | ||
else | ||
echo "SUCCESS ON v4.0 MOUNT FAILURE" |
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 should probably not use the word FAILURE
echo "FAILURE Since v4.1 Permissions Were Not Given To The Client" | ||
exit ret | ||
else | ||
echo "SUCCESS ON v4.1 MOUNT FAILURE" |
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 should probably not use the word FAILURE
echo "FAILURE Since v3 Permissions Were Not Given To The Client" | ||
exit ret | ||
else | ||
echo "SUCCESS ON v3 MOUNT FAILURE" |
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 should probably not use the word FAILURE
echo "FAILURE Since v4 Mounts Are To Use Pseudo Paths" | ||
exit ret | ||
else | ||
echo "SUCCESS ON v4.0 MOUNT FAILURE DUE TO NOT USING PSEUDO PATH" |
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 should probably not use the word FAILURE
systemctl stop firewalld || service iptables stop | ||
|
||
# TODO: SELinux prevents creating special files on Gluster bricks (bz#1331561) | ||
setenforce 0 |
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 already done at line 46
#Parsing export id from volume export conf file | ||
export_id=$(grep 'Export_Id' ${conf_file} | sed 's/^[[:space:]]*Export_Id.*=[[:space:]]*\([0-9]*\).*/\1/') | ||
|
||
sed -i '12s/.*/\t\tAccess_type = RO;/' ${conf_file} |
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 should probably do a search and replace instead of replacing a specific line.
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.
Ok ... :) ..
Will Do it for the similar errors below tooo
#Parsing export id from volume export conf file | ||
export_id=$(grep 'Export_Id' ${conf_file} | sed 's/^[[:space:]]*Export_Id.*=[[:space:]]*\([0-9]*\).*/\1/') | ||
|
||
sed -i '12s/.*/\t\tAccess_type = RO;/' ${conf_file} |
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.
These too.
#Parsing export id from volume export conf file | ||
export_id=$(grep 'Export_Id' ${conf_file} | sed 's/^[[:space:]]*Export_Id.*=[[:space:]]*\([0-9]*\).*/\1/') | ||
|
||
sed -i '15s/.*/\tPseudo="\/ppath";/' ${conf_file} |
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.
These too.
#Parsing export id from volume export conf file | ||
export_id=$(grep 'Export_Id' ${conf_file} | sed 's/^[[:space:]]*Export_Id.*=[[:space:]]*\([0-9]*\).*/\1/') | ||
|
||
sed -i '14s/.*/\t\tSquash = "root_squash";/' ${conf_file} |
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.
These too.
8d13406
to
8ed5d89
Compare
801b37d
to
c770b94
Compare
e9b2ca4
to
a09a2e5
Compare
e93af3b
to
ade304e
Compare
ade304e
to
7be933f
Compare
1a86ec1
to
1ed5d17
Compare
Signed-off-by: Mohammed Azhar Padariyakam mpadariy@redhat.com