I think I can only offer a possible approach to finding the problem.

I would alternate web search the term: ansible.errors.AnsibleError

I would search for the specific file on your drive: molecule_from_yaml

Results from the term search should provide a bit of an understanding of what is generating the fatal error.

I normally would use sudo'ed or root'ed "updatedb" followed by "locate molecule_from_yaml" to find the file on your drive.  This could have some security issues so be aware of that.  The files found by "updatedb" are then findable by those who have gotten some access to your computer.  "updatedb" also may be limited as to where it can look in it's configuration files.  Usually it will find what you have on your drive.  But others likely have other good methods to find files.  It is simply what I am familiar with.

The two things I am initially suspicious of is that the file is not on the drive so then you look at which packages would be containing the file and go get them.  If the file is on the drive then the issue usually is "does the running program have permissions to use the file as it needs to?".

Have a lot of fun!

Tod

On Wed, Dec 12, 2018 at 12:00 AM Sudheer S <sudheer@techchorus.net> wrote:
Hello,

I am unable to get molecule to work.

Here's the output when I try to run:

molecule test
--> Validating schema
/home/sudheer/workspace/sudheer-projects/ansible-role-ruby/molecule/default/molecule.yml.
Validation completed successfully.
--> Test matrix

└── default
     ├── destroy
     ├── syntax
     ├── create
     ├── prepare
     ├── converge
     ├── lint
     ├── side_effect
     ├── verify
     └── destroy

--> Scenario: 'default'
--> Action: 'destroy'

     PLAY [Destroy]
*****************************************************************

     TASK [Destroy molecule instance(s)]
********************************************
     fatal: [localhost]: FAILED! => {"msg": "An unhandled exception
occurred while templating '{{ lookup('file', molecule_file) |
molecule_from_yaml }}'. Error was a <class
'ansible.errors.AnsibleError'>, original message: template error while
templating string: no filter named 'molecule_from_yaml'. String: {{
lookup('file', molecule_file) | molecule_from_yaml }}"}

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

ERROR:
An error occurred during the test sequence action: 'destroy'. Cleaning up.
--> Scenario: 'default'
--> Action: 'destroy'

     PLAY [Destroy]
*****************************************************************

     TASK [Destroy molecule instance(s)]
********************************************
     fatal: [localhost]: FAILED! => {"msg": "An unhandled exception
occurred while templating '{{ lookup('file', molecule_file) |
molecule_from_yaml }}'. Error was a <class
'ansible.errors.AnsibleError'>, original message: template error while
templating string: no filter named 'molecule_from_yaml'. String: {{
lookup('file', molecule_file) | molecule_from_yaml }}"}

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

ERROR:

I have installed Docker and molecule packages. I am able to use Docker
outside of molecule on the same host.

I have installed these pacakges.

python3-molecule.noarch 2.19-2.fc29                         @updates
python2-docker.noarch 3.5.0-1.fc29                        @fedora
docker.x86_64 2:1.13.1-62.git9cb56fd.fc29         @fedora

I have tried removing python2-docker and installing python3-docker.
There's no change in result.

Am I missing something?

-

Sudheer
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org