-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tox-ansible fails in driver detection when using a shared molecule config file in the project level #88
Labels
bug
This issue/PR relates to a bug.
Comments
strider
added a commit
to strider/tox-ansible
that referenced
this issue
May 6, 2021
This patch adds the support for global molecule configuration at the project level. It detects if a `.config/molecule/config.yml` file exists at the root of the project and allows us to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one. Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
strider
added a commit
to strider/tox-ansible
that referenced
this issue
May 6, 2021
This patch adds the support for global molecule configuration at the project level. It detects if a `.config/molecule/config.yml` file exists at the root of the project and allows us to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one. Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
openstack-mirroring
pushed a commit
to openstack-archive/validations-common
that referenced
this issue
May 6, 2021
This patch adds a molecule configuration file at the repository level (validations-common/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in validations-common/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Change-Id: I907e2a13a3ba3b152ad7036fa1bb249bec980b76 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
openstack-mirroring
pushed a commit
to openstack/openstack
that referenced
this issue
May 6, 2021
* Update validations-common from branch 'master' to a22b0ccaaffe8b60ec7f4e28a7725957b7b7ba3b - Merge "Add shared configuration for all molecule test" - Add shared configuration for all molecule test This patch adds a molecule configuration file at the repository level (validations-common/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in validations-common/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Change-Id: I907e2a13a3ba3b152ad7036fa1bb249bec980b76 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
strider
added a commit
to strider/tox-ansible
that referenced
this issue
May 7, 2021
This patch adds the support for molecule base configuration. It will allow us to use a global molecule configuration file[1] or to pass one or multiple base configuration file(s) according to ansible-molecule through the tox.ini file. By default, if not passing base configuration file(s) in the tox.ini file but if there is a global configuration file[1], this will be the reference to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one[1]. If there is [1] at the project level and passing base configuration file(s) in the tox.ini file, those latter will take precedence over the global one[1]. Note that tox-ansible will now raise a RuntimeError if it finds out multiple driver name declaration when using multiple molecule base configuration. [1] - <PROJECT_ABSPATH>/.config/molecule/config.yml Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
strider
added a commit
to strider/tox-ansible
that referenced
this issue
May 7, 2021
This patch adds the support for molecule base configuration. It will allow us to use a global molecule configuration file[1] or to pass one or multiple base configuration file(s) according to ansible-molecule through the tox.ini file. By default, if not passing base configuration file(s) in the tox.ini file but if there is a global configuration file[1], this will be the reference to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one[1]. If there is [1] at the project level and passing base configuration file(s) in the tox.ini file, those latter will take precedence over the global one[1]. Note that tox-ansible will now raise a RuntimeError if it finds out multiple driver name declaration when using multiple molecule base configuration. [1] - <PROJECT_ABSPATH>/.config/molecule/config.yml Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
strider
added a commit
to strider/tox-ansible
that referenced
this issue
May 10, 2021
This patch adds the support for molecule base configuration. It will allow us to use a global molecule configuration file[1] or to pass one or multiple base configuration file(s) according to ansible-molecule through the tox.ini file. By default, if not passing base configuration file(s) in the tox.ini file but if there is a global configuration file[1], this will be the reference to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one[1]. If there is [1] at the project level and passing base configuration file(s) in the tox.ini file, those latter will take precedence over the global one[1]. Note that tox-ansible will now raise a RuntimeError if it finds out multiple driver name declaration when using multiple molecule base configuration. [1] - <PROJECT_ABSPATH>/.config/molecule/config.yml Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
strider
added a commit
to strider/tox-ansible
that referenced
this issue
May 14, 2021
This patch adds the support for molecule base configuration. It will allow us to use a global molecule configuration file[1] or to pass one or multiple base configuration file(s) according to ansible-molecule through the tox.ini file and the `molecule_config_files` option. By default, if not passing base configuration file(s) in the tox.ini file but if there is a global configuration file[1], this will be the reference to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one[1]. If there is [1] at the project level and passing base configuration file(s) in the tox.ini file, those latter will take precedence over the global one[1]. Note that tox-ansible will now raise a RuntimeError if it finds out multiple driver name declaration when using multiple molecule base configuration. [1] - <PROJECT_ABSPATH>/.config/molecule/config.yml Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
strider
added a commit
to strider/tox-ansible
that referenced
this issue
May 14, 2021
This patch adds the support for molecule base configuration. It will allow us to use a global molecule configuration file[1] or to pass one or multiple base configuration file(s) according to ansible-molecule through the tox.ini file and the `molecule_config_files` option. By default, if not passing base configuration file(s) in the tox.ini file but if there is a global configuration file[1], this will be the reference to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one[1]. If there is [1] at the project level and passing base configuration file(s) in the tox.ini file, those latter will take precedence over the global one[1]. Note that tox-ansible will now raise a RuntimeError if it finds out multiple driver name declaration when using multiple molecule base configuration. [1] - <PROJECT_ABSPATH>/.config/molecule/config.yml Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
openstack-mirroring
pushed a commit
to openstack-archive/tripleo-validations
that referenced
this issue
May 15, 2021
This patch adds a molecule configuration file at the repository level (tripleo-validations/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in tripleo-validations/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I4717825e2767dc55016a30fb62aa6a5541f26cfd
openstack-mirroring
pushed a commit
to openstack/openstack
that referenced
this issue
May 15, 2021
* Update tripleo-validations from branch 'master' to 66193a69b79a51d436f132d30b0d530e0f1139ac - Add shared configuration for all molecule test This patch adds a molecule configuration file at the repository level (tripleo-validations/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in tripleo-validations/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I4717825e2767dc55016a30fb62aa6a5541f26cfd
openstack-mirroring
pushed a commit
to openstack-archive/tripleo-validations
that referenced
this issue
Jun 3, 2021
This patch adds a molecule configuration file at the repository level (tripleo-validations/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in tripleo-validations/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I4717825e2767dc55016a30fb62aa6a5541f26cfd (cherry picked from commit 66193a6)
openstack-mirroring
pushed a commit
to openstack-archive/tripleo-validations
that referenced
this issue
Jun 23, 2021
This patch adds a molecule configuration file at the repository level (tripleo-validations/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in tripleo-validations/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I4717825e2767dc55016a30fb62aa6a5541f26cfd (cherry picked from commit 66193a6) (cherry picked from commit 6a3081b) (cherry picked from commit 8bd52a2)
openstack-mirroring
pushed a commit
to openstack-archive/tripleo-validations
that referenced
this issue
Jun 23, 2021
This patch adds a molecule configuration file at the repository level (tripleo-validations/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in tripleo-validations/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I4717825e2767dc55016a30fb62aa6a5541f26cfd (cherry picked from commit 66193a6) (cherry picked from commit 6a3081b)
openstack-mirroring
pushed a commit
to openstack-archive/tripleo-validations
that referenced
this issue
Jul 6, 2021
This patch adds a molecule configuration file at the repository level (tripleo-validations/.config/molecule/config.yml) which defines all the default values for molecule.yml files in all roles. This patch also introduces a common Dockerfile (UBI8 image) shared between all the role molecule tests. This Dockerfile will install the CentOS 8.x Linux Repos and GPG Keys during the image build. This Dockerfile is located in tripleo-validations/.config/molecule directory and it is shared through a relative symbolic link between all the molecule directories. NOTE: tox-ansible doesn't manage shared molecule configuration at the project level (see [1]). To be able to use it, we have to explicitly add the driver name in each molecule.yml file in the roles level. Once [1] will be fixed, these will be removed. [1] - ansible/tox-ansible#88). Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com> Change-Id: I4717825e2767dc55016a30fb62aa6a5541f26cfd (cherry picked from commit 66193a6) (cherry picked from commit 6a3081b) (cherry picked from commit 8bd52a2) (cherry picked from commit f2f322c1ea195905d080b303a0e97c905f9592f3)
greg-hellings
pushed a commit
to greg-hellings/tox-ansible
that referenced
this issue
Sep 3, 2021
This patch adds the support for molecule base configuration. It will allow us to use a global molecule configuration file[1] or to pass one or multiple base configuration file(s) according to ansible-molecule through the tox.ini file and the `molecule_config_files` option. By default, if not passing base configuration file(s) in the tox.ini file but if there is a global configuration file[1], this will be the reference to determine the driver name if the scenarios configuration files didn't override the default one coming from the global one[1]. If there is [1] at the project level and passing base configuration file(s) in the tox.ini file, those latter will take precedence over the global one[1]. Note that tox-ansible will now raise a RuntimeError if it finds out multiple driver name declaration when using multiple molecule base configuration. [1] - <PROJECT_ABSPATH>/.config/molecule/config.yml Fixes ansible#88 Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tox-ansible doesn't seem to take in consideration molecule scenarios with empty molecule.yml inheriting from .config/molecule/config.yml file.
The text was updated successfully, but these errors were encountered: