-
Notifications
You must be signed in to change notification settings - Fork 92
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
Redirects to IP address when domain is used in address bar #1215
Comments
This seems to be a problem with the fileserver at https://github.com/vmware/vic-product/blob/master/installer/fileserver/tasks.go#L94. When @gigawhitlocks started the ova without a fqdn, the psc configs contained redirect IPs because the components were running on the appliance ip, not a hostname. I've confirmed the Management portal is now running at https://vch.theknown.net:8282 after deleting the old psc files before re-initializing. |
The appropriate psc configuration is also present:
|
The root problem here is that the fileserver would not recreate psc configs after an re-initialization. Fixed in pr #1266. |
Ideally we should be using the FQDN/IP that was used in the request to access the page, not necessarily the one that VM is aware of. This will allow use of NAT and virtual server configurations. |
Make a variety of changes to the systemd configuration of the vic-product appliance, including: - Improved serviceability and linear boot dependencies. - A new custom boot target and new target for psc config. - Adds a psc reconfiguration target accommodating changes in system configuration over time. - Improved adherence to systemd best practices. Fixes #1215, #1265, and #1267.
@gigawhitlocks commented on Fri Dec 01 2017
I have installed Admiral through the VIC 1.3 RC2 OVA and provided custom certificates that are assigned to
vch.theknown.net
, a domain that I control. This domain resolves to the private IP on which I have installed the OVA. When I click on the admin portal, I'm redirected instead tohttps://private_ip/
and, thus, receive a certificate warning.There should be a way for me to change the base url of links referencing Admiral to use the domain name being accessed if that behavior cannot be detected, and in any case, I should be able to access Admiral at vch.theknown.net:8282 if I specify that in my browser without being redirected to IP_ADDRESS:8282
@gigawhitlocks commented on Fri Dec 01 2017
Also if I try to manually change the IP address to the domain name, I get this glorious response:
Uh, lol, no. That's not good.
@andrewtchin commented on Fri Dec 01 2017
After Ian set the FQDN in the vApp settings the config was updated but after the SSO login, he was redirected back to the IP.
Based on this https://github.com/vmware/vic-product/pull/1066/files
We should be setting the hostname everywhere except for the below, but I'm not sure what that is used for:
Any ideas on if we need to set something else @sergiosagu @morris-jason ?
@sergiosagu commented on Mon Dec 04 2017
@andrewtchin - I think that the problem comes from the value that the parameter
--publicUri
may get within the start script: https://github.com/vmware/vic-product/blob/master/installer/build/scripts/admiral/start_admiral.shThat parameter should be the FQDN specified during the OVA installation, if any.
You can leave this issue in this repo if you want, but it's more an OVA install/config issue.
@morris-jason commented on Mon Dec 04 2017
@sergiosagu the publicUrl is being set as expected - (this is a naming problem. We call it OVA_VM_IP but it actually is a hostname if available, set by configure_admiral.)
The command being run by systemd is:
Disregard obvious issues of spacing and quoting - I edited the command to make it look better for github output.
@morris-jason commented on Mon Dec 04 2017
In fact, the problem seems to be:
The text was updated successfully, but these errors were encountered: