In attempt to deploy the quickstarts example onto Fabric8 (running on top of OSEv3), I was able to remotely deploy the quickstart-karaf-camel-amq, quickstart-karaf-camellog container using remote CLI (i.e. mvn fabric8:json, mvn fabric8:apply).
*** This fabric8's quickstarts version 2.2.5 ***
The containers are started successfully, captured as following screenshot .
While trying to connect to the containers via jolokia, by clicking on the 'Connect' icon of each container, the 401 Unauthorized error occurs, and a blank page showed for both Camel, AMQ containers
Part of the requests captured with error below
Remote Address:
Request URL:
Request Method:
POST
Status Code:
401 Unauthorized
- Request Headersview source
Accept:
application/json, text/javascript, */*; q=0.01
Accept-Encoding:
gzip, deflate
Accept-Language:
en-US,en;q=0.8
Authorization:
Bearer KcZqR64XLA1oEL0-LEi8_StMCe2BHbOL2Z11La6VXns
Connection:
keep-alive
Content-Length:
2
Content-Type:
text/json
Host:
fabric8.myapp.mycloud:8443
Origin:
Referer:
User-Agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.95 Safari/537.36
- Query String Parametersview sourceview URL encoded
maxDepth:
7
maxCollectionSize:
500
ignoreErrors:
true
canonicalNaming:
false
- Request Payloadview source
It apparently that there's no credentials sent over to jolokia agent for authentication/authorization. I'm using the admin/admin user login to OSEv3 (i.e. https://rhel7ose1.mycloud:8843)... so, it's should be the same user access Fabric8 (
http://fabric8.myapp.mycloud). But I couldn't figure out a way to make this authentication/authorization working with the above deployed quickstarts template.
Could anyone shed some lights on this issue?
Thank you in advance.
Regards,
-An