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

Add clean shmems/queues/semaphores for sybase user #1213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

peppos
Copy link
Contributor

@peppos peppos commented Sep 11, 2018

Add cleaner to prevent the error when resource failback.

@knet-ci-bot
Copy link

Can one of the admins verify this patch?

@krig
Copy link
Contributor

krig commented Sep 11, 2018

This looks OK to me, but cleaning operations like this is a little bit tricky as it could make it more difficult for an administrator to figure out what the original problem was after multiple restarts...

@oalbrigt Any opinion on this? If not for the reservation above, it seems fine.

@@ -437,6 +437,11 @@ ase_start()
then
rm -f $CONSOLE_LOG
fi

ocf_log debug "Clean shmems/semaphores/queues for '$OCF_RESKEY_sybase_user'"
Copy link
Contributor

Choose a reason for hiding this comment

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

You should use the same indentation as in the rest of the code.

@oalbrigt
Copy link
Contributor

I guess this might make it harder to debug the initial issue, and if we include it maybe we should check that it the user isnt root before doing so.

@knet-jenkins
Copy link

knet-jenkins bot commented Jun 12, 2023

Can one of the admins check and authorise this run please: https://ci.kronosnet.org/job/resource-agents-pipeline/job/PR-1213/1/input

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.

4 participants