You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwhisk.apache.org by OpenWhisk Team Slack <ra...@apache.org> on 2010/01/01 00:01:01 UTC

[slack-digest] [2022-04-12] #general

2022-04-12 06:49:48 UTC - Thông Lê Văn: Hi everyone! I tried to get log of console.log in action, but I cannot do it so far. Need support from the community.
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1649746188591879?thread_ts=1649746188.591879&cid=C3TPCAQG1
----
2022-04-12 22:52:43 UTC - Areej: To install openwhisk on ubuntu 18 I have follow the same steps in this link : <https://github.com/apache/openwhisk/tree/master/tools/ubuntu-setup>

1- sudo apt-get install git -y
```2-  git clone <https://github.com/apache/openwhisk.git> openwhisk
3-  cd openwhisk
4-  (cd tools/ubuntu-setup &amp;&amp; ./all.sh)
5-  ./gradlew distDocker```
to deploy it with ansible the version of ansible is 2.5.2
• 
I have configure this file ansible/db_local.ini
• 
more db_local.ini
• 
[db_creds]
db_provider=CouchDB
db_username=admin
db_password=a4321
db_protocol=http
db_host=172.17.0.1
db_port=5984
```7-  ansible-playbook setup.yml
this is the output : 
TASK [ensure controller files directory exists] ****************************************************************************************************************************************************************
Tuesday 12 April 2022  22:20:39 +0000 (0:00:00.100)       0:00:02.964 ********* 
fatal: [localhost]: FAILED! =&gt; {"msg": "The conditional check 'controller.protocol == 'https'' failed. The error was: An unhandled exception occurred while templating '{u'protocol': u\"{{ controller_protocol | default('https') }}\", u'extraEnv': u'{{ controller_extraEnv | default({}) }}', u'dir': {u'become': u'{{ controller_dir_become | default(false) }}'}, u'ssl': {u'keystore': {u'password': u'openwhisk', u'name': u'{{ __controller_ssl_keyPrefix }}openwhisk-keystore.p12'}, u'cert': u'{{ __controller_ssl_keyPrefix }}openwhisk-server-cert.pem', u'cn': u'openwhisk-controllers', u'key': u'{{ __controller_ssl_keyPrefix }}openwhisk-server-key.pem', u'keyPrefix': u'{{ __controller_ssl_keyPrefix }}', u'clientAuth': u\"{{ controller_client_auth | default('true') }}\", u'storeFlavor': u'PKCS12'}, u'heap': u\"{{ controller_heap | default('2g') }}\", u'managedFraction': u'{{ controller_managed_fraction | default(1.0 - (controller_blackbox_fraction | default(__controller_blackbox_fraction))) }}', u'entitlement': {u'spi': u\"{{ controller_entitlement_spi | default('') }}\"}, u'instances': u\"{{ groups['controllers'] | length }}\", u'loglevel': u\"{{ controller_loglevel | default(whisk_loglevel) | default('INFO') }}\", u'timeoutFactor': u'{{ controller_timeout_factor | default(2) }}', u'blackboxFraction': u'{{ controller_blackbox_fraction | default(__controller_blackbox_fraction) }}', u'confdir': u'{{ config_root_dir }}/controller', u'authentication': {u'spi': u\"{{ controller_authentication_spi | default('') }}\"}, u'arguments': u\"{{ controller_arguments | default('') }}\", u'timeoutAddon': u\"{{ controller_timeout_addon | default('1 m') }}\", u'basePort': 10001, u'akka': {u'cluster': {u'bindPort': 2551, u'basePort': 8000, u'host': u\"{{ groups['controllers'] | map('extract', hostvars, 'ansible_host') | list }}\", u'seedNodes': u\"{{ groups['controllers'] | map('extract', hostvars, 'ansible_host') | list }}\"}, u'provider': u'cluster'}, u'loadbalancer': {u'spi': u\"{{ controller_loadbalancer_spi | default('') }}\"}}'. Error was a &lt;class 'ansible.errors.AnsibleError'&gt;, original message: An unhandled exception occurred while running the lookup plugin 'ini'. Error was a &lt;class 'ConfigParser.NoSectionError'&gt;, original message: No section: u'controller'\n\nThe error appears to have been in '/home/ubuntu/openwhisk/ansible/setup.yml': line 89, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  # Generate Controller certificates\n  - name: ensure controller files directory exists\n    ^ here\n"}
 
The conditional check 'controller.protocol == 'https'' failed. The error
was: An unhandled exception occurred while templating '{u'protocol': u"{{
controller_protocol | default('https') }}", u'extraEnv': u'{{
controller_extraEnv | default({}) }}', u'dir': {u'become': u'{{
controller_dir_become | default(false) }}'}, u'ssl': {u'keystore': {u'password':
u'openwhisk', u'name': u'{{ __controller_ssl_keyPrefix }}openwhisk-
keystore.p12'}, u'cert': u'{{ __controller_ssl_keyPrefix }}openwhisk-server-
cert.pem', u'cn': u'openwhisk-controllers', u'key': u'{{
__controller_ssl_keyPrefix }}openwhisk-server-key.pem', u'keyPrefix': u'{{
__controller_ssl_keyPrefix }}', u'clientAuth': u"{{ controller_client_auth |
default('true') }}", u'storeFlavor': u'PKCS12'}, u'heap': u"{{ controller_heap |
default('2g') }}", u'managedFraction': u'{{ controller_managed_fraction |
default(1.0 - (controller_blackbox_fraction |
default(__controller_blackbox_fraction))) }}', u'entitlement': {u'spi': u"{{
controller_entitlement_spi | default('') }}"}, u'instances': u"{{
groups['controllers'] | length }}", u'loglevel': u"{{ controller_loglevel |
default(whisk_loglevel) | default('INFO') }}", u'timeoutFactor': u'{{
controller_timeout_factor | default(2) }}', u'blackboxFraction': u'{{
controller_blackbox_fraction | default(__controller_blackbox_fraction) }}',
u'confdir': u'{{ config_root_dir }}/controller', u'authentication': {u'spi':
u"{{ controller_authentication_spi | default('') }}"}, u'arguments': u"{{
controller_arguments | default('') }}", u'timeoutAddon': u"{{
controller_timeout_addon | default('1 m') }}", u'basePort': 10001, u'akka':
{u'cluster': {u'bindPort': 2551, u'basePort': 8000, u'host': u"{{
groups['controllers'] | map('extract', hostvars, 'ansible_host') | list }}",
u'seedNodes': u"{{ groups['controllers'] | map('extract', hostvars,
'ansible_host') | list }}"}, u'provider': u'cluster'}, u'loadbalancer': {u'spi':
u"{{ controller_loadbalancer_spi | default('') }}"}}'. Error was a &lt;class
'ansible.errors.AnsibleError'&gt;, original message: An unhandled exception
occurred while running the lookup plugin 'ini'. Error was a &lt;class
'ConfigParser.NoSectionError'&gt;, original message: No section: u'controller'  The
error appears to have been in '/home/ubuntu/openwhisk/ansible/setup.yml': line
89, column 5, but may be elsewhere in the file depending on the exact syntax
problem.  The offending line appears to be:    # Generate Controller
certificates   - name: ensure controller files directory exists     ^ here 
 
PLAY RECAP *****************************************************************************************************************************************************************************************************
localhost                  : ok=5    changed=2    unreachable=0    failed=1   
 
Tuesday 12 April 2022  22:20:39 +0000 (0:00:00.152)       0:00:03.116 ********* 
=============================================================================== 
Gathering Facts ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.83s
gen hosts if 'local' env is used ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.57s
gen untrusted client certificate for host --------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.43s
gen untrusted server certificate for host --------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.40s
check if db_local.ini exists? --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.24s
ensure controller files directory exists ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.15s
generate kafka certificates ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.10s
ensure kafka files directory exists --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.06s
prepare db_local.ini ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.05s
get the docker-machine ip ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
gen hosts for Jenkins ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
gen hosts for docker-machine ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.05s
clean up old kafka keystore ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.04s
find the ip of docker-machine -------------------------------------------------------------------------------------------------------------------------------------------```
how to solve this error
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1649803963706269?thread_ts=1649803963.706269&cid=C3TPCAQG1
----
2022-04-12 22:53:00 UTC - Areej: 
https://openwhisk-team.slack.com/archives/C3TPCAQG1/p1649803980467549
----