vSphere

 View Only
  • 1.  Navigator panel doesnt refresh on task completion

    Posted Oct 11, 2018 06:50 PM

    Hi,

    On submit a dialog we do the following:

    1. Make http request to perform the action. If the user input is invalid then keep the dialog up and allow the input to be corrected.

    2. Get returned taskId from step 1.

    3. Call WEB_PLATFORM.callActionsController("/tasks/" + taskId, jsonString);

    4. Call WEB_PLATFORM.closeDialog().

    The objects view for our object refreshes after the call is made, but the navigator panel does not refresh. This behavior is not reproducing on the virgo server but is happening only when we deploy it as a plugin on our server.

    The request url for this refresh looks like this:

    Request URL: https://<vcenterIP>/ui/data/properties/undefined?properties=primaryIconId,name,labelIds

    Status Code: 500 Internal Server Error.

    Can you please provide an insight on how this can be resolved.

    Thanks.



  • 2.  RE: Navigator panel doesnt refresh on task completion

    Broadcom Employee
    Posted Oct 12, 2018 11:43 AM

    Hi,

     

    Do I understand correctly that the plugin works when registered on the vCenter Server and accessed from the vCenter's HTML Client but does not work when deployed on your local virgo server?

    Looking at the Request URL, it seems there is a problem with the encoding of the URL. Are you sure you are passing a correct URL without unencoded special symbols?

    In addition, it will be helpful if you could provide some server/browser logs and screenshots.

     

    Best Regards,

    Denis



  • 3.  RE: Navigator panel doesnt refresh on task completion

    Posted Oct 15, 2018 11:11 AM
    Hi Denis,
     
    Its the other way around for me. The navigator panel refreshes fine in virgo server and doesn’t refresh when registered on the vCenter server.
     
    I have attached screenshot. In the screen shot refresh_test object shows up on the objects view once the task completed, but since navigator panel did not refresh automatically, you can see that refresh_test is not visible in the navigator panel.
     
    Console error:
    polyfills.bundle.min.js:1 GET https://10.1.176.221/ui/data/properties/undefined?properties=primaryIconId,name,labelIds net::ERR_INCOMPLETE_CHUNKED_ENCODING 500 (Internal Server Error)
     
     
    Thanks,
    Prachi


  • 4.  RE: Navigator panel doesnt refresh on task completion

    Broadcom Employee
    Posted Oct 15, 2018 11:21 AM

    Hi Prachi,

     

    Thank you for the clarification and the screenshot.

     

    May I ask you about the version of the HTML Client that you are using locally and the version of the HTML Client that is on the vCenter Server?

    It is possible that you are using a newer version locally which has some issue resolved.

     

    In addition, looking at the two URLs (local client vs vcenter client) I do not see any difference.

    I would ask, if you can provide some log file so that we can investigate further.

     

    Thanks,

    Denis



  • 5.  RE: Navigator panel doesnt refresh on task completion

    Posted Oct 15, 2018 07:14 PM
    Sorry it was a copy and paste in my previous message. 
    The request URL on virgo server looks different than the request URL in vCenter server.
    Request url in virgo server: 
     
    Request URL on the plugin registered on vCenter server:
     
    Our virgo server is running on 6.5.0 vsphere sdk and our vCenter server on which we have registered the plugin is 6.5u1g. So if its related to html version, seems like it works for the older version.
     
    Attaching the stack trace from the console error on the browser. 
    Please let me know what additional logs I can provide to help triage this further. 
    Thanks,
    Prachi


  • 6.  RE: Navigator panel doesnt refresh on task completion

    Broadcom Employee
    Posted Oct 16, 2018 07:40 AM

    Hi Prachi,

     

    To me, it looks like the issue is related to some encoding differences between 6.5.0 and 6.5u1 HTML Client versions.

    Can I ask you to download 6.5U1 SDK (https://code.vmware.com/web/sdk/6.5/web-client) and use the HTML client from there (instead of your local 6.5.0 client).

    This way we can see if this problem is specific to 6.5U1 vSphere HTML Client. You can also try 6.5U2 and 6.7 Clients to further narrow down the differences.

     

    Thank you very much,

    Denis