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

[🐛 Bug]: OS incorrectly shows as Windows in session page #2595

Open
isc-aray opened this issue Jan 17, 2025 · 2 comments
Open

[🐛 Bug]: OS incorrectly shows as Windows in session page #2595

isc-aray opened this issue Jan 17, 2025 · 2 comments

Comments

@isc-aray
Copy link

What happened?

We just upgraded from Helm chart 0.37.4 to 0.38.4, and with the new version, Selenium now seems to think that our autoscaling chrome node containers are running Windows, when they are in fact running Linux. For us, this just amounts to a visual bug where the sessions UI incorrectly shows the Windows logo instead of Tux, since nobody at our organization has capabilities requesting a specific platform, but I guess it could cause bigger problems for anyone who's actually creating capabilities that need specific operating systems.

Note for security reasons I cannot provide the full YAML configuration, but I have included the relevant bits related to the autoscaler and chromeNode.

Command used to start Selenium Grid with Docker (or Kubernetes)

...
autoscaling:
  enabled: true
  scalingType: job
  scalingStrategy:
    strategy: default

chromeNode:
  enabled: true
  terminationGracePeriodSeconds: 3600
  scaledOptions:
    maxReplicaCount: 50
    minReplicaCount: 0
  extraEnvironmentVariables:
    - name: SE_VNC_NO_PASSWORD
      value: "true"
    - name: SE_VNC_VIEW_ONLY
      value: "true"
...

Relevant log output

No relevant logs as far as I know

Operating System

Kubernetes

Docker Selenium version (image tag)

4.27.0 (revision d6e718d)

Selenium Grid chart version (chart version)

0.38.4

Copy link

@isc-aray, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@VietND96
Copy link
Member

Don't worry, it will be fixed in Grid core 4.28.0 via SeleniumHQ/selenium#15036
To get the right Linux icon on Grid UI, you can explicit provide the platformName in each node config. For example

    firefoxNode:
      resources:
        limits:
          memory: "2Gi"
          cpu: "1"
      hpa:
        platformName: "Linux"

With that, ensure from code automation that you also set capability platformName for request. For example in Python

ChromeOptions chromeOptions = new ChromeOptions();
chromeOptions.setPlatformName("Linux")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants