VMware Cloud Community
vihar1
Enthusiast
Enthusiast
Jump to solution

Some vCenter resources are not visible in vCloud

Dear Community,

I have setup a basic test system in Workstation and I have the following issue.

I am able to attach vCenter to vCloud and see networks and vCenter itself but no datastore, resource pool, host and storage policy is visible.

vCenter version 5.5.0 1300321

vCloud version 5.5.2.2000523

I have disabled/reconnected/refreshed vCenter connection but to no avail.

I have also tried Chrome incognito mode and Explorer, unsuccessfully.

Any idea what went wrong and how to fix it?

Reply
0 Kudos
1 Solution

Accepted Solutions
IamTHEvilONE
Immortal
Immortal
Jump to solution

it sounds like something really basic is missing to me.

1. Attaching a vCenter is not enough, that just creates a link between vCD to vCenter.

2. create a provider vDC associates Compute Resources (must be a DRS enabled Cluster) ... e.g. Creating a PvDC is like saying I want to Import a Cluster to vCloud Director.

3. Once you have that, then you can create an External Network (importing a Port Group that's available to all hosts in a given provider vdc ... aka cluster(s)).

4. Import Storage Policies, can be done inside the provider vDC itself or when you intially create the provider vDC.  Setting up a Storage Policy is a whole process to itself.  I'm sure google can assist there (I don't have a reference directly in front of me right now).

View solution in original post

Reply
0 Kudos
4 Replies
Sreec
VMware Employee
VMware Employee
Jump to solution

Hi,

     Most likely inventory table in VCD is out of sync with VC. Was there any inventory table reset done from VC? When you try to create a PVDC does it populate any resource? You can certainly check from VCD-DB side to confirm if there are any entries.Adding to that it would be worth to try a inventory table reset specifically for VCD-DB(NOT IN VC).

1)Take a Back-up of VCD&VC DB.

2)Stop VCD cell service-->Service vmware-vcd stop

3)Run these SQL statements on the vCD database to clean up the inventory tables:

delete from cluster_compute_resource_inv;
delete from compute_resource_inv;
delete from custom_field_manager_inv;
delete from datacenter_inv;
delete from datacenter_network_inv;
delete from datastore_inv;
delete from datastore_profile_inv;
delete from dv_portgroup_inv;
delete from dv_switch_inv;
delete from folder_inv;
delete from managed_server_datastore_inv;
delete from managed_server_inv;
delete from managed_server_network_inv;
delete from network_inv;
delete from resource_pool_inv;
delete from storage_profile_inv;
delete from storage_pod_inv;
delete from task_inv;
delete from vm_inv;
delete from property_map;

3.Start the VCD cell service.

4.Log-Into VCD GUI and check the O/P.

May i also know

A)VCNS version you are using in this set-up.?

B)VCD-DB details?

c)VC-DB details?

Cheers,
Sree | VCIX-5X| VCAP-5X| VExpert 6x|Cisco Certified Specialist
Please KUDO helpful posts and mark the thread as solved if answered
IamTHEvilONE
Immortal
Immortal
Jump to solution

it sounds like something really basic is missing to me.

1. Attaching a vCenter is not enough, that just creates a link between vCD to vCenter.

2. create a provider vDC associates Compute Resources (must be a DRS enabled Cluster) ... e.g. Creating a PvDC is like saying I want to Import a Cluster to vCloud Director.

3. Once you have that, then you can create an External Network (importing a Port Group that's available to all hosts in a given provider vdc ... aka cluster(s)).

4. Import Storage Policies, can be done inside the provider vDC itself or when you intially create the provider vDC.  Setting up a Storage Policy is a whole process to itself.  I'm sure google can assist there (I don't have a reference directly in front of me right now).

Reply
0 Kudos
vihar1
Enthusiast
Enthusiast
Jump to solution

Thank you both for the answers.

It seems that there is a sync issue between vCloud and the database as some inventory tables are populated while others are not. So I've cleaned the inv tables and restarted vCloud services and reconnected to vCenter but it did not help. The issue remained the same.

@Sreec: I use VMware-vShield-Manager-5.5.0-1317534 OVF and SQL 2008 R2 Express

VC and VCD databases were created manually by clicking on new DB and everything is on default.

@IamTHEvilONE: HA, DRS and SDRS are all enabled. When creating a Provider vDC, storage policies are not listed, only the "Any" tag is there, including all the datastores which have tags.

After creating a Provider, hosts and resource pools are listed, now I only miss storage policies. So it seems that resource data is gathered after the firs Provider vDC is created. I expected all resources listed which are available on a vCenter.

I'll recreate storage policies now.

Reply
0 Kudos
vihar1
Enthusiast
Enthusiast
Jump to solution

The issue is gone now, I've recreated the tags and disabled/enabled profiling again and now they appear when creating Providers.

Thank you both!

Reply
0 Kudos