-
Notifications
You must be signed in to change notification settings - Fork 179
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
Split startup logic out of ScyllaDB container #1934
Conversation
@tnozicka: GitHub didn't allow me to request PR reviews from the following users: tnozicka. Note that only scylladb members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
81acb6e
to
3f15229
Compare
/cc @zimnx @rzetelskik |
ping @rzetelskik @zimnx |
Sorry, this one slipped away. I'll send a review today. |
4c4f8de
to
d9b34c6
Compare
d9b34c6
to
5703489
Compare
@zimnx @rzetelskik please take another look. I had to add an extra controller instead of the serial (and non-repeated) check to evaluate the ignition / tuning conditions, like it used to, because a scylla container can now restart independently and tuning was getting stuck on the old containerID not being tuned. (The independent restart always happens in our NodeConfig |
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.
a couple of naming comments
rest lgtm
/assign zimnx
5703489
to
b3372ba
Compare
b3372ba
to
c2649fc
Compare
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.
lgtm
/assign rzetelskik
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rzetelskik, tnozicka, zimnx 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 |
@tnozicka there's still a WIP label, is this on purpose? |
nope, probably some race, thx |
Description of your changes:
Startup logic should run in a separate container. See #1940 for more context.
This PR adds the
scylla-operator run-ignition
command, that runs in its own container and signals ScyllaDB container by creating a file that unblocks its start up. Unfortunately, we can't do this with an init container because we need ScyllaDB container running so tuning can be run and its result can unblock the startup.Contrary to the old logic that was running in the same container where scylla container ID didn't change (it was restarted with it), the new logic has to deal with all the externalities like living through a scylla container restart and its container id changing.
(It also raises log level for checking the tuning ConfigMap so it's clearer what's being waited on.)
Which issue is resolved by this Pull Request:
Resolves #1941
Requires