I am writing a script to import existing datastores and crawl thru them to add all VMs that it finds to the inventory. I know I had this working on our production environment before. Now I built a lab environment and when I run what I think is the same script, after the datastores get mounted either by the script or manually, they show up as inaccessible ($dstore_mo_ref->summary->accessible is 0). The really odd part about this is that you can browse them from vCenter, and I have another script that just searches the datastores for any pattern provided that works just fine.
Any ideas?
Tom