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

Added changes to support and enable installation of SODA on Ubuntu20.04 #488

Merged

Conversation

anvithks
Copy link
Member

@anvithks anvithks commented Jan 4, 2022

What type of PR is this?
/kind new feature

What this PR does / why we need it:
This PR enables installation of SODA on Ubuntu 20.04.

  • Python2 is deprecated in Ubuntu20.04 and not available. All python-pip installations are upgraded to python3-pip
  • All scripts running python2 scripts are now executed with python3
  • Ansible version is updated to 2.9.6 (The default supported version for the ceph-ansible version supported)
  • Changed the ansible variable syntax to updated syntax for Ansible 2.9. Changed usage of single and double quotes.
  • install_as_systemd is set to false. Bring api, controller and dock as standalone processes.
  • Added an other variable called install_etcd_as_systemd and set it to false. etcd is also brought up as a standalone process.
  • Updated the CI to work on the ubuntu2004-experimental branch.
  • Removed the CI check for install from repository. Currently on install from release is tested with Ubuntu20.04

Which issue(s) this PR fixes:
Fixes #485

Test Report Added?:
/kind TESTED

Test Report:
Tested on Ubuntu 20.04 on Virtual Box.

Special notes for your reviewer:
There are some issues with the Anisble installation and etcd service running as a systemd process. Sometimes the process takes too much time to come up. This needs to be debugged and may be the etcd version needs to be updated.

@joseph-v
Copy link
Collaborator

joseph-v commented Jan 6, 2022

This PR seems to handle two different features (Ubuntu 20.04 support and Python 2 removal). Can we handle it in separate PRs, so that user can explore all existing features in Ubuntu 20.04?

Ubutnu 20.04 may not have python 2, but there seems to be steps available to install it (Please check: https://linuxconfig.org/install-python-2-on-ubuntu-20-04-focal-fossa-linux)

@@ -82,14 +82,11 @@

- name: Install RabbitMQ package
apt:
name: "{{ item }}"
name: ['erlang-base', 'erlang-asn1', 'erlang-crypto', 'erlang-eldap', 'erlang-ftp', 'erlang-inets', 'erlang-mnesia', 'erlang-os-mon', 'erlang-parsetools', 'erlang-public-key', 'erlang-runtime-tools', 'erlang-snmp', 'erlang-ssl', 'erlang-syntax-tools', 'erlang-tftp', 'erlang-tools', 'erlang-xmerl', 'apt-transport-https', 'rabbitmq-server']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need all these additional packages?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joseph-v As per this install guide we need to install these pacakges.

@anvithks
Copy link
Member Author

anvithks commented Jan 6, 2022

This PR seems to handle two different features (Ubuntu 20.04 support and Python 2 removal). Can we handle it in separate PRs, so that user can explore all existing features in Ubuntu 20.04?

Python2 removal is due to the Ansible version upgrade to 2.9.6. They can be separated but there are many dependencies that need to be checked when we install Python2 on ubuntu20.04.
Let me check if I can separate the PRs.

Ubutnu 20.04 may not have python 2, but there seems to be steps available to install it (Please check: https://linuxconfig.org/install-python-2-on-ubuntu-20-04-focal-fossa-linux)

Yes. I will check this link and try out the installation.

Copy link
Collaborator

@joseph-v joseph-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joseph-v joseph-v merged commit 726a472 into sodafoundation:ubuntu2004-experimental Jan 12, 2022
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 this pull request may close these issues.

3 participants