-
Notifications
You must be signed in to change notification settings - Fork 41
Incorrect assumption that overlayfs is only docker storage driver #302
Comments
Ok, it seems to be actually multiple issues. First of all, basically I agree that we should check for more details before loading the overlay kernel module. And the next issue about whether we can just ignore all of these issues and simply write documents: I doubt that it's doable. Of course in that case, we system engineers are still capable of fulfilling the system requirements on our own. (I'm sure you are able to do that as well :-)) But in practice, most newcomers would not be able to run kube-spawn at all. That's one of the reasons why we added the various |
its one thing to do a sanity check, another to try and infer the config of
the system or fix it.
I think we are headed down a bad path w/ things like 'assume
/var/lib/machines is a loopback of /var/lib/machines,raw, that we are the
only ones using it, that we can umount/resize' etc. Similarly the docker
storage.
A better way might be to just run a simple sanity check. If docker info
returns OK, then docker is running OK, why do the additional checks for how?
Imagine if every docker container in the world had an install mechanism
that groped around is 'lsmod' etc to see what modules were loaded? I think
its better to assume the system is properly setup rather than to assume we
know better.
…On Thu, 23 Aug 2018 at 06:20, Dongsu Park ***@***.***> wrote:
Ok, it seems to be actually multiple issues.
First of all, basically I agree that we should check for more details
before loading the overlay kernel module.
Maybe then it's an issue about not only docker storage driver, but also
whether the container runtime is docker or rkt. Or there could be other
factors.
And the next issue about whether we can just ignore all of these issues
and simply write documents: I doubt that it's doable. Of course in that
case, we system engineers are still capable of fulfilling the system
requirements on our own. (I'm sure you are able to do that as well :-)) But
in practice, most newcomers would not be able to run kube-spawn at all.
That's one of the reasons why we added the various ensure* functions to
meet the requirements.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#302 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE5Ok7EzpYtPE0CGPFt5KqNFBwUrgRC4ks5uToHSgaJpZM4WHscf>
.
|
I would call it a "necessary evil" instead of a "bad path". ;-) |
maybe at least make it such behaviour off by default.
e.g. a '--run-checks-and-change-your-system-if-it-matches-my-assumptions'
…On Thu, 23 Aug 2018 at 07:59, Dongsu Park ***@***.***> wrote:
I would call it a "necessary evil" instead of a "bad path". ;-)
Anyway your suggestion of running docker info looks good in the docker
world.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#302 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE5Ok-ViA6RDMzrhobDHjnhwNaQeH4w2ks5uTpktgaJpZM4WHscf>
.
|
#301 (comment)
in pkg/bootstrap/node.go we have function ensureOverlayfs(). However, users may be using e.g. devicemapper driver for docker.
I personally don't believe these system checks belong in this tool, its too easy to get them wrong.
In this case, we'd have to look in
/etc/docker/daemon.json
for:But, on some systems, this would be setup in systemd (e.g.
/lib/systemd/system/docker.service
) or in an environment or add-on for it.Another method would be to parse docker info (as below). But I'm still not sure why we are doing this, I think its simpler to document 'docker is installed and working', its not really our business whether they use btrfs / zfs / overlayfs / ...
The text was updated successfully, but these errors were encountered: