ansible-role-docker icon indicating copy to clipboard operation
ansible-role-docker copied to clipboard

CI: Add Arch Linux to the test matrix

Open amotl opened this issue 3 years ago • 2 comments
trafficstars

Hi again,

#336 introduced a regression because a parameter has been added which is only present for Red Hat and Debian systems, but croaks, for example, on Arch Linux. Thanks for reporting it through #346, @adamantike.

When adding other Linux distributions to the test suite, errors like this might get caught early. If this patch turns out to work sucessfully and is welcome in general, #352 should be based upon it.

With kind regards, Andreas.

P.S.: This patch has been inspired by suggestions from others. Kudos!

amotl avatar May 16 '22 17:05 amotl

This still fails on "converge" at [1], like:

fatal: [instance]: UNREACHABLE! => {"changed": false, "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp `\"&& mkdir \"` echo ~/.ansible/tmp/ansible-tmp-1652730294.824226-2282-98062810097350 `\" && echo ansible-tmp-1652730294.824226-2282-98062810097350=\"` echo ~/.ansible/tmp/ansible-tmp-1652730294.824226-2282-98062810097350 `\" ), exited with result 1", "unreachable": true}

An extensive report about the problem can be found at https://stackoverflow.com/a/67346654.

However, different kinds of variations of those additonal options in molecule.yml did not help.

    tmpfs:
      - /run
      - /tmp
    volumes:
      - /sys/fs/cgroup:/sys/fs/cgroup:rw

Iterating through those images did not help either.

CI_IMAGE: mesaguy/ansible-molecule-archlinux:latest
CI_IMAGE: carlodepieri/docker-archlinux-ansible:latest
CI_IMAGE: ghcr.io/avnes/molecule-arch:latest

It looks like the molecule container launcher has specific problems on bringing up an Arch Linux instance.

[1] https://github.com/geerlingguy/ansible-role-docker/runs/6458968867#step:7:113

amotl avatar May 16 '22 19:05 amotl

If doing this, would be good to add Arch to the supported distros, too https://github.com/geerlingguy/ansible-role-docker/blob/master/meta/main.yml#L11

RealOrangeOne avatar May 18 '22 07:05 RealOrangeOne

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] avatar Sep 19 '22 23:09 stale[bot]

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.

stale[bot] avatar Oct 29 '22 07:10 stale[bot]