2019-12-29 05:22:45 UTC - chetanm: I think in most cases the port is 8080 
within container. For Mac the port is exported for controller as 10001 
<https://github.com/apache/openwhisk/blob/8eb922f568d7843cdb1068252d29ba5723b30283/ansible/group_vars/all#L87|https://github.com/apache/openwhisk/blob/8eb922f568d7843cdb1068252d29ba5723b30283/ansible/group_vars/all#L87>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577596965080900?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 05:22:56 UTC - chetanm: So that one can connect to it from outside
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577596976081100?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 05:23:24 UTC - chetanm: So if your setup is linux based then just 
the ip with 8080 should work
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577597004081300?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 16:30:09 UTC - Nima Mahmoudi: @chetanm
Thanks a lot for getting back to me. I checked and in my linux setting the port 
8080 is also exported as 10001. The issue is that when I try it, it gives me an 
empty response:

```ubuntu@kube1:~$ curl 127.0.0.1:10001/metrics -vvv
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 10001 (#0)
&gt; GET /metrics HTTP/1.1
&gt; Host: 127.0.0.1:10001
&gt; User-Agent: curl/7.58.0
&gt; Accept: */*
&gt;
* Empty reply from server
* Connection #0 to host 127.0.0.1 left intact
curl: (52) Empty reply from server```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577637009081500?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 16:32:45 UTC - Nima Mahmoudi: Am I testing it wrong?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577637165081800?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:06:15 UTC - chetanm: By default Prometheus endpoint is not 
enabled. Did you did any config change to enable it?
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577642775082000?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:06:46 UTC - Nima Mahmoudi: Yes, I did as Neeraj mentioned above.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577642806082200?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:15:17 UTC - chetanm: Can you push your changed to some git repo 
which we can see and confirm if the changes are as needed
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577643317082400?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:16:01 UTC - Nima Mahmoudi: 
<https://github.com/nimamahmoudi/openwhisk>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577643361082600?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:16:25 UTC - Nima Mahmoudi: 
<https://github.com/nimamahmoudi/openwhisk/commit/88fb9d58956182d65ac869fc9e5d1c72bdc44182>
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577643385082800?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:16:42 UTC - Nima Mahmoudi: I changed everything I thought was 
relevant, but still no success.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577643402083000?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:18:42 UTC - chetanm: Per default controller starts in `https` 
mode so you would need to specify the protocol. It uses a self signed cert so 
connect with `-k`
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577643522083200?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 18:19:07 UTC - Nima Mahmoudi: Oh god, I will try it out.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577643547083400?thread_ts=1577300028.062300&cid=C3TPCAQG1
----
2019-12-29 22:10:58 UTC - Nima Mahmoudi: @chetanm Thanks for your help. Do you 
know which `cert` I should use? Currently I am seeing this:

```* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Request CERT (13):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Certificate (11):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS alert, Server hello (2):
* error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate
* stopped the pause stream!
* Closing connection 0
curl: (35) error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad 
certificate```
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1577657458083600?thread_ts=1577300028.062300&cid=C3TPCAQG1
----

Reply via email to