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

[monitoring] Ubuntu 24 as image for monitoring VM errors with docker install #409

Open
tarzanek opened this issue Oct 1, 2024 · 5 comments · May be fixed by #411
Open

[monitoring] Ubuntu 24 as image for monitoring VM errors with docker install #409

tarzanek opened this issue Oct 1, 2024 · 5 comments · May be fixed by #411

Comments

@tarzanek
Copy link
Collaborator

tarzanek commented Oct 1, 2024

TASK [ansible-scylla-monitoring : add docker's apt key] *****************************************************************************************************************************************
task path: /home/scyllaadm/azure-test/scylla-ansible-roles/ansible-scylla-monitoring/tasks/Debian.yml:36
fatal: [172.171.241.170]: FAILED! => {"changed": false, "msg": "Failed to download key at https://download.docker.com/linux/ubuntu/gpg: An unknown error occurred: 'CustomHTTPSConnection' object has no attribute 'cert_file'"}

so it seems docker install is likely different on U24
on U22 above passes OK

@tarzanek
Copy link
Collaborator Author

tarzanek commented Oct 2, 2024

so this is generic compat problem
https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix

ext_managed_services_auto_scylla@jc-ext-scylla-stg-mum-a-compute-jumpbox-1-001:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble
ext_managed_services_auto_scylla@jc-ext-scylla-stg-mum-a-compute-jumpbox-1-001:~$ python3 --version
Python 3.12.3

so ansible 6.7 supports only Python 3.8 - 3.10 :-(

@tarzanek
Copy link
Collaborator Author

tarzanek commented Oct 2, 2024

another fail, now from install of dependencies of role (but this dependency is not used anymore, so likely we can skip it by removing it from old copies of nodes.yml):

11:52:42  Starting galaxy role install process
11:52:42  [WARNING]: - mrlesmithjr.mdadm was NOT installed successfully: Unknown error
11:52:42  when attempting to call Galaxy at 'https://galaxy.ansible.com/api/':
11:52:42  'CustomHTTPSConnection' object has no attribute 'cert_file'.
11:52:42  'CustomHTTPSConnection' object has no attribute 'cert_file'
11:52:42  ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

@tarzanek
Copy link
Collaborator Author

tarzanek commented Oct 2, 2024

one obvious (bad) option is to use deadsnakes at least on Ubuntu
and use 3.10 with ansible 6.7 so we don't get forced to upgrade
(e.g. https://medium.com/@prateek.mehra/installing-python-3-9-in-ubuntu-22-04-docker-image-194f9c9f9725 )

the good option is to upgrade and go with the flow of course
(with all its pros and cons and extra maintenance tasks)

@igorribeiroduarte
Copy link
Collaborator

igorribeiroduarte commented Oct 2, 2024

I agree we should upgrade.
Most likely the upgrade will break only the async_tasks (#352), so we should fix this and then test the role with a more recent ansible version.

@vreniers
Copy link
Contributor

vreniers commented Oct 7, 2024

Note that regarding Ubuntu 24 there seem to be some hardcoded values indicating the supported OS per ScyllaDB version.

https://github.com/scylladb/scylla-ansible-roles/blob/master/ansible-scylla-node/tasks/upgrade/main.yml#L12

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