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/11/16 17:10:12 UTC

[GitHub] [openwhisk] odidev opened a new issue #5026: "ansible/setup.yml" is failing for "focal" distro with error ''ansible_distribution' is undefined '

odidev opened a new issue #5026:
URL: https://github.com/apache/openwhisk/issues/5026


   **Environment details:**
   
   - "arm64-graviton2" platform for Travis-CI
   - Ubuntu 20.04(focal)
   
   **Steps to reproduce the issue:**
   Adding "arm64-graviton2" jobs for travis-CI. Please find the link below:
   https://github.com/odidev/openwhisk/blob/master/.travis.yml
   
   **Actual results and outputs:**
   Getting following 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/travis/build/odidev/openwhisk/ansible/setup.yml':
   line 61, 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
   
   ```
   Please find the travis link below:
   https://travis-ci.com/github/odidev/openwhisk/jobs/440788935
   
   We've added "arm64" platform for travis-CI as well but "./tools/travis/docker.sh" script was failing there due to "Docker Application Container Engine" was failing to start. Hence we tried for "arm64-graviton2" platform for Travis-CI, and docker issue got resolved in that but here we are facing above issue. We're getting same error for "focal" distribution of both the platforms(Amd64 & Arm64).
   Are you planning on updating distro from xenial to focal? If interested I can add and raise a PR. But as a start can I get suggestion on above issue?


----------------------------------------------------------------
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] odidev commented on issue #5026: "ansible/setup.yml" is failing for "focal" distro with error 'ansible_distribution' is undefined '

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


   @rabbah 
   Can you please suggest to me, on the above issues? 
   Also, may I know if you are interested to accept the PR with Linux/ARM64 jobs to the Travis-CI?


----------------------------------------------------------------
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] odidev commented on issue #5026: "ansible/setup.yml" is failing for "focal" distro with error 'ansible_distribution' is undefined '

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


   Default version of Ansible is`2.5.2 `but i've also tried with version `2.7.7`. Getting same result with that version as well.


----------------------------------------------------------------
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] odidev commented on issue #5026: "ansible/setup.yml" is failing for "focal" distro with error 'ansible_distribution' is undefined '

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


   @rabbah 
   Thank you for the response.
   
   I have again forked the repo and the ansible issue has not occurred again.
   
   I have replicated the travis jobs for arm64-graviton2, and have come across the issue with epmd services for ARM64. It seems that `sudo systemctl stop epmd.socket epmd.service` command does not work for ARM64, and shows the below error:
   ~~~
   Failed to stop epmd.socket: Unit epmd.socket not loaded.
   Failed to stop epmd.service: Unit epmd.service not loaded.  
   ~~~ 
   As the script is already stopping epmd sockets and services, I have skipped this command for ARM64 and moved ahead.
   
   Another issue I have faced is related to the `com.google.protobuf:protoc:3.4.0` dependency. 
   ~~~
   Execution failed for task ':core:scheduler:generateProto'.
   > Could not resolve all files for configuration ':core:scheduler:protobufToolsLocator_protoc'.
   > Could not find protoc-linux-aarch_64.exe (com.google.protobuf:protoc:3.4.0).
   ~~~
   Protoc version 3.4.0 is not available for AArch64. And the maven protoc support for AArch64 is launched from version 3.5.0 onwards.
   
   I have analysed that this dependency is not directly used in openwhisk.  After running openwhisk in debug mode, I have analysed that the exceptions come from gradle. It seems that gradle implements the protoc dependency in openwhisk. 
   Openwhisk uses gradle version 5.5.1, which does not directly contain protoc dependency in the source code. However, the latest version of gradle has protoc defined in the source code with the updated version.
   
   I have tried upgrading gradle to the latest version, but it seems that the dependency ‘build-scan’ is not compatible with the gradle version greater than 5.6.
   
   Do you have any plans to upgrade gradle to the latest version 7.0? If yes, then it will be helpful in adding ARM64 support to openwhisk.
   
   Please suggest your opinion on this, and provide some pointers on the same.
   


-- 
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 edited a comment on issue #5026: "ansible/setup.yml" is failing for "focal" distro with error 'ansible_distribution' is undefined '

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


   This error is usually attributed to a back level Ansible version. Do you know what version of `ansible` you're running in the build?


----------------------------------------------------------------
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] odidev commented on issue #5026: "ansible/setup.yml" is failing for "focal" distro with error 'ansible_distribution' is undefined '

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


   @rabbah 
   Can you please suggest to me, on the above issues? 
   Also, may I know if you are interested to accept the PR with Linux/ARM64 jobs to the Travis-CI?


----------------------------------------------------------------
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 #5026: "ansible/setup.yml" is failing for "focal" distro with error 'ansible_distribution' is undefined '

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


   I'm sorry @odidev for neglecting to respond sooner. Are you still encountering an issue with ansible?
   >  Also, may I know if you are interested to accept the PR with Linux/ARM64 jobs to the Travis-CI?
   
   Absolutely. PRs are welcome.


-- 
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 #5026: "ansible/setup.yml" is failing for "focal" distro with error 'ansible_distribution' is undefined '

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


   This error is usually attributed to a back level Ansible version. Do you know what version of ansible you're running in the build?


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