Opennebula docker-machine [one.vmpool.info] User couldn't be authenticated, aborting call

Hi,

I’m using Opennebula with Docker-machine and when I use the following command:

docker-machine create --driver opennebula --opennebula-network-name mnmgt_test --opennebula-image-name Ttylinux-KVM test

I get this error:

zeus@master-node:/var/log/one$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
test - opennebula Error Unknown [one.vmpool.info] User couldn’t be authenticated, aborting call.

How can I make sure the user is authenticated to deploy vms?

Used:

export ONE_AUTH=~/.one/one_auth
export ONE_XMLRPC=https://<ONE FRONTEND>:2633/RPC2

But stil having the same error.

Hi Apollo, thanks for your interest in the opennebula driver for docker-machine.

The error seems to be related to the credentials or the connection to the frontend.

First of all, can you check if a VM was created inside OpenNebula?

Then, verify that you have access from the workstation where you are executing the command to the OpenNebula frontend.

How is the https access to the OpenNebula frontend configured, is it self signed?

Note that these two variables must be exported before executing the command

export ONE_AUTH=~/.one/one_auth
export ONE_XMLRPC=https://<ONE FRONTEND>:2633/RPC2

For convenience you can put it inside the bashrc file.

And within ~/.one/one_auth must be the username and password in the following

username:password

Hi, in the meantime the authentication is fixed, but now I’m getting this error:

I can use docker-machien ssh test1 to connect to the machine and the machine is also visible and running in the frontend…

When creating the machine I also get this error:

Error getting SSH command to check if the daemon is up: ssh command error:
command : sudo docker version
err     : exit status 1
output  : sudo: docker: command not found

Error creating machine: Error running provisioning: Maximum number of retries (60) exceeded