Skip to content
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

Networks don't populate if no cluster is created #423

Closed
mdharamadas1 opened this issue Apr 5, 2018 · 17 comments · Fixed by #440
Closed

Networks don't populate if no cluster is created #423

mdharamadas1 opened this issue Apr 5, 2018 · 17 comments · Fixed by #440
Assignees
Labels
component/plugin/h5c The plugin for the vSphere HTML5 client kind/defect Behavior that is inconsistent with what's intended priority/p2 team/lifecycle

Comments

@mdharamadas1
Copy link
Contributor

mdharamadas1 commented Apr 5, 2018

In the Configure Networks page of the Create VCH wizard, if vCenter Server setup does not include cluster for its hosts (only standalone hosts) and having distributed port groups, the network drop-downs does not populate and you cannot continue with the deployment of the VCH.

@mdharamadas1 mdharamadas1 added kind/defect Behavior that is inconsistent with what's intended priority/p2 labels Apr 5, 2018
@mdharamadas1 mdharamadas1 changed the title Networks don't populate if one DVS is used Networks don't populate if common DVS is used Apr 5, 2018
@mdharamadas1 mdharamadas1 added component/plugin/h5c The plugin for the vSphere HTML5 client team/lifecycle labels Apr 5, 2018
@AngieCris AngieCris added the status/needs-estimation The issue needs to be estimated by the team label Apr 5, 2018
@AngieCris
Copy link
Contributor

@mdharamadas1 Can you provide the version you're using? And also screenshots if available
Thanks!

@mdharamadas1
Copy link
Contributor Author

mdharamadas1 commented Apr 5, 2018

@AngieCris

https://storage.googleapis.com/vic-product-ova-builds/vic-dev-v1.4.0-dev-4372-3f7dc144.ova

appliance=v1.4.0-dev-4372-3f7dc144
harbor=harbor-offline-installer-latest.tgz
engine=vic_17999.tar.gz
admiral=vmware/admiral:vic_dev d26cc183b0c1
vic-machine-server=gcr.io/eminent-nation-87317/vic-machine-server:dev 187385421223

@mdharamadas1 mdharamadas1 changed the title Networks don't populate if common DVS is used Networks don't populate if no cluster is created Apr 5, 2018
@mdharamadas1
Copy link
Contributor Author

Updated the issue with what I found after some investigation on the testbed.

@mdharamadas1
Copy link
Contributor Author

VC setup:

screen shot 2018-04-05 at 12 45 18 pm

@jak-atx
Copy link
Contributor

jak-atx commented Apr 5, 2018

@mdharamadas1 it works if a cluster is created for the hosts in this set up?

@AngieCris
Copy link
Contributor

@jak-atx it looks from the screenshot that there's no cluster only standalone ESX? I remember that we don't want users to deploy VCHs to standalone ESX?

@jak-atx
Copy link
Contributor

jak-atx commented Apr 5, 2018

@AngieCris I'm not sure, can we confirm this is a restriction? is this documented anywhere?

@AngieCris
Copy link
Contributor

AngieCris commented Apr 5, 2018

@jak-atx From the doc:

NOTE: You cannot deploy a VCH to a specific host in a cluster. You deploy the VCH to the cluster, and DRS manages the placement of the VCH on a host.

And I think we disabled deploying to standalone ESX host on UI: #256

@mdharamadas1 did you select on a cluster in the wizard to deploy VCH? From the screenshot you provided there's no cluster

@mdharamadas1
Copy link
Contributor Author

@jak-atx I haven't tried on the same setup but I have another testbed having all hosts in a cluster with NFS datastore and was able to create VCH there.

@AngieCris Yes, I had to select a host on UI to proceed. But these are standalone hosts without a cluster. Please see screenshot below.

screen shot 2018-04-05 at 2 12 04 pm

@AngieCris
Copy link
Contributor

@mdharamadas1 So you don't have a cluster set up in your environment? Does the UI allow you to select a standalone host without a cluster?

@mdharamadas1
Copy link
Contributor Author

@AngieCris Yes, I tried both scenarios on UI as follows:
VC with cluster for hosts: Cannot select individual hosts as Compute resource
VC without cluster and with standalone hosts: Have to select individual host as Compute resource

@AngieCris
Copy link
Contributor

@mdharamadas1 In which case did you see the failure?

@mdharamadas1
Copy link
Contributor Author

@AngieCris This issue is for 2nd case, VC without cluster and with standalone hosts

@andrewtchin
Copy link
Contributor

@mdubya66 is p2 good for this one?
workaround is to put single host in a cluster

@andrewtchin andrewtchin removed the status/needs-estimation The issue needs to be estimated by the team label Apr 5, 2018
@jak-atx jak-atx added status/needs-estimation The issue needs to be estimated by the team and removed status/needs-estimation The issue needs to be estimated by the team labels Apr 11, 2018
@jak-atx jak-atx added this to the Sprint 30 Lifecycle milestone Apr 11, 2018
@javierfz1980
Copy link
Contributor

I've been trying to reproduce the issue with no success...

I have two different environments with only hosts (no clusters) and I'm able to see the portgroups during vch creation wizard if the host is added to the VDS.

environment 1:
https://10.162.26.118
appliance=vic-v1.3.1-3409-132fb13d.ova
engine=vic_v1.3.1.tar.gz

environment 2 (this one has the ova and ui versions reported on the description):
https://10.193.61.101
appliance=v1.4.0-dev-4372-3f7dc144
engine=vic_17999.tar.gz

screenshots belongs only to environment 2:

screen shot 2018-04-17 at 14 26 32
screen shot 2018-04-17 at 14 26 51
screen shot 2018-04-17 at 14 28 44
screen shot 2018-04-17 at 14 29 24

@javierfz1980
Copy link
Contributor

Finally I've been able to reproduce the issue on https://10.162.37.131 (vic-ui plugin has been disable since I'm connected to the environment with my local virgo)

The issue is not related at all with the presence or not of a cluster on the environment. In this environment I have created a Cluster and it fails anyway for host named '10.161.75.158 (reboot required)'

The issue is caused because for some reason, the esx hosts that are deployed contains some extra label on the name in addition to the host ip (added by the vc)...in this case '(reboot required)' -> 'xxx.xxx.xxx.xxx (reboot required)'

This is causing the failing on network step of the wizard.

The network step retrieves all the networks with the associated hosts/clusters and tries to match them with the selected host/cluster resource. Since the selected resource on the previous step of the wizard contains the extra string, and the hosts retrieved by the network request doesn't contains that string there are no match and the networks are not populated.

I've tested a quick fix in order to populate the networks even for hosts with additional status string on the name, but the creation fails at the end anyway... (as you can see on screenshots)

We can also try to change the information that we are retrieving when we select a host/cluster resource on the "compute capacity" step of the wizard in order to retrieve an objectRef or objectId instead of the resource name, but the main question here if we should do that ?

Should we allow to select/create a vch on a host which status is '(reboot required)' ?

Feedback is required about how to proceed in this case...

compute-resource

networks-fixed

creation-fail

@javierfz1980
Copy link
Contributor

I've created a fix that allows us to get the networks and create the VCH even when the host status is '(reboot required)'

I'll create the PR to have it ready if we want to proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/plugin/h5c The plugin for the vSphere HTML5 client kind/defect Behavior that is inconsistent with what's intended priority/p2 team/lifecycle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants