VMware {code} Community
Zanderfilet
Contributor
Contributor
Jump to solution

HostDatastoreBrowser Bug?

Hi all,

we are facing kind of strange Behavior while handling data from a vCenter:

We receive the list of datastore's of a host via the HostDatastoreBrowser. This works fine but we came to a certain misbehavior:

A few datastores have been added to a vCenter. Now these datastores are displayed in the vSphere Client as being attached to a host (if i browse to Home->Inventory->Hosts and Clusters, mark a host and watch the summary tab).

But if i try to collect the datastores via the java sdk the new added datastores are not returned in the array of datastores!???

Anyone ever had that issue? We're hoping that this problem will be solved after vCenter restart (webservice fault?), but it's a major issue for the data consistence of the returned data.

Thanks for tips and suggestions what could be the problem...or even experience statements.

Regards,

Zander

Note: This discussion has also been started here: http://communities.vmware.com/community/vmtn/developer/forums/vcloudsdkjava

scince i don't know which is the correct forum.

Reply
0 Kudos
1 Solution

Accepted Solutions
mcssschaefer
Enthusiast
Enthusiast
Jump to solution

Hi,

this isn't a bug, it's a feature :smileysilly: . If you use the ManagedObject "HostDataStoreBrowser" (From a hosystem) , datastores could be masked out, because they are not accessible for host. If you want to see all datastore's (no matter if they are are accessible from the host) you have to use the MangedObject datastore. For VIJAVA change getHostDataStoreBrowser() to getDatastores().

Best regards,

Stephan

http://blog.mightycare.de http://www.mightycare.de

View solution in original post

Reply
0 Kudos
1 Reply
mcssschaefer
Enthusiast
Enthusiast
Jump to solution

Hi,

this isn't a bug, it's a feature :smileysilly: . If you use the ManagedObject "HostDataStoreBrowser" (From a hosystem) , datastores could be masked out, because they are not accessible for host. If you want to see all datastore's (no matter if they are are accessible from the host) you have to use the MangedObject datastore. For VIJAVA change getHostDataStoreBrowser() to getDatastores().

Best regards,

Stephan

http://blog.mightycare.de http://www.mightycare.de
Reply
0 Kudos