I am trying a custom installation of opennebula, frontend is in one LXD container
I went to Apps and downloaded the bionix LXD image. then tried to create a new VM based on the template and after several minutes of CLONING, the following information was displayed in the LOG.
I can ssh without any issue from frontend to the respective node
Versions of the related components and OS (frontend, hypervisors, VMs):
Steps to reproduce:
Current results:
Sat Jan 18 05:02:00 2020 [Z0][VM][I]: New state is CLONING
Sat Jan 18 05:07:25 2020 [Z0][VM][I]: New state is PENDING
Sat Jan 18 05:07:29 2020 [Z0][VM][I]: New state is ACTIVE
Sat Jan 18 05:07:29 2020 [Z0][VM][I]: New LCM state is PROLOG
Sat Jan 18 05:07:45 2020 [Z0][VM][I]: New LCM state is BOOT
Sat Jan 18 05:07:45 2020 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/2/deployment.0
Sat Jan 18 05:07:47 2020 [Z0][VMM][I]: Successfully execute transfer manager driver operation: tm_context.
Sat Jan 18 05:07:47 2020 [Z0][VMM][I]: Successfully execute network driver operation: pre.
Sat Jan 18 05:07:49 2020 [Z0][VMM][I]: Command execution fail: cat << EOT | /var/tmp/one/vmm/lxd/deploy ‘/var/lib/one//datastores/0/2/deployment.0’ ‘node34’ 2 node34
Sat Jan 18 05:07:49 2020 [Z0][VMM][E]: deploy: sudo: no tty present and no askpass program specified
Sat Jan 18 05:07:49 2020 [Z0][VMM][I]: /var/tmp/one/vmm/lxd/client.rb:102:in wait': {"type"=>"sync", "status"=>"Success", "status_code"=>200, "operation"=>"", "error_code"=>0, "error"=>"", "metadata"=>{"id"=>"2dbe2072-c9f9-4639-9eba-08fb20b2e576", "class"=>"task", "description"=>"Creating container", "created_at"=>"2020-01-18T10:37:49.185697912+05:30", "updated_at"=>"2020-01-18T10:37:49.185697912+05:30", "status"=>"Failure", "status_code"=>400, "resources"=>{"containers"=>["/1.0/containers/one-2"]}, "metadata"=>nil, "may_cancel"=>false, "err"=>"Invalid devices: Missing source '/var/lib/one/datastores/0/2/mapper/disk.1' for disk 'context'", "location"=>"none"}} (LXDError) Sat Jan 18 05:07:49 2020 [Z0][VMM][I]: from /var/tmp/one/vmm/lxd/container.rb:473:in
wait?’
Sat Jan 18 05:07:49 2020 [Z0][VMM][I]: from /var/tmp/one/vmm/lxd/container.rb:134:in create' Sat Jan 18 05:07:49 2020 [Z0][VMM][I]: from /var/tmp/one/vmm/lxd/deploy:52:in
’
Sat Jan 18 05:07:49 2020 [Z0][VMM][I]: ExitCode: 1
Sat Jan 18 05:07:49 2020 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.
Sat Jan 18 05:07:49 2020 [Z0][VMM][E]: Error deploying virtual machine
Sat Jan 18 05:07:49 2020 [Z0][VM][I]: New LCM state is BOOT_FAILURE
Expected results: