Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Domain-specific reboot minimisation enhancement #159
Domain-specific reboot minimisation enhancement #159
Changes from 3 commits
b45a0a7
d4f4aa8
586c25c
a845980
431d636
a9c311b
1bffd24
b27f725
dc4b140
b66a24f
9c4bcc5
185fc89
be22ccf
e317aad
d3cbfd9
a06268e
1fb9b72
05b5af7
46f1871
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
should we be thinking of this in terms of white-listing paths or supporting optimized reboots for certain functions? im not convinced that whitelisting paths won't cause some other issues and is overbroad, whereas iterating on optimizing specific reboots for specific functionalities ie "don't reboot a node when you update ssh keys" is more scalpel-like with more predictable results and a clear articulation of what is supported and what is not.
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.
I hear what you're saying about focusing on specific functions, but don't they all eventually decompose into "i wrote this file(s) to disk, what do I do about it?"
Surely something, somewhere, needs know which file(s) a given CRD field is associated with, and what needs to be done to apply it.
Is there a practical difference between a lookup table that only has an entry for
${XYZ}
(authkeys for the least complex example), and adding conditionals through the code that check if the current file is${XYZ}
? Or is the thinking that responsibility for maintaining${XYZ}
would be transferred to another operator?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.
An interesting perspective @beekhof but one I'm not sold on. Adding a file to /etc/containers/registry.d/ is something I could agree is safe to do without a reboot. Removing such a file I'd argue is not. Thus you can't say /etc/container/registry.d/* can be manipulated without reboot.
It takes domain specific knowledge. And it's really tricky because I'm arguing for 'immediate consistency' in an 'eventual consistency' system. I know I'm arguing out of 2 sides of my mouth, but apply a change that won't cause problems until some time in the future is much worse than a reboot. Weekly reboots are normal. We design for that to be the norm.
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.
I'm worried this needs to be a goal to be safe...
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.
Ideally I would like the solution to avoid the tight coupling of having to understand the contents of the files. So the thought process would be that if there is any part of a file that requires a reboot to be applied, then take the pessimistic approach and always reboot if that file changes.
However, I assume you're thinking about ensuring that changes are purely additive in the ICSP case.
I think that would be possible to do reasonable generically, but do we need to do so if we still drain the node and remove any cached images? Would this approach result in a worse experience if a broken ICSP is supplied than we have today?
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.
Is this file going to be versioned, or there is a strict compatibility with the current MCD only?
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.
Part of the reason for including it with the MCD was to avoid the need for versioning.
But I don't have strong feelings about it.
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.
I think there was a case where MCD was expected to drain the node even before any configuration change is applied... and here proposal is regarding actions after configuration has been applied.. so it seems like skip drain is not an action that can be supported?? would love to see details wrt to drain before reboot...
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.
Another thing is, if the configuration change (which is usually multiple file/units) has conflicting actions ie some files require reboot, some say skip reboot.. what should be the expected behavior. Would like to see those details.
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.
Any pointers to additional information around the drain-before-reboot usecase would be great. It would be good to understand the motivation before making any claims about how the two features should interact.
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.
If we don't reboot for something that it is absolutely required, then that update is a 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.
I dont see how this would not be considered a big problem?
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 in a nutshell is why this enhancement exists, we're looking for an interim solution because promises have been made that are not especially compatible with MCO timelines :-)
These points are related.
I hold no illusions that a lookup table is the best mechanism for this, it's definitely not. However the enhancement is advocating for a specific implementation because it is something that can be done in the timeframe customers are requesting (ie. yesterday).
The hope is that we can show implement something quickly, that is minimally disruptive to the MCO codebase, and because it's not user facing, can be thrown away once the MCO team has identified and implemented this feature the right way.
Part of the rationale for doing a PoC is to determine if "minimally disruptive" is actually achievable.