Skip to content

Failed to run tests due to import issue in minigraph_facts.py file #140

@oleksandrivantsiv

Description

@oleksandrivantsiv
ansible-playbook test_sonic.yml -i inventory --limit arc-switch1026-lag --become --tags fib -e run_dir="/tmp" -e ptf_host=ptf-fib -e testbed_type=t1-lag -vvvvv
...
TASK [test : Gathering minigraph facts about the device] ***********************
task path: /.autodirect/rdmzsysgwork/oleksandri/sonic/sonic-mgmt/ansible/roles/test/tasks/sonic.yml:1
Tuesday 21 March 2017  19:14:49 +0200 (0:00:00.183)       0:00:01.782 *********
ESTABLISH LOCAL CONNECTION FOR USER: oleksandri
arc-switch1026 EXEC ( umask 22 && mkdir -p "$( echo $HOME/.ansible/tmp/ansible-tmp-1490116489.48-119458770407525 )" && echo "$( echo $HOME/.ansible/tmp/ansible-tmp-1490116489.48-119458770407525 )" )
arc-switch1026 PUT /tmp/user/61131/tmpdCqXkf TO /labhome/oleksandri/.ansible/tmp/ansible-tmp-1490116489.48-119458770407525/minigraph_facts
arc-switch1026 EXEC LANG=C LC_ALL=C LC_MESSAGES=C /usr/bin/env python /labhome/oleksandri/.ansible/tmp/ansible-tmp-1490116489.48-119458770407525/minigraph_facts; rm -rf "/labhome/oleksandri/.ansible/tmp/ansible-tmp-1490116489.48-119458770407525/" > /dev/null 2>&1
fatal: [arc-switch1026-lag]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"filename": null, "host": "arc-switch1026-lag"}, "module_name": "minigraph_facts"}, "msg": "'module' object is not callable"}

PLAY RECAP *********************************************************************
arc-switch1026-lag         : ok=2    changed=0    unreachable=0    failed=1

Metadata

Metadata

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