Hi
I was wondering if anyone has a solution for discovering new sra devices automation
I am trying to automate an end to end scenario where a newly created datastore which is replicated by the storage provider is used for a new protection group.
But the problem is that the replicated datastore won't be visible before the discovery button is pushed.
I am searching for some time now for a workaround.
I can't find an API for this procedure.
Maybe a system setting for enabling the procedure ?
Hi,
Unfortunately this operation is not yet exposed via SRM Public API. As this operation can stress the entire stack (vCenter, ESXi, Storage), we are still cautious about making it available for scripting/automation.
You can help us by sharing with us what you are using for automation (PowerCLI, vRO, WSDL APIs).
Thanks
Stefan
Hi Stefan
Sorry for responding so late
We have implemented SRA
We want to accomplish an end-to-end user story automation:
(1) set replication in our storage
(2) create datastore based on a replicated lun (and clone vms to that datastore)
(3) add this datastore to a protection group
(4) set protection for vms
(5) run a recovery test
We implementing this in fully object oriented manner and integrating it in our automation framework
From vmware side we are using both pyVmomi and SRM sdk (JAVA)
What we are missing is 2 things:
(A) between steps (2) -> (3), API for discovering replication devices
(B) in step (3), there is no API for creation of new Protection Group.
Our workarounds:
(A) advanced setting: /storage/storagePingInterval
(B) creating manually empty protection groups before running the automation
We would appreciate a more direct API for these 2 actions of course, and it would be great if you can pass it through.
Thanks for your help !
Shahar
* correction for (B)
its Recovery Plan we are creating manually, since there is no API for creation, not Protection Group
If you have access to pyVmomi, you should be able to trigger a rescan of the datastores. Can you please send me a private message with the name of your company and I might be able to help you?
Hi Stefan
When I try to read private messages I get
To be honest, after some time with no response in this forum, I was advised in my company to use our dcpn account for the question in scope
It was resolved with the workaround (A) I mentioned
A pyVmomi alternative is a better solution for us, your input is much welcome
You can find my email and company details at our sra dcpn account Proj-0023828