Conversation
4e5cb5f to
3d48ab1
Compare
|
That's pretty odd. The only thing I can really think of is that we may have some logic on Update() which attempts to activate/deactivate the instance volume and is somehow causing the unmount, but that's pretty weird. |
|
So, the problem is indeed in I think because I’m deleting the directory and recreating it, the bindmount still points to the deleted entry. So, not sure if I should continue doing my initialization in |
3d48ab1 to
f0b02c1
Compare
|
At least now it works. I don’t know how that would play with live-migration, but I also don’t think I should really bother, as live-migrating a systemd container is a very bad idea… |
f0b02c1 to
8ed4a22
Compare
|
I’m not sure all those failing tests are related to the PR |
|
I think they are, they're all failing in the same way and the only stuff that's passing is cluster tests where no mount is involved (dir/btrfs). |
|
Hmmm ok, I’ll run the test suite locally then. |
|
Ok there’s something: But This part however, |
That's normal, /usr/lib/x86_64-linux-gnu/lxc/rootfs/ is the temporary mount point of the instance's root disk before pivot_root and such. |
|
The error could happen on either side of the mount, so it could be because the source of the mount is somehow unavailable at the time the mount is attempted or because the mount target doesn't exist. Now |
c87d666 to
37821e8
Compare
|
|
37821e8 to
d5504ab
Compare
|
Definitely shouldn't need Did you figure out a simple reproducer for the failure? Then I can take a look at it. |
|
Ok I’ll revert the recent changes and I’ll try to produce a MWE. This is probably a rather trivial oversight; I’m quite new to the LXC driver codebase, and I’m still figuring out its general structure. Edit: looks like it fails with tests using ZFS |
|
I can reproduce the problem on So it looks like something is mounted too late when working with logical volume managers, but I’m having some trouble understanding the whole LXC driver dance for now. |
|
Okay, I should be able to easily test it here on ZFS then. |
|
Nice. Please use c87d666, as it doesn’t include my desperate attempts :) |
|
I found the problem: So basically the |
|
Oh, makes perfect sense! Thanks a lot, I’ll review that tomorrow. |
d5504ab to
cac26c7
Compare
|
Aaaaah it looks good now. |
|
Edit: the tests have shown something that I completely overlooked: if a user sets both |
2bad5b9 to
4916ba2
Compare
|
Great, should be ready to review now |
Signed-off-by: Benjamin Somers <[email protected]>
…al-binary.* Signed-off-by: Benjamin Somers <[email protected]>
…IOS-11 Signed-off-by: Benjamin Somers <[email protected]>
…ENTIALS_DIRECTORY Signed-off-by: Benjamin Somers <[email protected]>
Signed-off-by: Benjamin Somers <[email protected]>
Signed-off-by: Benjamin Somers <[email protected]>
4916ba2 to
6b838dd
Compare
Signed-off-by: Benjamin Somers <[email protected]>
Signed-off-by: Benjamin Somers <[email protected]>
Signed-off-by: Benjamin Somers <[email protected]>
6b838dd to
5c20d6c
Compare
Closes: #2182
This PR is not ready yet, but I need some help to wrap it up. First, does my LXC attempt look reasonable? Second, as soon as I edit the LXC instance config, the bind mount is cleared:
Any idea why, @stgraber? (the files are still there on the host)
Once I have a clearer view on that, I can start looking at the live update.