Repository navigation
Conversation
|
@smarterclayton yes. |
|
Just at a glance this looks very high risk. |
|
@liggitt can you also do an independent risk assessment here? |
|
The last commit needs to be in |
|
Actually all three commits need to be in that form |
|
Has there been any discussion upstream about this issue and whether they would accept the proposed fix? |
|
@smarterclayton there are just 2 commits, 1 is the cherry pick form 1149 and 2nd is the fix, I've already spoke with @ashcrow about it, he's working on it. |
|
There are three commits in this PR, but if you are going to fix all of them, that's fine. |
1a793ad to
c8be144
Compare
|
I've looked into this PR, it looks safe, imho. Definitely this needs to go upstream, but I bet the 50 retries (that bothers me all the time) isn't going to be accepted. Besides from my investigation this changed quite a bit upstream. Most of these pieces were moved to be driver dependent. |
There was a problem hiding this comment.
this is concerning... I assume we move the file successfully, then get a PathNotFoundError attempting to verify the destination file? If we get that error, it seems unsafe to call moveLayer again. Wouldn't that be likely to fail with a different error (or worse, a different PathNotFoundError since it can't find the source file, if we already moved it)?
There was a problem hiding this comment.
The check for a source is performed before a move itself and returns PathNotFoundError is it doesn't exist. The method doesn't permorm any post move verification.
|
Just to be clear about c8be144, it's a backport that isn't just a cherry-pick. It was implementing the |
There was a problem hiding this comment.
this is also concerning... if our sizes don't match, we silently update to an expected offset? this seems likely to cause corruption
There was a problem hiding this comment.
Yeah, I was also concerned by that, but looking more I'm thinking its using the offset you set after preforming previous operation. So that's your internal state, iiuc.
There was a problem hiding this comment.
resumeHashAt loads stored hash state with the highest offset lower than or equal to the given one. If the stored one is smaller, the gap will be recomputed from file's content. And since it's our instance which wrote the data up to the offset, it should be safe to read it with the same file handle.
|
Anything that changes Godeps must be in the form UPSTREAM: : etc. Otherwise, we have no way of knowing whether it is already fixed when we rebase. You can use |
IMO some of the items that @liggitt is pointing out makes this a high risk item unless we can safely determine that they are not issues. The impact is also high; we should expect pushes to fail for HA registries that are using NFS storage. |
|
The more I think about this the more I'd rather say that there is a bug with HA+NFS rather than risk missing something here and causing more issues with all registries. This also seems like it should have in-depth QE testing and be accepted upstream |
|
Are we positive that this is not a tuning issue with NFS? Why does NFS take 5 minutes to report the stat to other filesystems? |
There was a problem hiding this comment.
Technically, because this is deferred, the response will be sent before the flush happens.
There was a problem hiding this comment.
Right, this needs to go before w.WriteHeader(http.StatusAccepted) line without defer.
There was a problem hiding this comment.
and handle any returned error instead of ignoring?
|
I'm not comfortable green lighting this without further investigation, discussion with NFS experts, and QE. |
|
Can you guys get an initial assessment by 4pm EST? On Fri, Nov 6, 2015 at 1:45 PM, Andy Goldstein [email protected]
|
|
I think we need some nfs guys to chime in here. |
|
It's still extremely strange to me that Docker 1.7 doesn't exhibit any issues. |
|
@smarterclayton Steve is afk for a bit and I don't have an env setup locally to test. I can try to get one up and running but it may eat up the better part of an hour or so... I'm going to look at the registry code to see if there's anything different about the |
|
@smarterclayton I can't say for certain. There is always a possibility that there is a configuration combination other than those in our docs that would make it much faster. In terms of the timing, I believe the test setup was a laptop with VM's which would likely be much slower than the power QE usually tests with. And the max attempt should be ~5.3 seconds before it gives up. I still agree with @pweil- and @ncdc. It's safer to note there is a bug with HA+NFS than to pull this in without full QE and an NFS expert to review. |
…ry on NFS On NFS it takes some time for filesystem changes to propagate to other instances. Several operations need to be retried until successful. Signed-off-by: Michal Minar <[email protected]>
c8be144 to
61950d1
Compare
|
I don't believe this is a 1.7 vs 1.8 issue. 1.7 fails for me too, although with a different error (BLOB_UPLOAD_UNKNOWN). |
|
Decision at this point is to defer but let's continue to follow up and determine whether this is tuning, NFS "wad", or not. make sure this is in the release notes as well as the session affinity workaround - and let's open an issue to have the docker registry service created with source ip session affinity on for 1.1.1 |
|
@ashcrow I believe this is now obsoleted by docs PR#1174 and may be closed. Also we'd better tune NFS mount options to mitigate NFS sync issues as suggested in bz#1277356. The question is how to do it with persistent volumes which doesn't take mount options. |
Original PR: #5749
This breaks out the backport to it's own commit and adds logging if the new retries pass their limits.