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
mountPath behavior changed from docker to containerd on Windows #6589
Comments
cc @kevpar |
@ambarve was looking into this. |
any progress here? |
Looks like #6651 is the solution, and is progressing through review. The tests at https://github.com/containerd/containerd/pull/6651/files?diff=unified&w=0#diff-908e014f804871a6a2f00b97c0f88f378cfba56538f24cf0b8da4040d0d797e2 appear to cover this use-case. |
Any status updates on this? |
#6651 has merged into containerd and will be part of containerd 1.7. I guess that PR was supposed to close this ticket, but perhaps "Fixes" doesn't work in comments. |
Hello, |
the fix is also in Windows containerd v1.6.6 |
@andyzhangx You say it's fixed in 1.6.6 and @TBBle in #6589 (comment) says it will be fixed in 1.7. Am I getting this right that we should actually wait for 1.7? AFAICT, containerd v 1.6.14 is still not fixed and can not mount |
@mloskot If this was a regression, it was never resolved to my knowledge. We implemented a work-around by adjusting our applications to use the new path ( c:\d, etc. ) |
@rnemeth90 Well, from the higher level of AKS standpoint, it is a regression to me. I've upgraded my cluster and it's stopped working, and I'm locked as I can not go back, because Docker CRI is no longer supported, regardless if nodes are based on Windows Server 2019 or 2022. Mounting volumes as non-C drives is an ubiquitous convention on containers I have to manage, so this issue turns a serious inconvenience. As for the workaround, do you mean you've patched your containers to do something like |
My comment predated the backport of that fix into containerd 1.6 (#6929), and it is listed in the 1.6.5 changelog: https://github.com/containerd/containerd/releases/tag/v1.6.5. The backport included the tests I mentioned, and they're still there in the 1.6 release branch, so either I was incorrect in thinking those tests covered this problem, or something else is going wrong at a different level, perhaps in hcsshim or the HCS itself. Is it possible to capture the |
I see, thanks for the confirmation. Great news!
In mounting-tests.zip I prepared two Those results puzzled me as why on earth mounting on # Document volume mount points typically mounted from Azure file shares.
VOLUME ["D:", "Z:"] Now, after removing this
Well, I'm not sure how to do it (too much of a rookie here), but I looked at Kubernetes events generated for my images using the troublesome
The Was that behaviour on my previous AKS anything Docker-specific and my use of However, it looks like it's turned out an embarrassing way as the issue is with my custom images. So, I'd like to sincerely apologies for my earlier rant in #6589 (comment) |
Interesting. That might be a separate containerd bug to file then, as by my reading of the docs your usage there looks valid. Tracking down the error message, I suspect this code block should simply skip drive-letter volumes other than I suspect the repro commands from #5671 or similar, but with a trivial Dockerfile with a To be clear, that was mostly guess-work based on looking at just this block of code, and it's possible I'm misreading it. We'll see what happens in the relevant bug-report discussion. |
#5671 is an already-resolved issue. If you don't create a new issue for what you're seeing with |
FYI, I have verified that the original issue has been fixed in containerd
|
Description
now the following mountPath behavior changed from docker to containerd on Windows:
mount as a D drive
mount as
c:\D\
folderquestion is how can I mount as a new drive with containerd on Windows? is this a regression?
Steps to reproduce the issue
Describe the results you received and expected
I could still mount hostPath as a new drive with containerd on Windows
What version of containerd are you using?
containerd://1.5.5+azure
Any other relevant information
No response
Show configuration if it is related to CRI plugin.
n/a
The text was updated successfully, but these errors were encountered: