2020-03-09 03:01:52 UTC - Jiang PengCheng: by looking into the `openwhisk-deploy-kube` repo, I think you need to define these arguments in `_helpers.tpl` and use it in `invoker-pod.yaml` and `controler-pod.yaml` , like other arguments, such as the argument `CONFIG_whisk_kafka_replicationFactor` , it is located in the `ansible/roles/controller/tasks/deploy.yml` of the `openwhisk` repo and it also shows up in `openwhisk-deploy-kube` repo, you can search it in `openwhisk-deploy-kube` to see how it is defined and passed to controllers and invokers https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583722912231500?thread_ts=1583435988.200500&cid=C3TPCAQG1 ---- 2020-03-09 07:15:04 UTC - Ali Shahidi: @Rodric Rabbah I want to use Post request in python and it needs the username and password and not authentication key. I use it this way but it does not work. This is my code: ```url = '<https://localhost/api/v1/namespaces/_/actions/hello>' myobj = {'blocking': 'true', 'result':'false'}
x = <http://requests.post|requests.post>(url, data = myobj, verify=False, headers = {"Auth": '23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP'})``` But I got this output from x: InsecureRequestWarning) <Response [401]> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583738104231800?thread_ts=1582966242.092000&cid=C3TPCAQG1 ---- 2020-03-09 08:30:30 UTC - chetanm: Earlier kamon system-metrics used to load sigar lib for collecting OS level metrics. We disabled that by excluding it as such stats should be collected at host level via some other monitoring system <https://github.com/apache/openwhisk/blob/master/common/scala/build.gradle#L67> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742630232200?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 08:30:58 UTC - chetanm: Looks like now it has switched to <https://github.com/oshi/oshi> lib so . we may need to exclude that now https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742658232400?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 08:31:26 UTC - chetanm: cc @Markus Thömmes https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742686232600?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 08:34:30 UTC - Markus Thömmes: Yeah sounds sensible. How come this went through CI just fine? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742870232800?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 08:35:05 UTC - chetanm: I think it does not cause any funtional issue … just exception stack due to failure in loading library https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742905233000?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 08:35:19 UTC - Markus Thömmes: gotcha https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742919233200?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 08:35:21 UTC - chetanm: we may need a test to just assert startup for any warning or error level logging https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742921233400?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 08:35:54 UTC - chetanm: but then this needs to be done for various permutations of featureset :neutral_face: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583742954233600?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 11:20:09 UTC - Rekha: Hi, trying to connect to postgres db from openwhisk using psycopg2 in rhel 7 `import psycopg2` `conn = psycopg2.connect(database="testdb", user = "postgres", password = "", host = "10.50.139.65", port = "")` `print( "Opened database successfully")` As suggested by @Bilal tried to zip psycopg2 with this action, But still this doesnot work. *Error :: psycopg2 module not found.* Please suggest any alternate way. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583752809234700?thread_ts=1583752809.234700&cid=C3TPCAQG1 ---- 2020-03-09 13:10:50 UTC - Yinkang Huang: Hi, after deploy openwhisk on MAC, what is the API host variable? And what's the Authorization key? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583759450235700 ---- 2020-03-09 14:15:39 UTC - Rodric Rabbah: welcome @Yinkang Huang https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583763339236100 ---- 2020-03-09 14:16:30 UTC - Rodric Rabbah: how did you deploy on mac? usually it’s `localhost` and you can find the guest key in <https://github.com/apache/openwhisk/blob/master/ansible/files/auth.guest> https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583763390237000?thread_ts=1583763390.237000&cid=C3TPCAQG1 ---- 2020-03-09 14:18:20 UTC - Bilal: What does your zip file look like? How did you create virtualenv director? ```__main__.py virtualenv/``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583763500237100?thread_ts=1583752809.234700&cid=C3TPCAQG1 ---- 2020-03-09 16:24:43 UTC - Bilal: Thanks a bunch @Jiang PengCheng That did the trick. I was hoping I could simply edit `mycluster.yaml` but I had to get to the templates. Luckily it was 1 small change. For reference, I added these lines to `_helpers.tpl` under the section `{{- define "openwhisk.dbEnvVars" -}}` because it was pulled into both controller and invoker. ```- name: "CONFIG_whisk_activationStore_elasticsearch_protocol" value: "http" - name: "CONFIG_whisk_activationStore_elasticsearch_hosts" value: "172.18.0.1:9200" - name: "CONFIG_whisk_activationStore_elasticsearch_indexPattern" value: "openwhisk" - name: "CONFIG_whisk_activationStore_elasticsearch_username" value: "admin" - name: "CONFIG_whisk_activationStore_elasticsearch_password" value: "admin" - name: "CONFIG_whisk_spi_ActivationStoreProvider" value: "org.apache.openwhisk.core.database.elasticsearch.ElasticSearchActivationStoreProvider"``` Of course, this is a hard coded solution. I think the ideal method would be a bool that mycluster.yaml understands like so. Along with the necessary template logic. ```elasticsearch: enabled: true protocol: http hosts: IP indexPattern: username: password:``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583771083237400?thread_ts=1583435988.200500&cid=C3TPCAQG1 ---- 2020-03-09 16:29:46 UTC - Bilal: @Rodric Rabbah @Dave Grove Sometime this week I will submit a PR. I will try to follow the logic used in the existing templates such that if anyone wants to use this in the future, they simply need to edit their `mycluster.yaml` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583771386237900?thread_ts=1583435988.200500&cid=C3TPCAQG1 ---- 2020-03-09 16:36:17 UTC - Bilal: I may have spoken too soon as I also see some behavior of wsk cli no longer functions such as `wsk activation list` since it's trying to ping the CouchDB? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583771777238100?thread_ts=1583435988.200500&cid=C3TPCAQG1 ---- 2020-03-09 16:54:28 UTC - Rodric Rabbah: @Jiang PengCheng ^^ https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583772868238300?thread_ts=1583435988.200500&cid=C3TPCAQG1 ---- 2020-03-09 17:14:12 UTC - Tom Barber: hello fine people https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583774052238600 ---- 2020-03-09 17:14:40 UTC - Tom Barber: can you attach imagePullSecrets to the runtimes images in any sane way? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583774080239200 ---- 2020-03-09 17:16:09 UTC - Bilal: `[ERROR] [#tid_qv9jswsKYFIn2vssJFlndNo3kRYGGnTP] [ActivationsApi] [PROJECT] entity failed: Cannot deserialize instance of `long` out of START_OBJECT token` seems to be the relevant line. Stacktrace in there as well. This is from controller logs. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583774169239300?thread_ts=1583435988.200500&cid=C3TPCAQG1 ---- 2020-03-09 17:16:19 UTC - Tom Barber: cancel that, i see it https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583774179239800 ---- 2020-03-09 17:34:34 UTC - p-epp: So this exception may be prevented by excluding the oshi library? I would try that out. https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583775274240100?thread_ts=1583536535.227000&cid=C3TPCAQG1 ---- 2020-03-09 17:35:49 UTC - Bilal: From invoker logs `[2020-03-09T16:00:25.114Z] [WARN] request [POST <http://172.18.0.1:9200/_bulk>] returned 1 warnings: [299 Elasticsearch-7.6.0-7f634e9f44834fbc12724506cc1da681b0c3b1e3 "[types removal] Specifying types in bulk requests is deprecated."]` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583775349240300?thread_ts=1583435988.200500&cid=C3TPCAQG1 ---- 2020-03-09 23:11:22 UTC - Tom Barber: anyone got a clue why _`__OW_API_KEY`_ wouldn't be defined? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583795482241100 ---- 2020-03-09 23:25:05 UTC - Tom Barber: ```key = os.environ.get('__OW_API_KEY') authBits = key.split(':')``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583796305241500 ---- 2020-03-09 23:25:16 UTC - Tom Barber: `INFO - Trigger action quantJobTriggerPiquant: host=<https://owdev-nginx.openwhisk.svc.cluster.local>, ns=guest, key=None` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583796316241800 ---- 2020-03-09 23:26:38 UTC - Rodric Rabbah: <https://github.com/apache/openwhisk/blob/master/docs/annotations.md#annotations-for-all-actions> see `provide-api-key` could that apply? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583796398242600 ---- 2020-03-09 23:27:07 UTC - Tom Barber: I did another `sls deploy` and magically it works this time https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583796427243100 ---- 2020-03-09 23:27:11 UTC - Tom Barber: :man-shrugging: :scream: https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583796431243300 ---- 2020-03-09 23:37:56 UTC - Tom Barber: also @Rodric Rabbah if we wanted to loop over a specific long running action and launch 10, 20 or whatever in quick succession https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583797076243900 ---- 2020-03-09 23:38:03 UTC - Tom Barber: ```actionsInvokesConcurrent: "100" actionsInvokesPerminute: "100"``` https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583797083244100 ---- 2020-03-09 23:38:06 UTC - Tom Barber: I see those https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583797086244300 ---- 2020-03-09 23:38:12 UTC - Tom Barber: is there anything else I should be setting? https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1583797092244600 ----