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

Missing docker module errors in some computers #700

Open
3 tasks
vjrj opened this issue Oct 9, 2023 · 4 comments
Open
3 tasks

Missing docker module errors in some computers #700

vjrj opened this issue Oct 9, 2023 · 4 comments

Comments

@vjrj
Copy link
Collaborator

vjrj commented Oct 9, 2023

@matthewandrews and before @djtfmartin reported about issues with docker related modules.

ERROR! couldn't resolve module/action 'docker_stack'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in 'ala-install/ansible/roles/docker-common/tasks/stack-create.yml': line 12, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Remove Docker Swarm stack
  ^ here

This is commented for instance here.

I did not install anything extra in any machine where I tested this PR or where I'm using it. This is why I'm thinking that probably it can be a python related issue that only affects to Macs computers.

Reading ansible issues, I found this ansible member reply curiously to an old teammate:

image

That suggests that the use of ansible in Macs is not a bed of roses and he also gives some suggestions.

The idea with the Docker Swarm PR #683 was to not affect the current uses of ala-install but this seems it's not true. Sorry!

The current situation is that with #691 the problem is mitigated 1) but the problem is still there if you try to use the docker deployment in Macs and 2) also this change affects tasks in the includes that cannot be selected by tags.

This is why I propose to:

  • Use import_tasks only in vm tasks (to allow you to select any specific vm tag).
  • To substitute the docker_swarm and docker_stack tasks with similar exec tasks (sadly). Maybe we can re-add them in more recent ansible versions.
  • Later, to use import_tasks too in these non vm tasks, to allow also to pick or skip any specific tag.

Any thoughts?

@matthewandrews
Copy link
Member

That sounds like a sensible approach to me, thanks.

@joe-lipson
Copy link
Contributor

I think this sums up the state of Python on local machines especially Macs https://xkcd.com/1987/ :D That seems reasonable to get things running. I'd propose we update our Ansible core to the latest version as a first step. I realise this may be easier said than done. Ideally there would be no local builds or configs, individual environments are too diverse and it's impossible to have them all in a consistent state anyway. A push to a repo can trigger a build/deploy from somewhere central

@vjrj
Copy link
Collaborator Author

vjrj commented Oct 10, 2023

I didn't know that xkcd :-D

For now I'll change only the vm-tasks using import, because, I also prefer to update ansible.

vjrj added a commit that referenced this issue Oct 10, 2023
@vjrj vjrj mentioned this issue Oct 10, 2023
@vjrj
Copy link
Collaborator Author

vjrj commented Jun 10, 2024

I updated ansible in #800 . It's tested using u18 and u20 and both ansible versions.

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

No branches or pull requests

3 participants