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

Getting it working with Kolla Ansible #1202

Open
dniasoff opened this issue Dec 15, 2024 · 2 comments
Open

Getting it working with Kolla Ansible #1202

dniasoff opened this issue Dec 15, 2024 · 2 comments
Labels
affects-0.3 Issues related to 0.3.X Mitogen releases feature Design and functional additions

Comments

@dniasoff
Copy link

Hi,

Running on Ubuntu Noble with default Python 3.12 and Mitogen v0.3.19 from github.

Target nodes are Ubuntu Jammy,

Using Kolla Ansible to deploy OpenStack with is really slow and trying to speed it up with Mitogen

Getting errors like ModuleNotFound

failed: [herb] (item={'key': 'kolla-toolbox', 'value': {'container_name': 'kolla_toolbox', 'group': 'kolla-toolbox', 'enabled': True, 'image': 'repo.qumulus.io/kolla/dev/kolla-toolbox:latest', 'environment': {'ANSIBLE_NOCOLOR': '1', 'ANSIBLE_LIBRARY': '/usr/share/ansible', 'REQUESTS_CA_BUNDLE': ''}, 'privileged': True, 'volumes': ['/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', '/dev/:/dev/', '/run/:/run/:shared', 'kolla_logs:/var/log/kolla/'], 'dimensions': {}}}) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "ansible_loop_var": "item", "changed": true, "item": {"key": "kolla-toolbox", "value": {"container_name": "kolla_toolbox", "dimensions": {}, "enabled": true, "environment": {"ANSIBLE_LIBRARY": "/usr/share/ansible", "ANSIBLE_NOCOLOR": "1", "REQUESTS_CA_BUNDLE": ""}, "group": "kolla-toolbox", "image": "repo.qumulus.io/kolla/dev/kolla-toolbox:latest", "privileged": true, "volumes": ["/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/etc/timezone:/etc/timezone:ro", "/dev/:/dev/", "/run/:/run/:shared", "kolla_logs:/var/log/kolla/"]}}, "msg": "'Traceback (most recent call last):\\n  File \"master:/home/qcp_user/venv/share/kolla-ansible/ansible/library/kolla_container.py\", line 416, in main\\nModuleNotFoundError: No module named \\'ansible.module_utils.kolla_docker_worker\\'\\n'"}
failed: [mole] (item={'key': 'kolla-toolbox', 'value': {'container_name': 'kolla_toolbox', 'group': 'kolla-toolbox', 'enabled': True, 'image': 'repo.qumulus.io/kolla/dev/kolla-toolbox:latest', 'environment': {'ANSIBLE_NOCOLOR': '1', 'ANSIBLE_LIBRARY': '/usr/share/ansible', 'REQUESTS_CA_BUNDLE': ''}, 'privileged': True, 'volumes': ['/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', '/dev/:/dev/', '/run/:/run/:shared', 'kolla_logs:/var/log/kolla/'], 'dimensions': {}}}) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "ansible_loop_var": "item", "changed": true, "item": {"key": "kolla-toolbox", "value": {"container_name": "kolla_toolbox", "dimensions": {}, "enabled": true, "environment": {"ANSIBLE_LIBRARY": "/usr/share/ansible", "ANSIBLE_NOCOLOR": "1", "REQUESTS_CA_BUNDLE": ""}, "group": "kolla-toolbox", "image": "repo.qumulus.io/kolla/dev/kolla-toolbox:latest", "privileged": true, "volumes": ["/etc/kolla/kolla-toolbox/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/etc/timezone:/etc/timezone:ro", "/dev/:/dev/", "/run/:/run/:shared", "kolla_logs:/var/log/kolla/"]}}, "msg": "'Traceback (most recent call last):\\n  File \"master:/home/qcp_user/venv/share/kolla-ansible/ansible/library/kolla_container.py\", line 416, in main\\nModuleNotFoundError: No module named \\'ansible.module_utils.kolla_docker_worker\\'\\n'"}
failed: [herb] (item={'key': 'cron', 'value': {'container_name': 'cron', 'group': 'cron', 'enabled': True, 'image': 'repo.qumulus.io/kolla/dev/cron:latest', 'environment': {'KOLLA_LOGROTATE_SCHEDULE': 'daily'}, 'volumes': ['/etc/kolla/cron/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/'], 'dimensions': {}}}) => {"ansible_facts": {"discovered_interpreter_python": "/usr/bin/python3"}, "ansible_loop_var": "item", "changed": true, "item": {"key": "cron", "value": {"container_name": "cron", "dimensions": {}, "enabled": true, "environment": {"KOLLA_LOGROTATE_SCHEDULE": "daily"}, "group": "cron", "image": "repo.qumulus.io/kolla/dev/cron:latest", "volumes": ["/etc/kolla/cron/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/etc/timezone:/etc/timezone:ro", "kolla_logs:/var/log/kolla/"]}}, "msg": "'Traceback (most recent call last):\\n  File \"master:/home/qcp_user/venv/share/kolla-ansible/ansible/library/kolla_container.py\", line 416, in main\\nModuleNotFoundError: No module named \\'ansible.module_utils.kolla_docker_worker\\'\\n'"}

Is there any chance I can get Mitogen working with Kolla Ansible or is it a mammoth task?

Thanks

Daniel

@dniasoff dniasoff added affects-0.3 Issues related to 0.3.X Mitogen releases bug Code feature that hinders desired execution outcome labels Dec 15, 2024
@moreati
Copy link
Member

moreati commented Dec 16, 2024

I don't know, I've not heard of Kolla Ansible before. It may be as simple as fixing or enhancing Ansible Collections support (there may be PRs in progress), or Kolla may be doing odd things that don't mesh with Mitogen's odd things.

Notes to self

  • Ubuntu Noble is 24.04 LTS
  • Jammy is 20.04

@moreati
Copy link
Member

moreati commented Jan 9, 2025

I've not heard of Kolla Ansible before

From https://github.com/openstack/kolla-ansible it appears to be a combination of

@moreati moreati added feature Design and functional additions and removed bug Code feature that hinders desired execution outcome labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-0.3 Issues related to 0.3.X Mitogen releases feature Design and functional additions
Projects
None yet
Development

No branches or pull requests

2 participants