hunhoffe opened a new issue #5204:
URL: https://github.com/apache/openwhisk/issues/5204


   ## Environment details:
   
   * ansible 4.1.0
   * Docker version 20.10.12, Ubuntu 20.04 
   
   ## Steps to reproduce the issue:
   
   1.   Install docker
   2.  Follow ansible setup directions (summarized explicitly in the attached 
markdown file: 
[ansible_setup.md](https://github.com/apache/openwhisk/files/8328289/ansible_setup.md)
   
   ## Provide the actual results and outputs:
   
   Command that leads to error:
   ```bash
   ansible-playbook -i environments/$ENVIRONMENT openwhisk.yml -e 
db_activation_backend=ElasticSearch
   ```
   
   Error:
   ```
   TASK [cli : Download release archive to build directory ...] 
***********************************************************************************************************************************************
   Tuesday 22 March 2022  14:56:04 -0600 (0:00:00.397)       0:02:33.675 
********* 
   fatal: [172.17.0.1]: FAILED! => {"changed": false, "msg": "argument 
'headers' is of type <class 'str'> and we were unable to convert to dict: 
dictionary requested, could not parse JSON or key=value"}
   
   argument 'headers' is of type <class 'str'> and we were unable to convert
   to dict: dictionary requested, could not parse JSON or key=value. 
   ```
   
   Target Summary:
   ```
   PLAY RECAP 
*************************************************************************************************************************************************************************************************
   172.17.0.1                 : ok=11   changed=9    unreachable=0    failed=1  
  skipped=7    rescued=0    ignored=0   
   controller0                : ok=30   changed=7    unreachable=0    failed=0  
  skipped=14   rescued=0    ignored=0   
   etcd0                      : ok=5    changed=1    unreachable=0    failed=0  
  skipped=2    rescued=0    ignored=0   
   invoker0                   : ok=33   changed=10   unreachable=0    failed=0  
  skipped=25   rescued=0    ignored=0   
   kafka0                     : ok=10   changed=4    unreachable=0    failed=0  
  skipped=7    rescued=0    ignored=0   
   scheduler0                 : ok=23   changed=6    unreachable=0    failed=0  
  skipped=13   rescued=0    ignored=0 
   ```
   
   ## The Fix
   Change openwhisk/ansible/roles/cli/tasks/deploy.yml, line 38
   ```
   -    headers: "{{ openwhisk_cli.remote.headers | default('') }}"
   +    headers: "{{ openwhisk_cli.remote.headers | default('{}') }}"
   ```
   
   ## Additional information you deem important:
   * I already have a fix, but I don't have enough deep understanding of 
ansible to know if it's the right fix.
   
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to