mlangbehn commented on issue #17: Issues deploying with custom docker images URL: https://github.com/apache/incubator-openwhisk-deploy-kube/issues/17#issuecomment-309584071 The file that is causing the issue is [ansible-kube/roles/routemgmt/tasks/deploy.yml](https://github.com/apache/incubator-openwhisk-deploy-kube/blob/master/ansible-kube/roles/routemgmt/tasks/deploy.yml#L4), which calls `cli_path` (a variable which doesn't seem to be getting set anywhere). The correlating [file in apache/incubator-openwhisk](https://github.com/apache/incubator-openwhisk/blob/master/ansible/roles/routemgmt/tasks/deploy.yml#L4) uses `cli.path` instead. Changing the variable from `cli_path` to `cli.path` does not resolve the issue, but it does change the failure message. ~I'm rerunning with the changed variable name and will post logs after the test completes.~ Logs after changing `cli_path` tpo `cli.path`: ```text TASK [routemgmt : install route management actions] **************************** task path: /incubator-openwhisk-deploy-kube/ansible/roles/routemgmt/tasks/deploy.yml:3 Monday 19 June 2017 22:01:45 +0000 (0:00:09.129) 0:05:32.072 *********** Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/commands/command.py <ansible> ESTABLISH LOCAL CONNECTION FOR USER: root <ansible> EXEC /bin/sh -c 'echo ~ && sleep 0' <ansible> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1497909705.83-173949295275223 `" && echo ansible-tmp-1497909705.83-173949295275223="` echo /root/.ansible/tmp/ansible-tmp-1497909705.83-173949295275223 `" ) && sleep 0' <ansible> PUT /tmp/tmpJN_BY0 TO /root/.ansible/tmp/ansible-tmp-1497909705.83-173949295275223/command.py <ansible> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1497909705.83-173949295275223/ /root/.ansible/tmp/ansible-tmp-1497909705.83-173949295275223/command.py && sleep 0' <ansible> EXEC /bin/sh -c 'OPENWHISK_HOME=/incubator-openwhisk-deploy-kube/ansible/.. /usr/bin/python /root/.ansible/tmp/ansible-tmp-1497909705.83-173949295275223/command.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1497909705.83-173949295275223/" > /dev/null 2>&1 && sleep 0' fatal: [ansible]: FAILED! => { "changed": true, "cmd": "./installRouteMgmt.sh /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system nginx.openwhisk /whisk.system /incubator-openwhisk-deploy-kube/ansible/../bin/wsk", "delta": "0:00:00.737653", "end": "2017-06-19 22:01:46.775638", "failed": true, "invocation": { "module_args": { "_raw_params": "./installRouteMgmt.sh /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system nginx.openwhisk /whisk.system /incubator-openwhisk-deploy-kube/ansible/../bin/wsk", "_uses_shell": true, "chdir": "/incubator-openwhisk-deploy-kube/ansible/../ansible/roles/routemgmt/files", "creates": null, "executable": null, "removes": null, "warn": true } }, "rc": 126, "start": "2017-06-19 22:01:46.037985", "stderr": "+ '[' 4 -eq 0 ']'\n+ AUTH=/incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system\n+ APIHOST=nginx.openwhisk\n+ NAMESPACE=/whisk.system\n+ WSK_CLI=/incubator-openwhisk-deploy-kube/ansible/../bin/wsk\n+ WHISKPROPS_FILE=/incubator-openwhisk-deploy-kube/ansible/../whisk.properties\n++ fgrep apigw.auth.user= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties\n++ cut -d= -f2\n+ GW_USER=\n++ fgrep apigw.auth.pwd= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties\n++ cut -d= -f2-\n+ GW_PWD=\n++ fgrep apigw.host= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties\n++ cut -d= -f2\n+ GW_HOST=nginx.openwhisk\n++ fgrep apigw.host.v2= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties\n++ cut -d= -f2\n+ GW_HOST_V2=nginx.openwhisk\n+ '[' -f /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system ']'\n++ cat /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system\n+ AUTH=789c46b1-7 1f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP\n+ export WSK_CONFIG_FILE=\n+ WSK_CONFIG_FILE=\n+ echo Installing routemgmt package.\n+ /incubator-openwhisk-deploy-kube/ansible/../bin/wsk -i --apihost nginx.openwhisk package update --auth 789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP --shared no /whisk.system/routemgmt -a description 'This experimental package manages the gateway API configuration.' -p gwUser '' -p gwPwd '' -p gwUrl nginx.openwhisk -p gwUrlV2 nginx.openwhisk\n./installRouteMgmt.sh: line 39: /incubator-openwhisk-deploy-kube/ansible/../bin/wsk: cannot execute binary file: Exec format error", "stderr_lines": [ "+ '[' 4 -eq 0 ']'", "+ AUTH=/incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system", "+ APIHOST=nginx.openwhisk", "+ NAMESPACE=/whisk.system", "+ WSK_CLI=/incubator-openwhisk-deploy-kube/ansible/../bin/wsk", "+ WHISKPROPS_FILE=/incubator-openwhisk-deploy-kube/ansible/../whisk.properties", "++ fgrep apigw.auth.user= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties", "++ cut -d= -f2", "+ GW_USER=", "++ fgrep apigw.auth.pwd= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties", "++ cut -d= -f2-", "+ GW_PWD=", "++ fgrep apigw.host= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties", "++ cut -d= -f2", "+ GW_HOST=nginx.openwhisk", "++ fgrep apigw.host.v2= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties", "++ cut -d= -f2", "+ GW_HOST_V2=nginx.openwhisk", "+ '[' -f /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system ']'", "++ cat /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system", "+ AUTH=789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP", "+ export WSK_CONFIG_FILE=", "+ WSK_CONFIG_FILE=", "+ echo Installing routemgmt package.", "+ /incubator-openwhisk-deploy-kube/ansible/../bin/wsk -i --apihost nginx.openwhisk package update --auth 789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP --shared no /whisk.system/routemgmt -a description 'This experimental package manages the gateway API configuration.' -p gwUser '' -p gwPwd '' -p gwUrl nginx.openwhisk -p gwUrlV2 nginx.openwhisk", "./installRouteMgmt.sh: line 39: /incubator-openwhisk-deploy-kube/ansible/../bin/wsk: cannot execute binary file: Exec format error" ], "stdout": "Installing routemgmt package.", "stdout_lines": [ "Installing routemgmt package." ] } [FAILED] > ./installRouteMgmt.sh /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system nginx.openwhisk /whisk.system /incubator-openwhisk-deploy-kube/ansible/../bin/wsk Installing routemgmt package. + '[' 4 -eq 0 ']' + AUTH=/incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system + APIHOST=nginx.openwhisk + NAMESPACE=/whisk.system + WSK_CLI=/incubator-openwhisk-deploy-kube/ansible/../bin/wsk + WHISKPROPS_FILE=/incubator-openwhisk-deploy-kube/ansible/../whisk.properties ++ fgrep apigw.auth.user= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties ++ cut -d= -f2 + GW_USER= ++ fgrep apigw.auth.pwd= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties ++ cut -d= -f2- + GW_PWD= ++ fgrep apigw.host= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties ++ cut -d= -f2 + GW_HOST=nginx.openwhisk ++ fgrep apigw.host.v2= /incubator-openwhisk-deploy-kube/ansible/../whisk.properties ++ cut -d= -f2 + GW_HOST_V2=nginx.openwhisk + '[' -f /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system ']' ++ cat /incubator-openwhisk-deploy-kube/ansible/../ansible/files/auth.whisk.system + AUTH=789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP + export WSK_CONFIG_FILE= + WSK_CONFIG_FILE= + echo Installing routemgmt package. + /incubator-openwhisk-deploy-kube/ansible/../bin/wsk -i --apihost nginx.openwhisk package update --auth 789c46b1-71f6-4ed5-8c54-816aa4f8c502:abczO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP --shared no /whisk.system/routemgmt -a description 'This experimental package manages the gateway API configuration.' -p gwUser '' -p gwPwd '' -p gwUrl nginx.openwhisk -p gwUrlV2 nginx.openwhisk ./installRouteMgmt.sh: line 39: /incubator-openwhisk-deploy-kube/ansible/../bin/wsk: cannot execute binary file: Exec format error ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
