Renat_Minnakhme
Contributor
Contributor

vCloud "The operation failed because no suitable resource was found. Could not find a suitable datastore in hub There is no usable datastore"

Greetings,

vCD : 5.6.4 and 8.10

I have faced the same issue The operation failed because no suitable resource was found. Hub "Resources" doesn't have enough "*"...

I'm not able to deploy new VMs or increase Hard Disk of existing VMs which reside on the datastore cluster via vCloud, but I can do it directly in vCenter.

I have deployed test environment and added 20Gb datastore to datastore cluster. New tag has been created and assigned to the datastore. Storage Policy created based on the tag.

In vCloud I reduced red threshold to a minimum - 1Gb

Storage Policy set to unlimited in Org VDC

pastedImage_1.png

The maximum size of VM which vCloud allows me to create on the datastore cluster is 9GB HDD (+1Gb RAM)

Datastore Capacity - 19.75Gb

Provisioned - 11.02Gb

Free - 9.84Gb

When I'm trying to add 1Gb to VM's HDD vCloud shows me the error below even though there 9.84Gb free space. I can easily create VM on the datastore using vCenter and vSphere Client

pastedImage_2.png

I tried this SQL query to verify database entity Deploying vShield Edge Appliance or vApp fails with the error: Hub "Resources" doesn't have enough "...

0x0197D882922F432F875D259E043AA009    resgroup-565    T2-policy    9047    1024

0x0197D882922F432F875D259E043AA009    resgroup-607    T2-policy    9047    1024

0x0197D882922F432F875D259E043AA009    resgroup-608    T2-policy    9047    1024

I don't understand why this is happening.

Are there any restrictions from vCloud?

Any help would be highly appreciated.

0 Kudos
2 Replies
Renat_Minnakhme
Contributor
Contributor

Solved the issue by recreating datastore cluster and refreshing storage policy.

0 Kudos
mjha
Hot Shot
Hot Shot

@Renat_MinnakhmetovRenat_Minnakhmetov

Glad to hear that issue has been solved by recreating datastore cluster etc.

But prior to that did you checked that if your vCD DB has any storage reservations? Storage reservation can happen because of following:

1: You are trying to upload vApp/ISO to catalogs and it failed midway and vcd was unable to clear the space taken by iso/template in vcddb. When import is started, at that time VCD asks vcddb to reserve space equal to size of iso/vApp template in database. Mostly this size is cleared post failed deployment but if at the time when deployment failed if there is some latency issue between vcd and vcddb reservations are left in DB.

2: Reservations also appears in database when trying to deploy a vApp from catalog and deployment is failed midway.

3: Trying to transfer a VM from vSphere to vCloud Director using vCC.

Also I believe you are aware of the fact that when a datastore reaches red threshold in vcd, vcd placement algorithm is unable to place any vm there

Please consider marking this answer "correct" or "helpful" if you think your query have been answered correctly. Manish Jha | Operations Support Engineer | vCloud Air Operations vExpert 2015-17 | vExpert-NSX | vExpert-Cloud | VCAP6-DCV | VCP6-DCV | RHCE-7 Website : http://vstellar.com
0 Kudos