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

[New VM] 'no hosts available' when creating VM on local SR from template on another local SR #3084

Closed badrAZ closed 5 years ago

badrAZ commented 6 years ago

Steps to reproduce it:

Cause:

Solutions:

  1. add a predicate to the SR select
  2. not use the function VM.provision to create a VM
m0ps commented 5 years ago

So is there any ETA? This really blocks us of switching from XenCenter to Xen-Orchestra.

julien-f commented 5 years ago

AFAIU, this specific problem is a XenServer issue, XenCenter should have the same limitation than XO on this.

m0ps commented 5 years ago

No-no... It works with XenCenter. Look... we have 3-hosts pool and a custom template, that stored on local SR of host one. When we trying to deploy (on any of the pool hosts) VM from this template via XenCenter - all ok, but via XO we can deploy VM only on the host one, deploying on the host two or host three fails with error

NO_HOSTS_AVAILABLE()
olivierlambert commented 5 years ago

So I'm really curious about which XAPI call is made by XenCenter in this case.

julien-f commented 5 years ago

We've taken a look with @badrAZ and it could be easy to fix on our side.

He'll create a PR for this, @m0ps would you be willing to test it?

m0ps commented 5 years ago

@julien-f Sure... Just let me know when it will be implemented and I'll check it.