reportportal / service-ui

UI service for ReportPortal
Apache License 2.0
58 stars 107 forks source link

Issues in spinning up report portal instance in OpenShift. #3426

Open X261959 opened 1 year ago

X261959 commented 1 year ago

Hello ReportPortal team, We are currently working on spinning up an RP portal instance in our environment in OpenShift.

The key difference between our setup and the default Ingress way is that we have an NGINX proxy server in front of our cluster. The location in the NGINX server dedicated to the RP instance is /rpportal, which proxies all the requests to OS Routes. Due to this /ureport location, all the routes in the frontend app should also have a /rpportal prefix.

We tried to define a "homepage" property in the package.json file, and manually specify this prefix in the routes inside of the /app/src/routes/routesMap.js file. Unfortunately it did not work - we keep getting HTTP codes 302 and 307 when we access the UI.

Can you let us know of the correct procedure to define a url prefix in the code?

AmsterGet commented 1 year ago

Hello @X261959 ! If I understand your question correctly, it looks the same as https://github.com/reportportal/kubernetes/issues/116. We've made a fix to the UI service to work correctly not under the root path, you can refer https://github.com/reportportal/service-ui/pull/3321 for details to make your own fix. It is planned to be released in 2023Q2-Q3.

Please let us know if this helps.

X261959 commented 1 year ago

redirect-error Hi @AmsterGet Unfortunately that didn't worked for us. Still seeing server redirect error for our api-calls. I have attached screenshot here for your reference. please let us know if you need any further information over it from our end.

X261959 commented 1 year ago

Hi @AmsterGet We haven't heard back from you ? Could you please suggest something here over this.

HardNorth commented 1 year ago

@X261959 What is your service-index version? You should use the latest one and provide RESOURCE_PATH variable to it. Basically all the necessary variables are listed in this PR: https://github.com/reportportal/kubernetes/pull/281

X261959 commented 1 year ago

@HardNorth I ain't sure how much this will be of help to us at this point, as we are facing issues with our routes in open-shift. Could you please suggest something from routes perspective ?

HardNorth commented 1 year ago

@X261959 I don't have working OpenShift example right now, so I can't suggest here anything, sorry.