Hello,
I want to create a remote plugin for the vCenter as described in the document Developing Remote Plug-ins with the vSphere Client SDK . Unfortunately I'm not able to clone the session of the currently logged in user.
At first I request a CloneTicket via the REST-API. This works and I get a string which looks like "cst-VCT-52abe3ae-0b53-12f1-c978-abd1252b99e2--tp-12-D3-A0-45-85-74-63-3E-A6-D2-B1-A4-38-90-72-19-27-62-22-00". With this string I want to get a valid user session. As described in the document I use the cloneSession method to gain this. UnfortunatelyI get a InvalidLogin exception.
In the vcenter the log file /storage/log/vmware/vpxd/vpxd-xxx.log states
[VpxdUser] Attempt to re-register session with cnxId=529f1252-1a34-5d18-67d2-cab1fa5f5a12 failed
The id "529f1252-1a34-5d18-67d2-cab1fa5f5a12" belongs to the session I used to open the SessionManager, which is a different user than the one from which the sesssion should be cloned. I use the perl SDK for the remote plugin but even the language agnostic way via the Mob (https://[FQDN-vCenter]/mob/?moid=SessionManager&method=cloneSession) only leads to the same error:
key "vim.fault.InvalidLoginWithReason"
message "Login failed because the session could not be re-registered."
At this point I spent a lot of time into the troubleshooting and I have no idea why the clone operation doesnt work. I can't find anything via Google about this "re-registered" error. Did I miss something? Are there any special reqirements? Can sombody please give me a hint how I can succesfully clone the session?
Best regards,
Martin