Skip to content
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

Open
wants to merge 1 commit into
base: centos-ci
Choose a base branch
from

Conversation

mpadariy
Copy link

Signed-off-by: Mohammed Azhar Padariyakam mpadariy@redhat.com

Signed-off-by: Mohammed Azhar Padariyakam <mpadariy@redhat.com>
Copy link

@dang dang left a 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"
Copy link

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"

Copy link
Author

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" ?

Copy link

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"
Copy link

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"
Copy link

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"
Copy link

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"
Copy link

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
Copy link

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}
Copy link

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.

Copy link
Author

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}
Copy link

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}
Copy link

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}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These too.

@rakshithakamath94 rakshithakamath94 force-pushed the centos-ci branch 28 times, most recently from 8d13406 to 8ed5d89 Compare June 20, 2023 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants