Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

[stable/rabbitmq] Option to create force_load file (#13485) #14059

Closed
wants to merge 1 commit into from
Closed

[stable/rabbitmq] Option to create force_load file (#13485) #14059

wants to merge 1 commit into from

Conversation

denis111
Copy link
Contributor

Signed-off-by: Denis Kalgushkin [email protected]

What this PR does / why we need it:

See #13485 . Adds an option to force rabbitmq start on unexpectedly shut down cluster.

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • DCO signed
  • Chart Version bumped
  • Variables are documented in the README.md
  • Title of the PR starts with chart name (e.g. [stable/chart])

@helm-bot helm-bot added Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 22, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: denis111
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: prydonius

If they are not already assigned, you can assign the PR to them by writing /assign @prydonius in a comment when ready.

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 22, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @denis111. Thanks for your PR.

I'm waiting for a helm member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Collaborator

@juan131 juan131 left a comment

Choose a reason for hiding this comment

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

Hi @denis111

It looks a very complex solution just for creating a "force_load" file.

To keep the chart as simple as possible, I'd suggest to implement a way to create that file during the container initialization when a certain env. variable is set (sth like RABBITMQ_FORCELOAD). What do you think about this approach?

@denis111
Copy link
Contributor Author

denis111 commented May 24, 2019

Hi @juan131
Well yes, maybe it's too complex. I just saw how it's made for volume-permissions and also didn't want to touch volume-permisions init container.
Do you suggest to create the file in the main (not init) containter during the startup just before "exec rabbitmq-server"?

@juan131
Copy link
Collaborator

juan131 commented May 24, 2019

Do you suggest to create the file in the main (not init) containter during the startup just before "exec rabbitmq-server"?

Yes, I think that cant be a solution

@denis111
Copy link
Contributor Author

@juan131
Ok, in that case I guess i can just use 'rabbitmqctl force_boot' command before exec. I hope to prepare a new PR next monday,

@denis111
Copy link
Contributor Author

Created another PR #14149 so you can choose one and close another.

@juan131
Copy link
Collaborator

juan131 commented May 27, 2019

I'd rather follow the approach you used at #14149
Please close this PR since I don't have privileges to do so.

@denis111 denis111 closed this May 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Contribution Allowed If the contributor has signed the DCO or the CNCF CLA (prior to the move to a DCO). needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[stable/rabbitmq] Recover from "Waiting for Mnesia tables" after all nodes forced shutdown
4 participants