SUSE / stratos

SUSE Stratos: Web-based Console UI for Cloud Foundry and Kubernetes
Apache License 2.0
15 stars 12 forks source link

Bug while connecting the caasp API as new endpoint #172

Open nwmac opened 5 years ago

nwmac commented 5 years ago

Firefox issue:

I have installed the latest CAP 1.4 (Eirini option) with stratos on a CaaSPV3 cluster I try to declare the CaaSP endpoint in the Stratos 2.4 GUI


I run in mozilla/SLES 12 for this case.


When trying to connect the GUI generates an error in the console and does not perform the connection :


ERROR TypeError: t.srcElement is undefined Stack trace: cvFT/o</t.prototype.onNativeInputFileSelect@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:2524822 I/<@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:177050 handleEvent@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:744663 handleEvent@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:766509 Bi@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:714583 r/<@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:720722 F/<@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:2303951 0TWp/</</u</e.prototype.invokeTask@https://api.capjmlzone.com:8443/polyfills.ad54e28ef9f3b68014d2.js:1:8048 onInvokeTask@https://api.capjmlzone.com:8443/main.10a031e5cf86acf32de9.js:1:682661 0TWp/</</u</e.prototype.invokeTask@https://api.capjmlzone.com:8443/polyfills.ad54e28ef9f3b68014d2.js:1:7961 0TWp/</</a</t.prototype.runTask@https://api.capjmlzone.com:8443/polyfills.ad54e28ef9f3b68014d2.js:1:3222 0TWp/</</c</t.invokeTask@https://api.capjmlzone.com:8443/polyfills.ad54e28ef9f3b68014d2.js:1:9135 y@https://api.capjmlzone.com:8443/polyfills.ad54e28ef9f3b68014d2.js:1:22586 @https://api.capjmlzone.com:8443/polyfills.ad54e28ef9f3b68014d2.js:1:22818


I have tried with 2 kubeconfig : the standard one on the machine and a flatten one but get similar error.

Thx for your help

nwmac commented 5 years ago

This appears to be a bug that affects use in FireFox - Victor also encountered this.

gaktive commented 5 years ago

Looks like Chromium also has issues with one of the CaaSP 4 betas (also from Bugzilla). They "deployed metrics and can connect to this endpoint. But while connecting to the CaaSP API ENDPOINT, [they] get a 'Could not connect to the endpoint' with chromium."

They provided a flatten kubeconfig with all elements and the URL, using the same URL as the one in the kubeconfig for the stratos field. The chromium console shows messages similar to "polyfills... POST ... 400 (Bad Request)"

gaktive commented 5 years ago

Let me know if that previous comment requires a separate ticket from this.