vatesfr / xen-orchestra

The global orchestration solution to manage and backup XCP-ng and XenServer.
https://xen-orchestra.com
Other
775 stars 262 forks source link

Can't create VM with CloudConfigDrive #917

Closed UAnton closed 8 years ago

UAnton commented 8 years ago

When I try to create VM with CloudConfig Drive - I have messages in Xen-Orchestra and in xo-server logs. VM created but without CloudConfig Drive. XO: 0ezpj4l

xo-server:

Thu, 05 May 2016 13:05:53 GMT xen-api root@172.16.4.103: VM.clone(...) [3s] ==> string
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: event.from(...) [60ms] ==> object
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: VM.remove_from_other_config(...) [10ms] ==> string
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: VM.provision(...) [63ms] ==> string
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: VM.set_HVM_boot_params(...) [10ms] ==> string
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: VIF.destroy(...) [12ms] ==> string
Thu, 05 May 2016 13:05:54 GMT xo:xapi Creating VIF for VM CentOS Linux 7.2.1511 on network Pool-wide network associated with eth0
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: VIF.create(...) [11ms] ==> string
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: event.from(...) [33ms] ==> object
Thu, 05 May 2016 13:05:54 GMT xo:api test@test.com | vm.create(...) [4s] ==> string
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: VM.set_name_description(...) [8ms] ==> string
Thu, 05 May 2016 13:05:54 GMT xo:api test@test.com | vm.set(...) [11ms] ==> boolean
Thu, 05 May 2016 13:05:54 GMT xo:xapi Creating VDI XO CloudConfigDrive on XenServer Tools
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: VDI.create(...) [57ms] =!> XapiError: SR_OPERATION_NOT_SUPPORTED(OpaqueRef:eb28b92c-c3f6-fd44-328c-10140f5cb69c)
Thu, 05 May 2016 13:05:54 GMT xo:api test@test.com | vm.createCloudInitConfigDrive(...) [65ms] =!> XapiError: SR_OPERATION_NOT_SUPPORTED(OpaqueRef:eb28b92c-c3f6-fd44-328c-10140f5cb69c)
Thu, 05 May 2016 13:05:54 GMT xen-api root@172.16.4.103: event.from(...) [13ms] ==> object
olivierlambert commented 8 years ago

Do you have all your hosts powered on? Is there a case where it works? what is your SR type?

UAnton commented 8 years ago

Yes, all node is on-line. SR type - lvmohba. It does not work in any case.

olivierlambert commented 8 years ago

Can you try on another SR type? I don't have any HBA thing to reproduce.

UAnton commented 8 years ago

Tried NFS - no changes. Same messages in log.

olivierlambert commented 8 years ago

You mean you created a VM to a NFS SR?

I can't reproduce your issue :/ You are running XS 6.5 I presume?

UAnton commented 8 years ago

Yes, i create NFS SR from another server. I have XS 6.5 with all updates.

olivierlambert commented 8 years ago

No I mean, when you created the VM, did you select the new NFS SR for its disks?

UAnton commented 8 years ago

Yes, of course.

olivierlambert commented 8 years ago

Did you modify the VDI size?

UAnton commented 8 years ago

No

olivierlambert commented 8 years ago

And creating a VM without config drive works? can you show me the logs of a working VM creation?

UAnton commented 8 years ago
May 05 17:10:23 xo xo-server[900]: Thu, 05 May 2016 14:10:23 GMT xo:xapi Cloning VM CentOS Linux 7.2.1511
May 05 17:10:23 xo xo-server[900]: Thu, 05 May 2016 14:10:23 GMT xen-api root@172.16.4.103: event.from(...) [11m] ==> object
May 05 17:10:23 xo xo-server[900]: Thu, 05 May 2016 14:10:23 GMT xen-api root@172.16.4.103: event.from(...) [178ms] ==> object
May 05 17:10:23 xo xo-server[900]: Thu, 05 May 2016 14:10:23 GMT xo:api test@test.com | acl.getCurrentPermissions(...) [4ms] ==> object
May 05 17:10:25 xo xo-server[900]: Thu, 05 May 2016 14:10:25 GMT xen-api root@172.16.4.103: event.from(...) [1s] ==> object
May 05 17:10:25 xo xo-server[900]: Thu, 05 May 2016 14:10:25 GMT xen-api root@172.16.4.103: event.from(...) [18ms] ==> object
May 05 17:10:25 xo xo-server[900]: Thu, 05 May 2016 14:10:25 GMT xen-api root@172.16.4.103: event.from(...) [11ms] ==> object
May 05 17:10:25 xo xo-server[900]: Thu, 05 May 2016 14:10:25 GMT xen-api root@172.16.4.103: event.from(...) [76ms] ==> object
May 05 17:10:25 xo xo-server[900]: Thu, 05 May 2016 14:10:25 GMT xen-api root@172.16.4.103: VM.clone(...) [3s] ==> string
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xen-api root@172.16.4.103: event.from(...) [56ms] ==> object
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xo:perf blocked for 18ms
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xen-api root@172.16.4.103: VM.remove_from_other_config(...) [11ms] ==> string
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xen-api root@172.16.4.103: VM.provision(...) [80ms] ==> string
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xo:xapi Moving VDI Virtual Disk from vdi.$SR.name_label to Datastore1
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xen-api root@172.16.4.103: VM.set_HVM_boot_params(...) [12ms] ==> string
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xen-api root@172.16.4.103: VDI.pool_migrate(...) [13ms] =!> XapiError: VDI_NEEDS_VM_FOR_MIGRATE(OpaqueRef:80043b26-e12f-91b1-6664-ef2e10945a89)
May 05 17:10:26 xo xo-server[900]: Thu, 05 May 2016 14:10:26 GMT xen-api root@172.16.4.103: event.from(...) [41ms] ==> object
May 05 17:10:27 xo xo-server[900]: Thu, 05 May 2016 14:10:27 GMT xen-api root@172.16.4.103: event.from(...) [528ms] ==> object
May 05 17:10:27 xo xo-server[900]: Thu, 05 May 2016 14:10:27 GMT xen-api root@172.16.4.103: event.from(...) [29ms] ==> object
May 05 17:10:27 xo xo-server[900]: Thu, 05 May 2016 14:10:27 GMT xen-api root@172.16.4.103: event.from(...) [516ms] ==> object
May 05 17:10:28 xo xo-server[900]: Thu, 05 May 2016 14:10:28 GMT xen-api root@172.16.4.103: event.from(...) [556ms] ==> object
May 05 17:10:30 xo xo-server[900]: Thu, 05 May 2016 14:10:30 GMT xen-api root@172.16.4.103: event.from(...) [1s] ==> object
May 05 17:10:30 xo xo-server[900]: Thu, 05 May 2016 14:10:30 GMT xen-api root@172.16.4.103: event.from(...) [13ms] ==> object
May 05 17:10:31 xo xo-server[900]: Thu, 05 May 2016 14:10:31 GMT xen-api root@172.16.4.103: event.from(...) [400ms] ==> object
May 05 17:10:31 xo xo-server[900]: Thu, 05 May 2016 14:10:31 GMT xen-api root@172.16.4.103: event.from(...) [449ms] ==> object
May 05 17:10:32 xo xo-server[900]: Thu, 05 May 2016 14:10:32 GMT xen-api root@172.16.4.103: event.from(...) [891ms] ==> object
May 05 17:10:33 xo xo-server[900]: Thu, 05 May 2016 14:10:33 GMT xen-api root@172.16.4.103: event.from(...) [194ms] ==> object
May 05 17:10:33 xo xo-server[900]: Thu, 05 May 2016 14:10:33 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:33 xo xo-server[900]: Thu, 05 May 2016 14:10:33 GMT xen-api root@172.16.4.103: event.from(...) [12ms] ==> object
May 05 17:10:33 xo xo-server[900]: Thu, 05 May 2016 14:10:33 GMT xen-api root@172.16.4.103: event.from(...) [11ms] ==> object
May 05 17:10:33 xo xo-server[900]: Thu, 05 May 2016 14:10:33 GMT xo:api test@test.com | acl.getCurrentPermissions(...) [5ms] ==> object
May 05 17:10:33 xo xo-server[900]: Thu, 05 May 2016 14:10:33 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:34 xo xo-server[900]: Thu, 05 May 2016 14:10:34 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:34 xo xo-server[900]: Thu, 05 May 2016 14:10:34 GMT xen-api root@172.16.4.103: event.from(...) [11ms] ==> object
May 05 17:10:34 xo xo-server[900]: Thu, 05 May 2016 14:10:34 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:34 xo xo-server[900]: Thu, 05 May 2016 14:10:34 GMT xen-api root@172.16.4.103: event.from(...) [9ms] ==> object
May 05 17:10:35 xo xo-server[900]: Thu, 05 May 2016 14:10:35 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:35 xo xo-server[900]: Thu, 05 May 2016 14:10:35 GMT xen-api root@172.16.4.103: event.from(...) [11ms] ==> object
May 05 17:10:35 xo xo-server[900]: Thu, 05 May 2016 14:10:35 GMT xen-api root@172.16.4.103: event.from(...) [123ms] ==> object
May 05 17:10:35 xo xo-server[900]: Thu, 05 May 2016 14:10:35 GMT xen-api root@172.16.4.103: event.from(...) [97ms] ==> object
May 05 17:10:36 xo xo-server[900]: Thu, 05 May 2016 14:10:36 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:36 xo xo-server[900]: Thu, 05 May 2016 14:10:36 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:36 xo xo-server[900]: Thu, 05 May 2016 14:10:36 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:36 xo xo-server[900]: Thu, 05 May 2016 14:10:36 GMT xen-api root@172.16.4.103: event.from(...) [9ms] ==> object
May 05 17:10:36 xo xo-server[900]: Thu, 05 May 2016 14:10:36 GMT xen-api root@172.16.4.103: event.from(...) [11ms] ==> object
May 05 17:10:37 xo xo-server[900]: Thu, 05 May 2016 14:10:37 GMT xen-api root@172.16.4.103: event.from(...) [11ms] ==> object
May 05 17:10:37 xo xo-server[900]: Thu, 05 May 2016 14:10:37 GMT xen-api root@172.16.4.103: event.from(...) [9ms] ==> object
May 05 17:10:37 xo xo-server[900]: Thu, 05 May 2016 14:10:37 GMT xen-api root@172.16.4.103: event.from(...) [11ms] ==> object
May 05 17:10:37 xo xo-server[900]: Thu, 05 May 2016 14:10:37 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:37 xo xo-server[900]: Thu, 05 May 2016 14:10:37 GMT xen-api root@172.16.4.103: event.from(...) [12ms] ==> object
May 05 17:10:38 xo xo-server[900]: Thu, 05 May 2016 14:10:38 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:38 xo xo-server[900]: Thu, 05 May 2016 14:10:38 GMT xen-api root@172.16.4.103: event.from(...) [9ms] ==> object
May 05 17:10:38 xo xo-server[900]: Thu, 05 May 2016 14:10:38 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:38 xo xo-server[900]: Thu, 05 May 2016 14:10:38 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:39 xo xo-server[900]: Thu, 05 May 2016 14:10:39 GMT xen-api root@172.16.4.103: event.from(...) [9ms] ==> object
May 05 17:10:39 xo xo-server[900]: Thu, 05 May 2016 14:10:39 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:39 xo xo-server[900]: Thu, 05 May 2016 14:10:39 GMT xen-api root@172.16.4.103: event.from(...) [9ms] ==> object
May 05 17:10:39 xo xo-server[900]: Thu, 05 May 2016 14:10:39 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:39 xo xo-server[900]: Thu, 05 May 2016 14:10:39 GMT xen-api root@172.16.4.103: event.from(...) [9ms] ==> object
May 05 17:10:40 xo xo-server[900]: Thu, 05 May 2016 14:10:40 GMT xen-api root@172.16.4.103: event.from(...) [10ms] ==> object
May 05 17:10:41 xo xo-server[900]: Thu, 05 May 2016 14:10:41 GMT xen-api root@172.16.4.103: event.from(...) [770ms] ==> object
May 05 17:10:43 xo xo-server[900]: Thu, 05 May 2016 14:10:43 GMT xen-api root@172.16.4.103: event.from(...) [2s] ==> object
May 05 17:10:43 xo xo-server[900]: Thu, 05 May 2016 14:10:43 GMT xen-api root@172.16.4.103: event.from(...) [334ms] ==> object
May 05 17:10:43 xo xo-server[900]: Thu, 05 May 2016 14:10:43 GMT xen-api root@172.16.4.103: event.from(...) [15ms] ==> object
May 05 17:10:43 xo xo-server[900]: Thu, 05 May 2016 14:10:43 GMT xo:api test@test.com | acl.getCurrentPermissions(...) [6ms] ==> object
May 05 17:10:45 xo xo-server[900]: Thu, 05 May 2016 14:10:45 GMT xen-api root@172.16.4.103: event.from(...) [1s] ==> object
May 05 17:10:45 xo xo-server[900]: Thu, 05 May 2016 14:10:45 GMT xen-api root@172.16.4.103: event.from(...) [383ms] ==> object
May 05 17:10:45 xo xo-server[900]: Thu, 05 May 2016 14:10:45 GMT xen-api root@172.16.4.103: VDI.copy(...) [20s] ==> string
May 05 17:10:45 xo xo-server[900]: Thu, 05 May 2016 14:10:45 GMT xen-api root@172.16.4.103: VBD.destroy(...) [11ms] ==> string
May 05 17:10:45 xo xo-server[900]: Thu, 05 May 2016 14:10:45 GMT xo:xapi Creating VBD for VDI Virtual Disk on VM CentOS Linux 7.2.1511
May 05 17:10:45 xo xo-server[900]: Thu, 05 May 2016 14:10:45 GMT xen-api root@172.16.4.103: VBD.create(...) [13ms] ==> string
May 05 17:10:45 xo xo-server[900]: Thu, 05 May 2016 14:10:45 GMT xo:xapi Deleting VDI Virtual Disk
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xen-api root@172.16.4.103: event.from(...) [29ms] ==> object
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xen-api root@172.16.4.103: event.from(...) [12ms] ==> object
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xen-api root@172.16.4.103: VDI.destroy(...) [494ms] ==> string
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xen-api root@172.16.4.103: VIF.destroy(...) [9ms] ==> string
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xo:xapi Creating VIF for VM CentOS Linux 7.2.1511 on network Pool-wide network associated with eth0
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xen-api root@172.16.4.103: VIF.create(...) [12ms] ==> string
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xen-api root@172.16.4.103: event.from(...) [24ms] ==> object
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xo:api test@test.com | vm.create(...) [23s] ==> string
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xen-api root@172.16.4.103: VM.set_name_description(...) [8ms] ==> string
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xo:api test@test.com | vm.set(...) [12ms] ==> boolean
May 05 17:10:46 xo xo-server[900]: Thu, 05 May 2016 14:10:46 GMT xo:xapi Starting VM CentOS Linux 7.2.1511
UAnton commented 8 years ago

Re-installing XenServer and XenOrchestra not helpd. Maybe the problem is that I do not have local disks and XenServer booting from FC?

olivierlambert commented 8 years ago

@UAnton is it still the case with xo-server 4.17?

UAnton commented 8 years ago

@olivierlambert No, I no more use XenServer + Xen-orchestra. It's not for production. Not interested more! Sorry! May be in future.