OpenNebula / addon-vcloud-driver

Other
0 stars 3 forks source link

Error deploying VMs #2

Open RomanMartinIECI opened 7 years ago

RomanMartinIECI commented 7 years ago

Hello, thank you for this driver. I am testing it, I have done the host, template and networks imports in OpenNebula correctly, but I have an error when trying to deploy VMs:

Message received: LOG I 3 Command execution fail: /var/lib/one/remotes/vmm/vcloud/deploy '/var/lib/one/vms/3/deployment.0' 'NEBULA-VDC' 3 NEBULA-VDC

Wed Aug 16 12:20:58 2017 [Z0][VMM][D]: Message received: LOG I 3 Deploy of VM 3 on host NEBULA-VDC with /var/lib/one/vms/3/deployment.0 failed due to "Cannot clone vApp Template can't convert Symbol into Integer"

Wed Aug 16 12:20:58 2017 [Z0][VMM][D]: Message received: LOG I 3 ExitCode: 255

Wed Aug 16 12:20:58 2017 [Z0][VMM][D]: Message received: LOG I 3 Failed to execute virtualization driver operation: deploy.

Wed Aug 16 12:20:58 2017 [Z0][VMM][D]: Message received: DEPLOY FAILURE 3 -

Do you know what can be happening?

OpenNebula version: 5.4 clean installed vCloud Director 5.6

Thank you!

CSUC commented 7 years ago

Hi Roman,

Thanks for testing the driver. We haven't tested the driver in the new version of OpenNebula 5.4. In this moment our team are on vacation time.

We look forward to helping you in September.

Regards,

M. Ángel

RomanMartinIECI commented 7 years ago

Ok, thank you.

CSUC commented 7 years ago

Hi Roman, We are back! We made some changes in the driver. We have uploaded a new version of ruby gem (ruby_vcloud8_sdk-0.7.10.gem) and a enhanced version of vcloud_driver.rb file.

Please, download the gem and install it again. Also download the file vcloud_driver.rb and copy to its destination directory as the installation guide shows.

Import again vloud templates because now the driver uses more information added during the importation process.

Try this and comment how has it gone. Thanks.

RomanMartinIECI commented 7 years ago

Thank you so much for helping. I'll try it and come back with a response.

EDIT: Tried it and no luck. Here is the log:

Thu Sep 14 14:22:41 2017 [Z0][VM][I]: New state is ACTIVE Thu Sep 14 14:22:41 2017 [Z0][VM][I]: New LCM state is PROLOG Thu Sep 14 14:22:41 2017 [Z0][VM][I]: New LCM state is BOOT Thu Sep 14 14:22:41 2017 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/7/deployment.0 Thu Sep 14 14:22:41 2017 [Z0][VMM][I]: Successfully execute network driver operation: pre. Thu Sep 14 14:22:46 2017 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vcloud/deploy '/var/lib/one/vms/7/deployment.0' 'NEBULA-VDC' 7 NEBULA-VDC Thu Sep 14 14:22:46 2017 [Z0][VMM][I]: Deploy of VM 7 on host NEBULA-VDC with /var/lib/one/vms/7/deployment.0 failed due to "Cannot instantiate vApp Template 400 Bad Request" Thu Sep 14 14:22:46 2017 [Z0][VMM][I]: ExitCode: 255 Thu Sep 14 14:22:46 2017 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy. Thu Sep 14 14:22:46 2017 [Z0][VMM][E]: Error deploying virtual machine Thu Sep 14 14:22:46 2017 [Z0][VM][I]: New LCM state is BOOT_FAILURE Thu Sep 14 14:22:48 2017 [Z0][HKM][I]: Success executing Hook: delete_failed_vms: .

Maybe it is because we are on vCloud Director 5.6 and installed gem for vCloud 8?

EDIT2: Tried only changing the vcloud_driver.rb with the old gem and it doesn't work: Thu Sep 14 14:32:12 2017 [Z0][VM][I]: New state is ACTIVE Thu Sep 14 14:32:12 2017 [Z0][VM][I]: New LCM state is PROLOG Thu Sep 14 14:32:12 2017 [Z0][VM][I]: New LCM state is BOOT Thu Sep 14 14:32:12 2017 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/9/deployment.0 Thu Sep 14 14:32:12 2017 [Z0][VMM][I]: Successfully execute network driver operation: pre. Thu Sep 14 14:32:14 2017 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/vcloud/deploy '/var/lib/one/vms/9/deployment.0' 'NEBULA-VDC' 9 NEBULA-VDC Thu Sep 14 14:32:14 2017 [Z0][VMM][I]: Deploy of VM 9 on host NEBULA-VDC with /var/lib/one/vms/9/deployment.0 failed due to "Cannot instantiate vApp Template undefined method `instantiate_vapp_template_by_id' for #" Thu Sep 14 14:32:14 2017 [Z0][VMM][I]: ExitCode: 255 Thu Sep 14 14:32:14 2017 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy. Thu Sep 14 14:32:14 2017 [Z0][VMM][E]: Error deploying virtual machine Thu Sep 14 14:32:14 2017 [Z0][VM][I]: New LCM state is BOOT_FAILURE Thu Sep 14 14:32:17 2017 [Z0][HKM][I]: Success executing Hook: delete_failed_vms: . Thu Sep 14 14:33:18 2017 [Z0][VM][I]: New LCM state is CLEANUP_DELETE Thu Sep 14 14:33:18 2017 [Z0][VM][I]: New state is DONE Thu Sep 14 14:33:18 2017 [Z0][VM][I]: New LCM state is LCM_INIT

CSUC commented 7 years ago

Hi Roman,

As we can see in your error logs, these errors are caused because there is no compatibilty bewteen the opennebula driver file, the gem and vCloud Director 5.6 version.

Now we are working on vCloud Director 8 and its gem. The older gem for vCloud Director 5.6 is not mantained and is deprecated.

The vcloud_driver.rb and other files uploaded in recent pushes are developed for vCloud Driver 8.

We encourage and invite you to develop and fix the errors in the vCloud Director 5.6 version :)

Thanks for your patient!