Skip to content

make quick-start fails at init-couchdb on task "find the ip of docker-machine" #51

@alexkli

Description

@alexkli

This issue happens on Travis build 412 and I saw it locally on Mac OSX as well.

While on Travis only the latest build fails, locally the previous revision fd35f21 fails for me as well. Maybe it is a recent change in the main openwhisk repository that triggers it, i.e. past Aug 28, 2017.

The command mentioned in the error message from that openwhisk/ansible/setup.yml file is apparently docker-machine ip whisk (or whatever docker_machine_name is set to). If I run that I get:

> docker-machine ip whisk
Host does not exist: "whisk"

My $DOCKER_MACHINE_NAME is actually default. This works:

> docker-machine ip default
192.168.99.100

However, the error message seems more specific about variable names: "Make sure your variable name does not contain invalid characters like '-'". See below.

Specific error message:

The conditional check ''environments/docker-machine' in inventory_dir' failed.

The error was:
error while evaluating conditional ('environments/docker-machine' in inventory_dir):
Unable to look up a name or access an attribute in template string ({% if 'environments/docker-machine' in inventory_dir %} True {% else %} False {% endif %}).

Make sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable

The error appears to have been in '/openwhisk/ansible/setup.yml': line 6, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  tasks:
  - name: find the ip of docker-machine
    ^ here

End of build:

...

TASK [Gathering Facts] *****************************************************************************************************************************************************************************************
Tuesday 19 September 2017  20:43:43 +0000 (0:00:00.222)       0:00:00.223 ***** 
ok: [localhost]

TASK [find the ip of docker-machine] ***************************************************************************************************************************************************************************
Tuesday 19 September 2017  20:43:55 +0000 (0:00:11.854)       0:00:12.077 ***** 
fatal: [localhost]: FAILED! => {"failed": true, "msg": "The conditional check ''environments/docker-machine' in inventory_dir' failed. The error was: error while evaluating conditional ('environments/docker-machine' in inventory_dir): Unable to look up a name or access an attribute in template string ({% if 'environments/docker-machine' in inventory_dir %} True {% else %} False {% endif %}).\nMake sure your variable name does not contain invalid characters like '-': argument of type 'StrictUndefined' is not iterable\n\nThe error appears to have been in '/openwhisk/ansible/setup.yml': line 6, column 5, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  tasks:\n  - name: find the ip of docker-machine\n    ^ here\n"}

PLAY RECAP *****************************************************************************************************************************************************************************************************
localhost                  : ok=1    changed=0    unreachable=0    failed=1   

Tuesday 19 September 2017  20:43:55 +0000 (0:00:00.071)       0:00:12.148 ***** 
=============================================================================== 
Gathering Facts ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 11.85s
find the ip of docker-machine --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 0.07s
make: *** [init-couchdb] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions