Skip to content
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

re-mounting 0-fs twice using the same backend directory crashes in 0-OS #26

Closed
zaibon opened this issue May 20, 2020 · 2 comments
Closed

Comments

@zaibon
Copy link

zaibon commented May 20, 2020

I found this issue while working on threefoldtech/zos#793

It seems when we mount 0-fs on the same backend directory after a node reboot. The second time the overlayfs is corrupted and returns IO errors.

To reproduce:

  • create a container
  • reboot the node
  • same container is mounted a again
  • container fs is corrupted

The same scenario doesn't give any error when tested on my laptop running arch with Linux 5.6.13-arch1-1

Here are some error from dmesg: https://gist.github.com/zaibon/7c89c908069005eac9b72afdafed7617

Like shown below, the read-only and read-write layer seems to be healthy. Only the mountpoint of the overlayfs gives issue.

/mnt/e811f02b-ba2d-4c3f-b164-9d4c50b9d73b/9200-1 # cat ro/etc/ssh/ssh_host_ed25519_key.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMN5nZ/h+ZN8MfP8EaBY8s1zaskxpc4LhYIhilFYNXvR root@4b75be6da8df
/mnt/e811f02b-ba2d-4c3f-b164-9d4c50b9d73b/9200-1 # cat rw/etc/ssh/ssh_host_ed25519_key.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMN5nZ/h+ZN8MfP8EaBY8s1zaskxpc4LhYIhilFYNXvR root@4b75be6da8df
/mnt/e811f02b-ba2d-4c3f-b164-9d4c50b9d73b/9200-1 # cat /var/cache/modules/flistd/mountpoint/9200-1/etc/ssh/ssh_host_ed25519_key.pub
cat: can't open '/var/cache/modules/flistd/mountpoint/9200-1/etc/ssh/ssh_host_ed25519_key.pub': Input/output error
@zaibon zaibon added this to the now milestone May 20, 2020
@zaibon zaibon changed the title re-mounting 0-fs twice using the same backend directory crashes n 0-OS re-mounting 0-fs twice using the same backend directory crashes in 0-OS May 20, 2020
@zaibon zaibon added this to Done in zos 0.3.3 May 20, 2020
@zaibon
Copy link
Author

zaibon commented May 21, 2020

Found a bug report that seems to be related: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1824407

@zaibon
Copy link
Author

zaibon commented May 22, 2020

I start to wonder if the problem doesn't come from the flist I was using to test. I tried to reproduce using other flists and I cannot make it fail anymore.

@zaibon zaibon moved this from Done to To do in zos 0.3.3 May 22, 2020
@zaibon zaibon removed this from To do in zos 0.3.3 May 26, 2020
@zaibon zaibon added this to To do in zos 0.4.0 via automation May 26, 2020
@zaibon zaibon closed this as completed Jun 19, 2020
zos 0.4.0 automation moved this from To do to Done Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
zos 0.4.0
  
Done
Development

No branches or pull requests

1 participant