ansible-community / ansible-community/molecule-plugins

ERROR Failed to validate /path/to/my/molecule.yml

Open
#371 3 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
164
Forks
113
Avg merge
4d 20h
Merged PRs (30d)
1

Description

I might have missed the memo, but I can find no way to get molecule to actually tell me, why exactly it fails to validate my molecule.yml.
Is this intended, or did I miss something? It would be very helpful to at least get a sense of what fails.

In my case, if happened after the update from 26.7.8 to 26.7.15. So I wasn't expecting breakage and I did not change my molecule.yml.
So I went through commenting out most of the file and then line by line commenting back in the different config blocks.
Turns out I was using cgroupns: host to work around some Docker/Podman issue back in the day. I removed the key and the validation succeeds.
I am still checking, if and why cgroupns: became obsolete, but the point of this issue is, that needed to hunt for this finding way too long.

Thanks for any insights and help!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the validation failure with the molecule.yml configuration containing cgroupns: host, then trace the validation entry point to see why only the file path is reported. Done means invalid configuration identifies the failing key and gives a useful reason or location instead of the generic validation error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.