The tests seem to be installing python2, causing the test environment to be
modified.

Per the error message:

ERROR: Test target "lookup_mongodb" has changed the test environment!
If these changes are necessary, they must be reverted before the test
finishes.

This is being done in the following task:

TASK [setup_mongodb : Ensure mongod package is installed]
**********************

https://github.com/ansible-collections/community.mongodb/blob/master/tests/integration/targets/setup_mongodb/tasks/main.yml#L76-L80

You'll either need to remove the python2 packages that were installed in
`setup_mongodb`.  This already existed, but was commented out in
https://github.com/ansible-collections/community.mongodb/commit/71d1de33c73423df4f2b5aed7d2403c1e4ef5220

On Fri, Feb 5, 2021 at 10:29 AM '[email protected]' via Ansible
Development <[email protected]> wrote:

> Hello,
>
> Is anyone else having problems using the centos8 images with ansible-test?
> The last couple of days I've been getting an error stating "ERROR: Test
> target "lookup_mongodb" has changed the test environment!"
>
> A failed run is here:
> https://github.com/ansible-collections/community.mongodb/runs/1835988388?check_suite_focus=true
>
> It complains about the python env being changed but I don't mess with any
> of that stuff. The tests work fine in the ubuntu1804 container. This also
> seems limited to running the tests in Github Actions as I can run the
> following command succesfully locally...
>
> ansible-test integration lookup_mongodb --docker centos8
>
> Cheers,
>
> Rhys
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/b5c6eb74-cbc3-4ead-a8b3-ffcf8bbe545en%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-devel/b5c6eb74-cbc3-4ead-a8b3-ffcf8bbe545en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CAD8N0v_4tzE4FB8-%3DEO3hLqS01aWEQdM9qsVmoxw%2BoAU30vbvg%40mail.gmail.com.

Reply via email to