Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

dqlite detection issues with musl and zfs #134

Closed
dngray opened this issue May 11, 2020 · 10 comments · Fixed by #135
Closed

dqlite detection issues with musl and zfs #134

dngray opened this issue May 11, 2020 · 10 comments · Fixed by #135

Comments

@dngray
Copy link

dngray commented May 11, 2020

Hi,

As per @stgraber's recommendation in https://github.com/lxc/lxd/issues/7347#issuecomment-626730013 I've opened an issue here.

I'm willing to debug/assist in any way that I can to find a solution to this issue.

@freeekanayaka
Copy link
Contributor

What kernel version are you running on? I'll try to reproduce and fix this.

@dngray
Copy link
Author

dngray commented May 11, 2020

Kernel is 5.4.34-0-lts, and I'm running Alpine Linux 3.11.6, LXD/LXC 4.1

@dngray
Copy link
Author

dngray commented May 11, 2020

@freeekanayaka btw, if we can find out what is causing this and produce a patch I'll submit to alpinelinux.org and get it included in a package revision.

@freeekanayaka
Copy link
Contributor

@freeekanayaka btw, if we can find out what is causing this and produce a patch I'll submit to alpinelinux.org and get it included in a package revision.

Once I nail it down, I'll cut a new release. But you can surely cherry pick the patch and submit it to Alpine.

@freeekanayaka
Copy link
Contributor

@dngray please can you run lxd again under strace -f instead of just plain strace? Unfortunately the trace you pasted in github.com/lxc/lxd/issues/7347 includes only the main thread.

@dngray
Copy link
Author

dngray commented May 12, 2020

Sure I just ran strace -o ~/strace.log -f lxd here's the complete trace strace.2020_05_12_9_15_log.gz

If you need me to do anything else I'm happy to help however best I can. I did format an external disk with EXT4, and mounted it to /var/lib/lxd and that worked, therefore it must be a combination of ZFS and musl.

@freeekanayaka
Copy link
Contributor

Thanks @dngray. I believe I know what the issue is and how to fix it. Stay tuned :)

@freeekanayaka
Copy link
Contributor

@dngray if you have way to re-build the libraft.so object that is installed on your system and confirm that the patch linked above works, that would be great. Thanks

@dngray
Copy link
Author

dngray commented May 12, 2020

@dngray if you have way to re-build the libraft.so object that is installed on your system and confirm that the patch linked above works, that would be great. Thanks

I'll do that, and let you know if I have any trouble.

@dngray
Copy link
Author

dngray commented May 12, 2020

Okay, i've tested this and it does seem to work!

The sockets are now correctly created (seccomp.socket and unix.socket).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants