Skip to content

graphdriver: promote overlay above vfs - #11962

Merged
crosbymichael merged 1 commit into
moby:masterfrom
vbatts:vbatts-promote_overlay
Mar 31, 2015
Merged

crosbymichael merged 1 commit into
moby:masterfrom
vbatts:vbatts-promote_overlay

Conversation

@vbatts

@vbatts vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor

It's about time to let folks not hit 'vfs', when 'overlay' is supported
on their kernel. Especially now that v3.18.y is a long-term kernel.

/cc @unclejack @jfrazelle

Signed-off-by: Vincent Batts [email protected]

@crosbymichael

Copy link
Copy Markdown
Contributor

I would put it under aufs

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

i'm game

On Tue, Mar 31, 2015 at 4:28 PM, Michael Crosby [email protected]
wrote:

or maybe above, ya, lets put it first

—
Reply to this email directly or view it on GitHub
#11962 (comment).

@jessfraz

Copy link
Copy Markdown
Contributor

what if we cherry-picked this

@vbatts
vbatts force-pushed the vbatts-promote_overlay branch from a59e81c to 95e28e5 Compare March 31, 2015 20:30
@jessfraz jessfraz added this to the 1.6.0 milestone Mar 31, 2015
@jessfraz

Copy link
Copy Markdown
Contributor

LGTM

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

And it's checked first now. PTAL

On Tue, Mar 31, 2015 at 4:28 PM, Vincent Batts [email protected]
wrote:

i'm game

On Tue, Mar 31, 2015 at 4:28 PM, Michael Crosby [email protected]
wrote:

or maybe above, ya, lets put it first

—
Reply to this email directly or view it on GitHub
#11962 (comment).

@unclejack

Copy link
Copy Markdown
Contributor

LGTM

@jessfraz

Copy link
Copy Markdown
Contributor

@unclejack you ok w me cherry-picking into release? :)

@unclejack

Copy link
Copy Markdown
Contributor

@jfrazelle Yes, everyone will be testing this anyway and it looks like overlay is the future. Everyone running new kernels with overlay is also going to be running more bleeding edge environments. Most current stable & production systems have older kernels anyway.

@jessfraz

Copy link
Copy Markdown
Contributor

\o/

@cpuguy83

Copy link
Copy Markdown
Member

So right now this is above aufs, which means anyone using aufs that upgrades (and has a newer kernel) will have to force aufs (including b2d users).

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

cute. ...

On Tue, Mar 31, 2015 at 4:56 PM, Brian Goff [email protected]
wrote:

So right now this is above aufs, which means anyone using aufs that
upgrades (and has a newer kernel) will have to force aufs (including b2d
users).

—
Reply to this email directly or view it on GitHub
#11962 (comment).

@unclejack

Copy link
Copy Markdown
Contributor

@cpuguy83 Kernels with overlay support aren't patched for aufs anyway.

@jessfraz

Copy link
Copy Markdown
Contributor

overlay is better than aufs

@cpuguy83

Copy link
Copy Markdown
Member

@unclejack b2d is.

@jessfraz

Copy link
Copy Markdown
Contributor

i think we should use overlay in b2d then, but I am not in charge of that decision, unsure who is

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

how about we put it lower, until we vet out things like b2d (which i
imagine will eventually switch to overlay)

On Tue, Mar 31, 2015 at 5:00 PM, Brian Goff [email protected]
wrote:

@unclejack https://github.com/unclejack b2d is.

—
Reply to this email directly or view it on GitHub
#11962 (comment).

@thaJeztah

Copy link
Copy Markdown
Member

Sounds like a big change; promoting an "experimental" driver to become the "default" driver..

@jessfraz

Copy link
Copy Markdown
Contributor

well this is the only driver that works as graphdriver in graphdriver ie, overlay in overlay

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

@jessfraz

Copy link
Copy Markdown
Contributor

@cpuguy83

Copy link
Copy Markdown
Member

@tianon

I'm ok with it, but I think we need to make sure people know.
Or even a magic script in b2d that looks to see if /var/lib/docker/aufs exists while /var/lib/docker/overlay does not, and automatically set the to aufs if not set.

@thaJeztah

Copy link
Copy Markdown
Member

Well, I like this for new installs! but I share @cpuguy83 concerns for people with existing installs ("where are my containers?!!")

@unclejack

Copy link
Copy Markdown
Contributor

This applies to all other graph drivers, including devicemapper, btrfs and vfs. A system should detect and select the same graph driver as it was using previously. If b2d finds out that a certain graph driver has been used previously, it should use the same one.

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

@vbatts
vbatts force-pushed the vbatts-promote_overlay branch from 95e28e5 to 2c72ff1 Compare March 31, 2015 21:28
@thaJeztah

Copy link
Copy Markdown
Member

How about;

If (no prior driver && supported) -> overlay?
otherwise -> overlay above vfs

@jessfraz

Copy link
Copy Markdown
Contributor

what about above devmapper and vfs 👼

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

@jfrazelle i see what you did there, and imma let you finish, but

@thaJeztah

Copy link
Copy Markdown
Member

what about above devmapper and vfs

👍 less troubleshooting for @vbatts

@jessfraz

Copy link
Copy Markdown
Contributor

lol ok well this is improvement nonetheless

@crosbymichael

Copy link
Copy Markdown
Contributor

Put it above devicemapper

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

@crosbymichael @jfrazelle but folks do use devicemapper, and it would make an upgrade be an outage event... still

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

let's do this for 1.7.0, and not make a last minute 1.6.0 change be a breaking change for folks

@jessfraz

Copy link
Copy Markdown
Contributor

ok so merge this and i cherry-pick, then we merge another pr into master overlay is no. 1 hero

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

k

@jessfraz

Copy link
Copy Markdown
Contributor

🎉

crosbymichael added a commit that referenced this pull request Mar 31, 2015
graphdriver: promote overlay above vfs
@crosbymichael
crosbymichael merged commit ded5c73 into moby:master Mar 31, 2015
@cpuguy83

Copy link
Copy Markdown
Member

Yes! I got to poo on everyone's parade!

@thaJeztah

Copy link
Copy Markdown
Member

New Github handle? @CPooGuy83

@tianon

tianon commented Mar 31, 2015

Copy link
Copy Markdown
Member

Wouldn't the best fix be something like the following?

  • if user specifies -s, use that graphdriver no matter what (with appropriate warnings) and record it somewhere
  • if -s is in "auto" mode and we don't have a previous record of the "preferred" graphdriver, choose the most appropriate graphdriver based on priority and record it somewhere
  • if -s is "auto" and we do have a graphdriver recorded (either from a previous -s or an automatic selection), we should use whatever was in use previously, IMO (this is the major change in my proposal besides recording which graph driver was most recently used)

Of course, in the first and last of these, IMO we should fatal error like we do today on an invalid -s if the specified graph driver can't be used. This way, anyone who's previously automatically been on AUFS will continue to be on AUFS unless their kernel doesn't support it anymore, at which point they can either patch their kernel or use an explicit -s to choose to switch.

@jessfraz

Copy link
Copy Markdown
Contributor

that sounds good, we should do that w the new patch :D to master

On Tue, Mar 31, 2015 at 3:42 PM, Tianon Gravi [email protected]
wrote:

Wouldn't the best fix be something like the following?

  • if user specifies -s, use that graphdriver no matter what (with
    appropriate warnings) and record it somewhere
  • if -s is in "auto" mode and we don't have a previous record of the
    "preferred" graphdriver, choose the most appropriate graphdriver based on
    priority and record it somewhere
  • if -s is "auto" and we do have a graphdriver recorded (either from
    a previous -s or an automatic selection), we should use whatever was
    in use previously, IMO (this is the major change in my proposal besides
    recording which graph driver was most recently used)

Of course, in the first and last of these, IMO we should fatal error like
we do today on an invalid -s if the specified graph driver can't be used.
This way, anyone who's previously automatically been on AUFS will continue
to be on AUFS unless their kernel doesn't support it anymore, at which
point they can either patch their kernel or use an explicit -s to choose
to switch.

—
Reply to this email directly or view it on GitHub
#11962 (comment).

@vbatts

vbatts commented Mar 31, 2015

Copy link
Copy Markdown
Contributor Author

I'm on it
On Mar 31, 2015 6:45 PM, "Jessie Frazelle" [email protected] wrote:

that sounds good, we should do that w the new patch :D to master

On Tue, Mar 31, 2015 at 3:42 PM, Tianon Gravi [email protected]
wrote:

Wouldn't the best fix be something like the following?

  • if user specifies -s, use that graphdriver no matter what (with
    appropriate warnings) and record it somewhere
  • if -s is in "auto" mode and we don't have a previous record of the
    "preferred" graphdriver, choose the most appropriate graphdriver based on
    priority and record it somewhere
  • if -s is "auto" and we do have a graphdriver recorded (either from
    a previous -s or an automatic selection), we should use whatever was
    in use previously, IMO (this is the major change in my proposal besides
    recording which graph driver was most recently used)

Of course, in the first and last of these, IMO we should fatal error like
we do today on an invalid -s if the specified graph driver can't be used.
This way, anyone who's previously automatically been on AUFS will
continue
to be on AUFS unless their kernel doesn't support it anymore, at which
point they can either patch their kernel or use an explicit -s to choose
to switch.

—
Reply to this email directly or view it on GitHub
#11962 (comment).

—
Reply to this email directly or view it on GitHub
#11962 (comment).

@thaJeztah

Copy link
Copy Markdown
Member

Thanks @tianon, I think that summarizes/covers my earlier comments (albeit better written :))

vbatts added a commit to vbatts/moby that referenced this pull request Apr 1, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
vbatts added a commit to vbatts/moby that referenced this pull request Apr 1, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
vbatts added a commit to vbatts/moby that referenced this pull request Apr 2, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
vbatts added a commit to vbatts/moby that referenced this pull request Apr 6, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
vbatts added a commit to vbatts/moby that referenced this pull request Apr 7, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
vbatts added a commit to vbatts/moby that referenced this pull request Apr 8, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
vbatts added a commit to vbatts/moby that referenced this pull request Apr 14, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
vbatts added a commit to vbatts/moby that referenced this pull request Apr 14, 2015
Before this, a storage driver would be defaulted to based on the
priority list, and only print a warning if there is state from other
drivers.

This meant a reordering of priority list would "break" users in an
upgrade of docker, such that there images in the prior driver's state
were now invisible.

With this change, prior state is scanned, and if present that driver is
preferred.

As such, we can reorder the priority list, and after an upgrade,
existing installs with prior drivers can have a contiguous experience,
while fresh installs may default to a driver in the new priority list.

Ref: moby#11962 (comment)

Signed-off-by: Vincent Batts <[email protected]>
@vbatts
vbatts deleted the vbatts-promote_overlay branch April 27, 2016 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants