[tripleo][molecule] feedback on testing ansible roles with molecule
Hi! While we do now have a POC job running molecule with tox for testing one tripleo-common role, I would like to ask for some feedback from running the same test locally, on your dev box. The report generated but openstack-tox-mol job looks like http://logs.openstack.org/36/663336/14/check/openstack-tox-mol/aa7345d/tox/r... <http://logs.openstack.org/36/663336/14/check/openstack-tox-mol/aa7345d/tox/reports.html> https://review.opendev.org/#/c/663336/ <https://review.opendev.org/#/c/663336/> Just download it and run: tox -e mol You will either need docker or at least to define DOCKER_HOST=ssh://somehost <ssh://somehost> as an alternative. Please send the feedback back to me or directly on the the review. Over the last days I fixed few minor issues related to differences between user environments and I want to make I improve it as much as possible. Thanks Sorin Sbarnea Tripleo CI
On Fri, Jun 7, 2019 at 3:50 PM Sorin Sbarnea <ssbarnea@redhat.com> wrote:
Hi!
While we do now have a POC job running molecule with tox for testing one tripleo-common role, I would like to ask for some feedback from running the same test locally, on your dev box. The report generated but openstack-tox-mol job looks like http://logs.openstack.org/36/663336/14/check/openstack-tox-mol/aa7345d/tox/r...
https://review.opendev.org/#/c/663336/ Just download it and run: tox -e mol
You will either need docker or at least to define DOCKER_HOST= ssh://somehost as an alternative.
is there a driver for podman? if yes, prefer it over docker on fedora. Otherwise, cool! Thanks for this work. It'll be useful with the forthcoming work in tripleo-ansible. -- Emilien Macchi
There is no podman driver (provider) yet, but it will be. Mainly we are waiting for Ansible modules and one done it will be easy to add one. My goal is to find a way to use both, probably based on detection and fallback. This could provide a better user experience as it would allow use of whatever you have available on your environment. -- sorin On 7 Jun 2019, 21:17 +0100, Emilien Macchi <emilien@redhat.com>, wrote:
On Fri, Jun 7, 2019 at 3:50 PM Sorin Sbarnea <ssbarnea@redhat.com> wrote:
Hi!
While we do now have a POC job running molecule with tox for testing one tripleo-common role, I would like to ask for some feedback from running the same test locally, on your dev box. The report generated but openstack-tox-mol job looks like http://logs.openstack.org/36/663336/14/check/openstack-tox-mol/aa7345d/tox/r...
https://review.opendev.org/#/c/663336/ Just download it and run: tox -e mol
You will either need docker or at least to define DOCKER_HOST=ssh://somehost as an alternative.
is there a driver for podman? if yes, prefer it over docker on fedora.
Otherwise, cool! Thanks for this work. It'll be useful with the forthcoming work in tripleo-ansible. -- Emilien Macchi
On Fri, Jun 7, 2019 at 11:39 PM Emilien Macchi <emilien@redhat.com> wrote:
is there a driver for podman? if yes, prefer it over docker on fedora.
Since Saturday we do have driver for podman in Molecule [1]. But it requires for you to have latest ansible from "devel" branch, as podman connector in ansible is pretty new thing.
Otherwise, cool! Thanks for this work. It'll be useful with the forthcoming work in tripleo-ansible. -- Emilien Macchi
[1] https://github.com/ansible/molecule/pull/2098 -- Best regards Sagi Shnaidman
participants (3)
-
Emilien Macchi
-
Sagi Shnaidman
-
Sorin Sbarnea