Closed t-valette closed 4 years ago
Can you try with the latest commit 2cdb162
? It works for a Debian:10 container in docker (but hosts are ubuntu:18.04).
I reinstalled distrinet on the client and I still have the same issue even with the latest commit (bin/dmn hangs at the "Adding switches" step)
What distrib on the hosts?
They are all running Debian 10 Buster
Seems that lxd and ansible are working correctly. I am trying with Debian on G5K, I think there is a problem with the ssh connections.
I am on it.
@Kyominii The problem comes from using snap and the issue that lxc
and lxd
did not appear in the PATH
.
The current fix is a bit dirty but it works with Debian 10 for when you setup from scratch a node.
To setup the cluster, instead of using install-lxd.yml
you have to use install-lxd-debian-10.yml
:
ansible-playbook ~/install-lxd-debian-10.yml
It will use snap instead of apt to install LXD and will create a symbolic link to make sure lxc
and lxd
commandes are reachable. The issue comes from asyncssh
that doesn't seem to properly load the environment variables.
If your machines are already setup, just make sure that lxc
and lxd
commands appear in the PATH
environment variable.
A clean solution will be found when #55 will be closed, using latest LXD version.
@Kyominii The problem comes from using snap and the issue that
lxc
andlxd
did not appear in thePATH
.The current fix is a bit dirty but it works with Debian 10 for when you setup from scratch a node.
To setup the cluster, instead of using
install-lxd.yml
you have to useinstall-lxd-debian-10.yml
:ansible-playbook ~/install-lxd-debian-10.yml
It will use snap instead of apt to install LXD and will create a symbolic link to make sure
lxc
andlxd
commandes are reachable. The issue comes fromasyncssh
that doesn't seem to properly load the environment variables.If your machines are already setup, just make sure that
lxc
andlxd
commands appear in thePATH
environment variable.A clean solution will be found when #55 will be closed, using latest LXD version.
with #55 DIstrinet installs automatically LXD4.0/stable, directly with the default ansible playbook; You can use install-lxd.yml for Ubuntu18.04 and Debian10.
ansible-playbook ~/install-lxd.yml
Should work now
@Kyominii The problem comes from using snap and the issue that
lxc
andlxd
did not appear in thePATH
. The current fix is a bit dirty but it works with Debian 10 for when you setup from scratch a node. To setup the cluster, instead of usinginstall-lxd.yml
you have to useinstall-lxd-debian-10.yml
:ansible-playbook ~/install-lxd-debian-10.yml
It will use snap instead of apt to install LXD and will create a symbolic link to make sure
lxc
andlxd
commandes are reachable. The issue comes fromasyncssh
that doesn't seem to properly load the environment variables. If your machines are already setup, just make sure thatlxc
andlxd
commands appear in thePATH
environment variable. A clean solution will be found when #55 will be closed, using latest LXD version.with #55 DIstrinet installs automatically LXD4.0/stable, directly with the default ansible playbook; You can use install-lxd.yml for Ubuntu18.04 and Debian10.
ansible-playbook ~/install-lxd.yml
Should work now
@Kyominii please use commit 85cdc3044426271f175f5e2a12ea7a26174cc521 if you want a stable one and stick to ansible-playbook ~/install-lxd-debian-10.yml
, the rest is experimental and has not been extensively tested yet.
@Kyominii we made little changes as you can see.
For the stable versions you can use install-lxd.yml
on Ubuntu 18.04 and install-lxd-debian-10.yml
on Debian 10.
@Giuseppe1992 also made a version that can be used on either Ubuntu or Debian and that is called install-lxd-snap.yml
. For it you must have ansible (version>=2.8) on the master. It will automatically install snap on the workers and use it to install LXD. Actually we would happy to have your feedback on using that new proposition as the objective is to eventually move to snap and LXD 4.
I have some issue when ansible tries to install a snap package (core or lxd)
root@gros-72:~# snap install hello-world
error: cannot perform the following tasks:
- Fetch and check assertions for snap "core" (8935) (cannot get device session from store: store server returned status 400 and body "{\"error_list\":[{\"code\":\"invalid-assertion\",\"message\":\"invalid assertion: could not validate model assertion (revision 0 is already the current revision)\"}],\"errors\":[\"invalid assertion: could not validate model assertion (revision 0 is already the current revision)\"],\"result\":\"error\"}\n")
I'm not sure if it related to snap itself or the installation of snapd
EDIT : It was related to snapd, it's working now
I manage to make Distrinet running under Debian 10 (client + master + workers) using install-lxd-snap.yml without any trouble (except the snapd issue, but it was temporary)
EDIT : It was related to snapd, it's working now
What was exactly the problem? Does it come from our tutorial + playbooks or was it an error on your side?
It was probably on my side (it looked like a network issue), I will retry later this afternoon to confirm it works with no problem now
It's all good, I can use dmn without any trouble using install-lxd-snap.yml
with debian 10
I'm having some problems running distrinet on Debian 10 Buster (bin/dmn hangs at the "Adding switches" step). FYI : I had to install by hand lxd with snap and cryptography==2.9 with pip3
In this context : gros-95 => Client gros-96 => Master gros-98 and gros-99 => Workers