infrastructure icon indicating copy to clipboard operation
infrastructure copied to clipboard

Discuss upgrading Ansible on the VPC server

Open Haroon-Khel opened this issue 1 year ago • 3 comments

The version of ansible on the vpc server is outdated.

root@infra-ibmcloud-vagrant-x64:~# ansible --version
ansible 2.9.16
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.17 (default, Jul 20 2020, 15:37:01) [GCC 7.5.0]

it does not work well with the python 3.12, which is the latest python version present on the vagrant boxes hosted on the vpc server. As a result we have to implement hacky solutions to get our playbooks to run on the hosted vagrant boxes, see https://github.com/adoptium/infrastructure/pull/3663

We should be using a version of ansible >2.15 at least. But before upgrading, we need to discuss if certain OSs/vagrant boxes will be affected

Haroon-Khel avatar Jul 30 '24 15:07 Haroon-Khel

ping @steelhead31

Haroon-Khel avatar Jul 30 '24 15:07 Haroon-Khel

@Haroon-Khel , I've had a look into upgrading ansible on the host, but the O/S itself requires an upgrade.. see https://github.com/orgs/adoptium/projects/34/views/7?pane=issue&itemId=68479156 , the host upgrade is currently blocked, as Im awaiting an update on whether its possible to back up the host, prior to risking the host upgrade. Ping me if you fancy a chat about both of these issues, and we can do some planning/have some more discussion.

steelhead31 avatar Jul 31 '24 07:07 steelhead31

Related: Upgrade the OS on the vagrant host: https://github.com/adoptium/infrastructure/issues/3589

sxa avatar Aug 01 '24 15:08 sxa

@steelhead31 I guess this is probably done now that the VPC server has been upgraded?

sxa avatar Nov 05 '24 12:11 sxa

@sxa Indeed, ansible and the vagrant server are currently as up to date as we'd like :).

I'll close this issue, fixed via https://github.com/adoptium/infrastructure/issues/3729

steelhead31 avatar Nov 05 '24 12:11 steelhead31