-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VCH Wizard hangs on Network section #504
Comments
Yep, i pulled 1.4.0 from the VMware official download page an hour ago and performed a greenfield install. I have the same issue when deploying a VCH through the wizard. My environment has one cluster (2 x 6.0 ESXi hosts), no standalone hosts, NSX 6.3.1, 1 x DvSwitch containing 4 NSX logical switches, 1 x standard port group. VIC: 1.4.0.1109 |
This seems to be a known issue... @pdaigle has found the same issue on his environment last week. Patrick's words, and same log (from viclifecylce channel): "Hitting a bug with vic-ui in my lab. It starts up fine but when I get to the “Configure Networks” step, it just hangs (blue spinning wheel)." "TypeError: Cannot read property 'dvsHosts' of null As a workaround he mentioned that Upgrading to 6.5.0.20000 seems to fix the issue. We will have to figure out what is wrong anyway… I’ll take a look as soon as I can. |
Please provide VC and ESXs build numbers... Do we have a working environment were I can reproduce the error ? Thanks. |
I updated my vCenter to 6.5.0.5700 Build 7119070 (6.5.0f) and left my hosts at 6.0.0, build 3620759 (my hosts aren't supported for 6.5). Still the same issue. |
Thanks for the info Andy, I’ll take a look with those vc builds and I’ll let you know my findings. |
I've been able to reproduce the issue with following environment configuration (vic 1.4.0):
However everything is working fine on my local environment configuration (vic 1.4.0):
The problem is in this request (introduced on 19/01/2018): vic-ui/h5c/vic/src/vic-webapp/src/app/create-vch-wizard/create-vch-wizard.service.ts Line 297 in a4f1012
'ui/data/properties/urn:vmomi:VmwareDistributedVirtualSwitch:dvs-22:2bf92a7f-bf5b-46dd-9dd1-d9d800296129?properties=dvs:dvsHostsData' The above request is returning null on vc 6.5 f (EP3-2) environment: The same request is returning the expected data on vc 6.5 U1e (EP5) environment: Our doc states 6.5.0d or later (but I'm not sure if this is correct based on above information) Updating VC to a newer version and reinstalling plugin should fix the problem. Version 6.5 U1e (EP5) will fix the problem for sure, and maybe an earlier one too. |
How can I map the URIs from #504 (comment) to the corresponding vSphere API call? Also, do we have any request/response logging for our outgoing API calls? Being able to explain how to reproduce this outside of VIC would be helpful when talking to other teams. I'd like a crisp example of the behavior that changed between the vSphere versions to track down when that change was made (so we can clearly communicate to users when we will and won't see this issue) and what workarounds might exist. |
@javierfz1980 can you please list the corresponding network call(s)? I don't believe we are logging these anywhere currently. |
@zjs @jak-atx vic-ui/h5c/vic/src/vic-webapp/src/app/create-vch-wizard/create-vch-wizard.service.ts Line 297 in a4f1012
And the call is made in the context of the execution of the following service method: vic-ui/h5c/vic/src/vic-webapp/src/app/create-vch-wizard/create-vch-wizard.service.ts Line 282 in a4f1012
|
vic-ui/h5c/vic/src/vic-webapp/src/app/create-vch-wizard/create-vch-wizard.service.ts Line 305 in a4f1012
Sometimes, the VDS query API returns null value for field of dvsHostsData['dvs:dvsHostsData'], in that situation, it will throw Type Error if you try to fetch the inner field of dvsHostsData['dvs:dvsHostsData']['dvsHosts']; we need add null value check logic in line 305: |
@renmaosheng The real issue is not the null or {} return, we can handle that... the real issue is that the endopint is returning null or {} when it should return the connwcted hosts list. |
if it is null, that means there is no ESXi hosts connected to that switch, we can't even put the vch VM on the portgroup of that switch as there is no compute resources, we should filter out the portgroup in UI, not shown them. |
I know tha null or {} means there are no hosts connected to the vds, and that is the problem... because we know that there are host connected to that vds. the response shouldn’t be null or {}. It should be the list of host. As I said at the beginning ... I’m quering the same environment with the same vds connected to the same hosts from two different UI client versions. One UI client is retrieving the list of connected host as you can see in the screens (so the host are there and they are connected) and the other one connected to the same vc containing the same vds is not retrieving the list of hosts... NOTE: That said, I agree that we should add a null check to prevent cases were there are nos host connected to the vds. But it won’t fix this, because we know there are host connected to the vds. |
I've created a brand new environment were issue is reproducible: Here you have some screenshots of the issue: vch wizard resource selection: As you can see in the 1st screenshot, host 10.192.218.83 is connected to the vds and the response shouldn’t be null or {}. It should be a list containing host 10.192.218.83. |
Thanks, @javierfz1980. To investigate possible changes between the underlying infrastructure versions, it would be helpful to track down what is happening within the vic-ui/h5c/vic-service/src/main/java/com/vmware/vic/mvc/DataAccessController.java Lines 77 to 112 in e8e3267
Once I can express the root cause of the issue without referring to our code, I can reach out to the people responsible for the code that seems to be misbehaving and ask for their help tracking down what's happening and whether there's a way we could workaround the issue 🙂 |
@zjs thanks for your answer ! @jak-atx please correct me if I'm wrong, but our vic-service pointed by @zjs in the previous comment is handling requests made at vic-ui/h5c/vic-service/src/main/java/com/vmware/vic/mvc/DataAccessController.java Lines 77 to 112 in e8e3267
The failing vds hosts request (mentioned by me on the previous comments/screenshots) is trying to fetch data from |
Is this the only place we do this, or is this a common pattern within our UI code? I think we need to update any code that's calling |
Yes, you are totally right @zjs . The plan on this is to start by this issue, in order to fix it ASAP. Then we will create an epic to make the necessary changes request by request. I believe that I will have this fixed in the next couple of days. I'll let you know. |
I recently upgrade my VIC environment to version 1.4, including vSphere plugin.
When trying to create a new VCH the wizard hangs on the Network section with an endless spinning.
VIC: 1.4.0.1149
vCenter Appliance: 6.5.0.5300
Browser: Chrome 61.0.3163.100
The environment has 2 cluster, management and workload, both of them are using vSphere Distributed switches with Port Groups and Logical Switches.
Got the followin error fro Chrome Dev Tools:
VM4731 1.bc50ae8091d8d0c74ed0.chunk.js:1 TypeError: Cannot read property 'dvsHosts' of null
at VM4714 0.02e8893b931a1b42c4d5.chunk.js:1
at Array.map ()
at e.project (VM4714 0.02e8893b931a1b42c4d5.chunk.js:1)
at e._next (VM4704 main.1d9fb411ca52796f3c7e.bundle.js:1)
at e.E9/g.e.next (VM4704 main.1d9fb411ca52796f3c7e.bundle.js:1)
at e.checkIterators (VM4704 main.1d9fb411ca52796f3c7e.bundle.js:1)
at e.notifyNext (VM4704 main.1d9fb411ca52796f3c7e.bundle.js:1)
at e._next (VM4704 main.1d9fb411ca52796f3c7e.bundle.js:1)
at e.E9/g.e.next (VM4704 main.1d9fb411ca52796f3c7e.bundle.js:1)
at e._next (VM4704 main.1d9fb411ca52796f3c7e.bundle.js:1)
The text was updated successfully, but these errors were encountered: