samanta-amit opened a new issue #4945:
URL: https://github.com/apache/openwhisk/issues/4945
Getting error for "ansible-playbook prereq.yml"
TASK [ensure controller files directory exists]
********************************
Monday 17 August 2020 20:51:20 +0000 (0:00:00.076) 0:00:09.423
*********
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\"{{ c
ontroller_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/amit/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/amit/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
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]