Skip to content
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

Molecule Failures #1324

Closed
pyrodie18 opened this issue Jul 6, 2024 · 7 comments · Fixed by #1332
Closed

Molecule Failures #1324

pyrodie18 opened this issue Jul 6, 2024 · 7 comments · Fixed by #1332

Comments

@pyrodie18
Copy link
Collaborator

@BGmot do we have any ideas why the hell Molecule keeps failing. I feel like it has happened SIGNIFICANTLY more since @eb4x brought in #1303 but I see no reason why it would be happening. Either of you guys have ideas?

@pyrodie18
Copy link
Collaborator Author

Ok, looking closer it looks like it is AWAYS only the agent role and ALWAYS only Debian/Ubuntu that is failing.

@BGmot
Copy link
Collaborator

BGmot commented Jul 6, 2024

Yes, but re-running the same tests help.

@BGmot
Copy link
Collaborator

BGmot commented Jul 6, 2024

Moreover, when I execute these tests on my local machine they never fail.

@eb4x
Copy link
Collaborator

eb4x commented Jul 6, 2024

I noticed the same errors in github_workflows of zabbix_agent on debian/ubuntu systems like a week or two before merge aswell. They all seem to fail during the exact same step, during copying of the ansiballz onto the host/container in some prepare.yml step, straight after the container has been created.

Some other things to consider are if the github ubuntu-20.04 runner image has changed recently or the geerlingguy images.

@pyrodie18
Copy link
Collaborator Author

Haven't looked at either of those images but not a bad idea.

@BGmot
Copy link
Collaborator

BGmot commented Jul 7, 2024

geerlingguy's geerlingguy/docker-debian11-ansible last change was on Dec 25, 2022 and it is failing for us.
ubuntu-20.04 runner is used for all other OS's tests and they don't fail.

@BGmot
Copy link
Collaborator

BGmot commented Jul 8, 2024

I don't know what is wrong with Ubuntu and Debian images but I assumed that containers are not "quite ready" for "prepare" operations after their creation so adding little delay after a container is created and before molecule starts pushing its files into the container seems to fix the issue (I ran number of tests in GitHub and all of them succeeded). Let's see whether it really fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants