You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/10/25 14:03:16 UTC

[GitHub] [openwhisk] parichehrvn opened a new issue #5010: ansible setup.yml failed with error error while evaluating conditional (nginx.ssl.cert == "openwhisk-server-cert.pem")

parichehrvn opened a new issue #5010:
URL: https://github.com/apache/openwhisk/issues/5010


   Hi
   I want to install Openwhisk with _docker_ using _ansible_. But when I run `ansible-playbook -i environments/local setup.yml` I get this error:
   
   > The conditional check 'nginx.ssl.cert == "openwhisk-server-cert.pem"'
   failed. The error was: error while evaluating conditional (nginx.ssl.cert ==
   "openwhisk-server-cert.pem"): 'ansible_distribution' is undefined  The error
   appears to have been in '/home/parichehr/openwhisk/ansible/setup.yml': line 60,
   column 5, but may be elsewhere in the file depending on the exact syntax
   problem.  The offending line appears to be:    # Generate nginx certificates   -
   name: gen untrusted server certificate for host     ^ here


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [openwhisk] parichehrvn edited a comment on issue #5010: ansible setup.yml failed with error ''ansible_distribution' is undefined '

Posted by GitBox <gi...@apache.org>.
parichehrvn edited a comment on issue #5010:
URL: https://github.com/apache/openwhisk/issues/5010#issuecomment-716740280


   > As noted in slack, I think this is related to your ansible version being 2.5.2. Please try with ansible 2.7.7 or later.
   
   I try with ansible 2.7.7 but I still get the same error.
   I try to modify setup.yml as follows:
   ```
   - name: Setup.yml
     hosts: all
     gather_facts: yes
   
     tasks:
     ...........
   ```
   and this error is solved but I get this error:
   
   ```
   non-zero return code
   generating client ca key generating client ca request generating client ca
   pem generating client key generating client certificate csr file generating
   self-signed client certificate
   Generating RSA private key, 2048 bit long modulus (2 primes) .....+++++
   ........+++++ e is 65537 (0x010001) Signature ok subject=C = US, ST = NY, L =
   Yorktown, O = OpenWhisk, CN = *.localhost Getting Private key Generating RSA
   private key, 2048 bit long modulus (2 primes) ...........................+++++
   ........+++++ e is 65537 (0x010001) Signature ok subject=C = US, ST = NY, L =
   Yorktown, O = OpenWhisk, CN = guest Getting CA Private Key unable to load CA
   Private Key 139724263978304:error:0909006C:PEM routines:get_name:no start
   line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY
   ```
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [openwhisk] rabbah commented on issue #5010: ansible setup.yml failed with error ''ansible_distribution' is undefined '

Posted by GitBox <gi...@apache.org>.
rabbah commented on issue #5010:
URL: https://github.com/apache/openwhisk/issues/5010#issuecomment-716573748


   As noted in slack, I think this is related to your ansible version being 2.5.2. Please try with ansible 2.7.7 or later.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [openwhisk] engshahrad commented on issue #5010: ansible setup.yml failed with error ''ansible_distribution' is undefined '

Posted by GitBox <gi...@apache.org>.
engshahrad commented on issue #5010:
URL: https://github.com/apache/openwhisk/issues/5010#issuecomment-752247965


   I can confirm that I had the same exact issue, and updating the ansible from version 2.5.2 to 2.9.6 fixed the problem for me. 


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [openwhisk] parichehrvn edited a comment on issue #5010: ansible setup.yml failed with error ''ansible_distribution' is undefined '

Posted by GitBox <gi...@apache.org>.
parichehrvn edited a comment on issue #5010:
URL: https://github.com/apache/openwhisk/issues/5010#issuecomment-716740280


   > As noted in slack, I think this is related to your ansible version being 2.5.2. Please try with ansible 2.7.7 or later.
   
   I try with ansible 2.7.7 but I still get the same error.
   I try to modify setup.yml as follows:
   ```
   - name: Setup.yml
     hosts: all
     gather_facts: yes
   
     tasks:
     ...........
   ```
   and this error is solved but I get this error in `TASK [gen untrusted client certificate for host]`
   
   ```
   non-zero return code
   generating client ca key generating client ca request generating client ca
   pem generating client key generating client certificate csr file generating
   self-signed client certificate
   Generating RSA private key, 2048 bit long modulus (2 primes) .....+++++
   ........+++++ e is 65537 (0x010001) Signature ok subject=C = US, ST = NY, L =
   Yorktown, O = OpenWhisk, CN = *.localhost Getting Private key Generating RSA
   private key, 2048 bit long modulus (2 primes) ...........................+++++
   ........+++++ e is 65537 (0x010001) Signature ok subject=C = US, ST = NY, L =
   Yorktown, O = OpenWhisk, CN = guest Getting CA Private Key unable to load CA
   Private Key 139724263978304:error:0909006C:PEM routines:get_name:no start
   line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY
   ```
   
   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [openwhisk] parichehrvn commented on issue #5010: ansible setup.yml failed with error ''ansible_distribution' is undefined '

Posted by GitBox <gi...@apache.org>.
parichehrvn commented on issue #5010:
URL: https://github.com/apache/openwhisk/issues/5010#issuecomment-716740280


   > As noted in slack, I think this is related to your ansible version being 2.5.2. Please try with ansible 2.7.7 or later.
   
   I try with ansible 2.7.7 but I still get the same error.
   I try to modify setup.yml as follows:
   `- name: Setup.yml
     hosts: all
     gather_facts: yes
   
     tasks:
     ...........`
   and this error is solved but I get this error:
   `non-zero return code
   generating client ca key generating client ca request generating client ca
   pem generating client key generating client certificate csr file generating
   self-signed client certificate
   Generating RSA private key, 2048 bit long modulus (2 primes) .....+++++
   ........+++++ e is 65537 (0x010001) Signature ok subject=C = US, ST = NY, L =
   Yorktown, O = OpenWhisk, CN = *.localhost Getting Private key Generating RSA
   private key, 2048 bit long modulus (2 primes) ...........................+++++
   ........+++++ e is 65537 (0x010001) Signature ok subject=C = US, ST = NY, L =
   Yorktown, O = OpenWhisk, CN = guest Getting CA Private Key unable to load CA
   Private Key 139724263978304:error:0909006C:PEM routines:get_name:no start
   line:../crypto/pem/pem_lib.c:745:Expecting: ANY PRIVATE KEY
   `


----------------------------------------------------------------
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:
users@infra.apache.org