Rancher registration URL domain replaces "http" with "ws" beyond first match #6957
Labels
area/agent
Issues that deal with the Rancher Agent
kind/bug
Issues that are defects reported by users or that we know have reached a real release
Milestone
Rancher Version:
v1.2.0
Docker Version:
1.12.3
OS and where are the hosts located? (cloud, bare metal, etc):
Cloud (AWS)
Setup Details:
HA
Environment Type:
K8S
Steps to Reproduce:
Set Rancher server URL for host registration (under settings) to
http://my-rancher-http-server.com
and add a host (using either a docker-machine driver or custom command).Results:
Upon launch of the agent, the agent appears to connect fine initially, but when attempting to connect over the websocket, it appears a string replacement is happening beyond the first match. For example,
http://my-rancher-http-server.com
turns intows://my-rancher-ws-server.com
.Agent logs:
Expected:
Only the protocol to change from
http://
tows://
.The text was updated successfully, but these errors were encountered: