VMware {code} Community
wodge
Enthusiast
Enthusiast

Unable to use HTML plugin-seed (v 0.9.5) with live data / Client ID unavailable from localhost vSphere client?

CONTEXT:

I have generated a plugin using the instructions in "HTML Client Plugin Seed v0.9.5" document, using command:

./plugin-seed/tools/generate-plugin.sh

(plugin name is "rcplugin")

This builds successfully. I have deployed the plugin package to the local Virgo server by copying the rcplugin-ui/target/rcplugin directory to $VSPHERE_SDK_HOME/vsphere-ui/plugin-packages, and restarted the Virgo server:

sh $VSPHERE_SDK_HOME/vsphere-ui/server/bin/startup.sh -debug

The server starts successfully, and I can access the local Virgo server from https://localhost:9443 with live VC data.

The plugin starts from "npm start":

Screen Shot 2017-04-27 at 10.13.57 am.png

The json server starts as expected:

Screen Shot 2017-04-27 at 10.18.01 am.png

I am able to access the plugin elements against mock data, as expected from http://localhost:4201 

Screen Shot 2017-04-27 at 10.04.28 am.png

ISSUE 1:

However, if I attempt to use live data (working against my local Virgo server) then I get a message "No hosts found":

Screen Shot 2017-04-27 at 10.24.52 am.png

I thought the "no hosts found" issue may be due to not setting the "client ID" in the settings for the seed-plugin, in the "Live Data setup". I have tried to set the client ID:

Screen Shot 2017-04-27 at 10.49.11 am.png

However this is not possible, as the plugin settings view does not show me the Client ID in the local vSphere client:

Screen Shot 2017-04-27 at 10.50.15 am.png

How do I provide the Client ID if I can't get it from the vSphere client? Is there some other way of getting it?

ISSUE 2:

Also - When viewing the monitor or Configure tab for a host from https://localhost:9443, no data is shown for the rcplugin:

Screen Shot 2017-04-27 at 11.20.27 am.png

Could these issues be interrelated?

0 Kudos
5 Replies
laurentsd
VMware Employee
VMware Employee

Use the Browser console in vSphere Client to understand why the Settings view is not showing up (did you make changes to that part of the plugin?)

If you use the Live Data switch without setting a ClientID the app should display an error at the top since the request will fail.  Did you make changes in that area as well?

0 Kudos
wodge
Enthusiast
Enthusiast

Hi,

Thank you for the response. I haven't made any changes to the plugin, it is taken as generated by the script (just with the name changed at the prompt during the script execution).

0 Kudos
wodge
Enthusiast
Enthusiast

Hi,

As an update to this: I was able to resolve the issue, and get the environment operating correctly by using a new version of the html client locally.

The administration option wasn't visible when using the localhost html-server and using the current version downloaded with the web client SDK (6.5.0-4602587).

I downloaded the latest version of the HTML fling (6.5.0 5097204), and replaced the previous html-client-sdk directory with it.

Using this version as the local html client it was then possible to access the administration panel, and retrieve the ClientID. Once this had been asserted, the development environment works as expected 🙂

0 Kudos
laurentsd
VMware Employee
VMware Employee

Thanks for the update.  I didn't realize you were using an older HTML Client which doesn't have the Administration tab, I'll clarify the documentation!

0 Kudos
wodge
Enthusiast
Enthusiast

Many thanks - yes, it is the current version that downloads with the vSphere Web Client SDK from the main page (to provide the local vsphere client virgo server) :

https://code.vmware.com/web/sdk/65/web-client

v6.5 [4602587]

Thanks

0 Kudos