-
Notifications
You must be signed in to change notification settings - Fork 666
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
v3.1.1 regression: {'driver': [{'name': ['unallowed value docker']}]} #2891
Comments
I think this is the reason: #2811
|
yeh I think you should have made this a 4.0.0, because thats very much a breaking change lol |
Totally agree... I have more than a dozen different pipelines broken because that... 😞 |
Same here... any chance this can be reverted in a patch release and moved to 4.0? |
I think in one fell swoop you have literally broken everyone's molecule tests |
Docker driver is now "out" of Molecule core. fixed: ERROR: Failed to pre-validate. {'driver': [{'name': ['unallowed value docker']}]} ansible/molecule#2891
@GR360RY, try setting |
@bhean , Thanks this indeed fixed the below issue for me!
|
Install it as |
Got the same issue but with podman, I installed molecule-podman and the error moved forward, now, I'm hitting this.
This is how my converge.yml looks like:
And my molecule.yml:
Also, I'm running them using pytest like:
But if I go inside the role and execute I have all my molecule tests BrOkEn Thanks! |
The top version number will be touched only for marketing purposes. We use the same semantic as Ansible, where the X.Y is what defines a major version. Release notes and documentation do mention that now you need to install the drivers for podman and docker as they are not installed by default. You can either use the two extras or directly mention the plugin packages. @ccamacho Take a look at https://github.com/openstack/tripleo-quickstart-extras/blob/master/molecule-requirements.txt#L10 -- this is how you should install python packages, always keeping a range. The range depends on project policy on changing versions. Since previous version was 3.0, it was easy to confuse but if you looks back at 2.x changes, you will see that each X.Y version counted as major. I recently had to fix docker driver, I will try to take a look at podman one now. |
I disagree about the purposes of the "top" version you mention. According to the "Semantic Versioning" specification, if a new release introduce a breaking-change (like this), you should increase this top version to avoid the problems reported on this post. I know you mention that in a pair of previous releases, but its impossible to me read the changelog of every application, tool or library involved in my software looking for some incompatible change, that's the reason because "I trust" in the semver specification... I'm very grateful with your work in this (and many others) extremely useful projects, but IMHO I think you should increase the top version when you are merging changes that could potentially broke a lot of other projects. |
Yep agree with @bhean, https://semver.org/ is very clear on what semantic versioning is:
if ansible doesn't use this, then that is also wrong (As above, I'd also note that you guys normally do a great job, that I'm very grateful for thanks 😄) |
We are also right... we count versions starting with 0, not 1:
:D |
then shouldn't your versioning be |
It is a silent zero! ;) |
@ssbarnea ++ for splitting this, we do it, we fix it if it breaks and we continue... The only thing is that we might have a regression in molecule-podman, (I was only able to fix this issue in molecule-docker and not in molecule-podman) otherwise thanks a lot for this change. |
Out of interest, what is the definition of an EPOCH!? When does Ansible decide to move from 2 to 3? |
I am closing the ticket to avoid confusing people about a documented change in 3.1. @chrisjsewell The epoch part was more of a joke, but reality may prove it more real than it was intended. I am not part of Ansible organization and while I know there were lots of voices asking for 2.10 to be named as 3.0, they decided to keep going on 2.x for the forseable future. If anyone want to make a PR to update the docs regarding versioning of molecule I will be happy to review it. Yes, 1.2.3 will only contain bugfixes for the 1.2.x versions but 1.3.0 will always contain stuff that can break 1.2.x users. In fact bumping middle number is determined by the presence of a breaking change (major label). |
With all the respect @ssbarnea - you are not using semantic versioning in the right way. The middle number represents a minor update. See https://semver.org:
|
See ansible/molecule#2891 for more information on the driver being split out.
See ansible/molecule#2891 for more information on the driver being split out.
With due respect, a breaking change is NOT backwards compatible. |
Now, from v3.1.1 molecule does not include docker support our of the box. See ansible/molecule#2891 and ansible-community#2811.
Updated Dockerfile to circumvent ansible/molecule#2891 We now need to `pip install molecule-docker`.
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Desired Behavior
molecule should pre-validate.
Actual Behaviour
molecule v3.1.1 fails with this error:
The text was updated successfully, but these errors were encountered: