-
Notifications
You must be signed in to change notification settings - Fork 316
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
Cannot add KVM cloud. #1024
Comments
Hi @burnsjake
Change 10.42.0.147 & 22 to the IP & port of your KVM host. If you don't see an SSH header like the one above then it's a networking issue for sure. Keep in mind that using localhost will not work. If the problem persists try restarting the Docker daemon or even rebooting. Sometimes the iptables rules can get messed up. |
I am able to connect from the api container via IP, hostname, and fully qualified domain name. ~/mistio$ docker-compose exec api sh I went a step further and rans: echo "myprivatekey">privatekey from within the api container. I am able to ssh into my KVM hypervisor successfully from the api container. I also changed the settings.py to be not localhost but the actual hostname mist.io CE is running and rebooted. No luck. I have deleted all volumes and containers and tried installing mistCE on multiple hosts (Debian, VoidLinux, Devuan, and Ubuntu). I get the error on every machine. |
That's very weird. Can you check the api logs while adding the KVM cloud?
Also, is the user root or a passwordless sudoer? Some commands require root access and Mist will try to use sudo if the user is not root. Maybe it's hanging & timing out because sudo is expecting a password at this point? |
I have made sure the user I'm connecting with has passwordless sudo. Looks like it's dying on just trying to connect, maybe the keyformat isn't right? I can't find the key in the api container's filesystem to test from the api container. api_1 | 2022-02-18 18:11:56,879 INFO [mist.api.clouds.methods][uWSGIWorker3Core0] Adding new cloud in provider 'libvirt' |
Can you try generating a new key pair through Mist and using it after appending the public key to your host's We've seen some cases of key pairs that were not working well with libvirt for some reason. That issue was fixed some time ago. but it could be something similar. Check this issue for more details. #954 (comment) |
Now my mist.io host just shows a blank page. did a docker-compose -v -rmi all --remove-orphans. Then did a docker network rm mistcenetworkhash . deleted the mistio directory that had docker-compose.yml. deleted all cookies in my browser and cache. re-downloaded docker-compose.yml, ran docker-compose up -d. Still getting a blank page.. I have tried using the IP, hostname, and FQDN, of my host in ~/mistio/settings/settings.py. Uncommented allow localhost and private networks. I cannot figure out why it worked a day ago and now it won't. |
I was able to log in via firefox ESR. I still only get a blank page via brave or current firefox. I generated a key via the mistCE interface. Added the pubkey section to my KVM hypervisor. Tried to add a KVM cloud and get the same problem. I copied the private key onto another host and verified that I am able to ssh into my kvm host as the correct user. api_1 | 2022-02-19 04:02:25,160 INFO [mist.api.tasks][uWSGIWorker6Core0] Deleted periodic task: cloud:list_machines:978a6c124477463a870c20a5354eb18f |
This is getting weirder. I'm afraid I don't have a clue what's wrong and I cannot replicate the issue locally. I'd be happy to look into it if you can somehow provide access. I would do something like the following
The blank page on Brave also does not make any sense to me. I would clear the browser cache, restart nginx just in case with I hope that helps. |
i have the same issue api_1 | 2022-05-11 10:16:58,280 INFO [mist.api.clouds.methods][uWSGIWorker7Core0] Adding new cloud in provider 'libvirt' |
Hi @Ciros55, From:
It seems this is a key issue and unrelated to the previous discussion above. Could you please try to connect from somewhere to your KVM host with If my assumption is correct, it will not work. To solve this problem make sure the SSH key you give to Mist when you add a KVM cloud is indeed in your KVM host. |
I can log into my KVM hypervisors with my id_rsa private key.
I upload my private key to the mist.io keys section.
I click add cloud, add the IP address of my hypervisor, select the private key, add my username.
When I click add cloud, I get the following:
Unauthorized cloud credentials: MachineUnauthorizedError("Couldn't authenticate to machine: Couldn't connect to deploy new SSH key.")
I have verified that I'm able to ssh directly to the hypervisor using a private key from my mist.io machine.
This is a fresh install of CE running with docker-compose up -d.
The text was updated successfully, but these errors were encountered: