2022-04-12 22:35:05 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 && ./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! => {"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 <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while running the lookup plugin 'ini'. Error was a <class 'ConfigParser.NoSectionError'>, 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 <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while running the lookup plugin 'ini'. Error was a <class 'ConfigParser.NoSectionError'>, 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 -------------------------------------------------------------------------------------------------------------------------------------------``` https://openwhisk-team.slack.com/archives/C79ALSWJJ/p1649802905700669 ---- 2022-04-12 22:35:31 UTC - Areej: how to solve this error https://openwhisk-team.slack.com/archives/C79ALSWJJ/p1649802931082169 ----