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

VCH creation using Client failing with " parsing vch body from "" failed, because json: cannot unmarshal object into Go struct field Network.static of type models.CIDR" #606

Closed
KeithRichardLee opened this issue Sep 18, 2018 · 8 comments
Assignees
Labels
area/networking Screens related to display and selection of networking-related settings component/plugin/h5c The plugin for the vSphere HTML5 client severity/2-serious High usability or functional impact. Often has no workaround. source/customer Reported by a customer, directly or via an intermediary

Comments

@KeithRichardLee
Copy link

KeithRichardLee commented Sep 18, 2018

VIC-UI version:
v1.4.1.1262

Platform details:
Windows Server 2012 R2

Browser details:
FireFox 60.2 ESR

Additional details:
Fresh install of VIC

Steps to reproduce:
Create a VCH in the vSphere Client using following parameters taken from the vic-machine command

./vic-machine-linux create --name VCH_01 --compute-resource /SA-Datacenter/host/SA-Compute --image-store SA-Shared-01-Remote/VCH_01_IDS --base-image-size 8GB --volume-store SA-Shared-01-Remote/VCH_01_VDS:default --bridge-network pg-Bridge --bridge-network-range 172.16.0.0/12 --public-network pg-Public --public-network-ip 192.168.0.97/24 --public-network-gateway 192.168.0.10 --dns-server 172.20.10.10 --client-network pg-Clients --client-network-ip 10.2.10.97/24 --client-network-gateway 172.20.10.10/24:10.2.10.10 --management-network pg-SA-Management --management-network-ip 172.20.10.97/24 --management-network-gateway 172.20.10.10/24:172.20.10.10 --container-network pg-Containers:container-nw --container-network-ip-range pg-Containers:10.1.10.100-10.1.10.200 --container-network-gateway pg-Containers:10.1.10.10/24 --container-network-dns pg-Containers:10.1.10.10 --container-network-firewall pg-Containers:published --tls-cname VCH_01 --certificate-key-size 2048 --no-tlsverify --user Administrator@VSPHERE.LOCAL --thumbprint AE:22:9A:DC:83:01:A3:27:F6:31:16:44:99:F9:C3:60:66:19:56:25 --target sa-vcsa-01.vclass.local/SA-Datacenter --registry-ca ca.crt --ops-user administrator@vsphere.local

Note: the UI does not create --container-network-gateway in CIDR format. I have manually added /24 to it. I will open a separate issue for this.

Actual behavior:
Following error thrown
parsing vch body from "" failed, because json: cannot unmarshal object into Go struct field Network.static of type models.CIDR

screen shot 2018-09-18 at 11 07 02

Expected behavior:
Successfully creates VCH or provide a more meaningful answer if there is a legitimate error.

Logs:
No entries in vsphere_client_virgo.log at time of attempted creation.

Additional Info:
Running above vic-machine command, which was generated by the wizard (after /24 is added to --container-network-gateway), is successful.

@KeithRichardLee
Copy link
Author

Issue exists in v1.4.3 also

@renmaosheng
Copy link
Contributor

Hi Keith,
Thanks for reporting the issue.
Meina,
could you please take a look? thanks

@zhoumeina
Copy link
Contributor

I will take care of this.

@patschi
Copy link

patschi commented Nov 11, 2018

I've just set up a fresh VIC 1.4.4 and experienced same issue. So I'm right that this fix haven't been released with 1.4.4 yet? (Just to be exact: vic-v1.4.4-6375-0a6da3d4.ova)

@zjs zjs added source/customer Reported by a customer, directly or via an intermediary area/networking Screens related to display and selection of networking-related settings component/plugin/flex The plugin for the vSphere Flex client component/plugin/h5c The plugin for the vSphere HTML5 client severity/2-serious High usability or functional impact. Often has no workaround. and removed component/plugin/flex The plugin for the vSphere Flex client labels Dec 10, 2018
@zhoumeina
Copy link
Contributor

@patschi , container-network-gateway already changed to CIDR format in release 1.4.4. Please refer this pr: https://github.com/vmware/vic-ui/pull/619/files

@farflungfish
Copy link

Hello I have experienced this same bug today on version vic-v1.4.4-6375-0a6da3d4.ova

Is there anything I can provide to you which you can use to replicate the problem?

@dukesrg
Copy link

dukesrg commented Jan 18, 2019

Problem still exists with 1.5.0.1462 official relese plugin
upd: The actual error "processing vch body..." is from a POST response from the engine.
@zhoumeina have you checked the vic-engine part is compatible with #619 ?

@dukesrg
Copy link

dukesrg commented Jan 18, 2019

upd2: This time looks like Managegement IP is bugged
upd3: Both management and client network are affected. No difference if routing destinations was filled or not. So must be IP or Gateway problem. Checked both vic-ui and vic master repos and everything looks just fine IMO.

OK #650 should fix it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/networking Screens related to display and selection of networking-related settings component/plugin/h5c The plugin for the vSphere HTML5 client severity/2-serious High usability or functional impact. Often has no workaround. source/customer Reported by a customer, directly or via an intermediary
Projects
None yet
Development

No branches or pull requests

7 participants