Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Job log link behavior change #5252

Closed
JosephKang opened this issue Jan 14, 2021 · 1 comment · Fixed by #5271
Closed

Job log link behavior change #5252

JosephKang opened this issue Jan 14, 2021 · 1 comment · Fixed by #5271
Assignees

Comments

@JosephKang
Copy link

Organization Name:
Advantech

Short summary about the issue/question:
We use nginx to redirect incoming openpai webportal request from 443 to 80 due to some firewall issue. However, some job log direct link behavior is changed between openpai v1.0.1 and v1.4.1 and the change will prevent user to browser the correct log through browser:

  1. The job link will change from https to http. If the deployed master is inside firewall then the link is unreachable. Could we keep using https request if the original request is https ?
  2. The link domain name will be changed to IP directly. If the IP is private IP then the link is unusable. Could we use domain name in log browse request? (Please see the bottom-left link in the Unreachab v1.4.1 log link.)
  • Reachable v1.0.1 log link
    v101_log_link

  • Unreachab v1.4.1 log link
    v141_log_link

Brief what process you are following:
Check the log link in deployed openpai V1.0.1 and V1.4.1

How to reproduce it:
Check the log link in deployed openpai V1.0.1 and V1.4.1

OpenPAI Environment:

  • OpenPAI version: v1.0.1 and v1.4.1
@Binyang2014
Copy link
Contributor

@JosephKang This caused by you redirect the request from 443 to 80. PAI treat your request as HTTP request so the log URL will use http protocol.
One workaround is change this line to your desired URL:

- name: WEBPORTAL_URL
{%- if "ssl" in cluster_cfg["pylon"] and cluster_cfg["pylon"]["ssl"] %}
value: "{{ cluster_cfg['pylon']['uri-https']}}"
{%- else %}
value: "{{ cluster_cfg['pylon']['uri']}}"
{%- endif %}

Such as

- name: WEBPORTAL_URL 
  value: "https://domain-name"

Then restart rest-server.

Actually, it's a new deploy method which use external gateway instead of pylon. And all PAI service use http protocol. We will consider to support this use case.

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

Successfully merging a pull request may close this issue.

2 participants