-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
🐛 Bug Report
I have a Selenium Hub hosted on Openshift and exposed via a route, meaning that it is accessible via a hostname.
When I attempt to launch and register a node on a different machine, I find that I am unable to register the nodes successfully if we define the hostname instead of an <ip>:<port> in the nodeConfig.json.
It seems like the selenium-standalone-server-3.141.59.jar file requires a direct connection of ip_address:4444 and cannot support hostname as a value.
The stacktrace:
Registering the node to the hub: http://myhostname:-1/grid/register
Couldn't register this node: Error sending the registration request: Unable to parse URL: http://myhostname:-1/grid/registerhttp://myhostname:-1/grid/register
Couldn't register this node: The hub is down or not responding: Unable to parse URL: http://myhostname:-1/grid/registerhttp://myhostname:-1/grid/api/proxyhttp://myhostname:-1/grid/registerhttp://myhostname:-1/grid/api/proxy?http://<some ip address>:80
I am using the node config defined here:
https://github.com/SeleniumHQ/selenium/blob/selenium-3.141.59/java/server/src/org/openqa/grid/common/defaults/DefaultNodeWebDriver.json
To Reproduce
Detailed steps to reproduce the behavior:
Step 1: Launch a Selenium Hub on Openshift, and expose this via a Route
Step 2: Launch a Selenium node on VDI
Step 3: In the nodeConfig.json file, define the "hub" to use the DNS instead of a port, with the syntax as http://myhostname
Expected behavior
The nodes should successfully connect to the hub even if hostname instead of an ip address is defined
Test script or set of commands reproducing this issue
I am using the nodeConfig defined here, and replacing the value of hub with my hostname (without port):
https://github.com/SeleniumHQ/selenium/blob/selenium-3.141.59/java/server/src/org/openqa/grid/common/defaults/DefaultNodeWebDriver.json
Environment
OS: Openshift (Hub) / Windows 10 (Node)
Browser: Google Chrome
Browser version: Version 80
Browser Driver version: 80.0.3987.106
Language Bindings version: OpenJDK11
Selenium Grid version (if applicable): 3.141.59