Hi Everyone,
The following is a comprehensive proposal for what the pulp installers subteam will focus on over the next few months, and generally here on out. It is designed to address the following dilemmas:
- Containers are what most non-ansible-expert users want.
- There was a lot of constructive criticism for pulp_installer at pulpcon 2021.
- Most of that feedback is addressable via docs updates, some via engineering changes, some cannot be feasibly addressed.
The proposal at a high-level
- The single container will be recommended as the default way to install pulp.
- pulp_installerās āpipā install mode will remain, but will not be the focus of engineering. pulp_installerās primary use will be āpackagesā install mode, whether for use by Katello/Galaxy, or by Pulp users.
- pulp_installer will be clearly documented on how to do an āinstallationā (pulp_services meta role) vs an āorchestrationā (pulp_all_services meta role.)
- The single container will receive a large docs revamp, explaining what we are doing, not just the exact commands to run. See this as an example.
- pulp_installer will receive a medium-size docs revamp.
- The pulp manual installation docs will receive a medium-size revamp. Particuarly including missing areas, and webserver configuration.
- Some engineering changes will be made to the installer, focused on usability.
- There will be an emphasis on solving missing features in the single container from here on out, rather than missing features in pulp_installer.
The following engineering changes will be made for the installer:
- Stop using duplicate variables in the installer. For example, instead of requiring users to set both āpulp_cache_dirā and āpulp_settings.working_directoryā, pulp_installer will only recognize and customize the install based on āpulp_settings.working_directoryā.
- Systemd overrides will be used instead of jinja2 templating the systemd unit files (for the pulp services.). This allows for easier customization after installation, as well as referencing what a systemd unit file will look like for manual installations.
The following changes will be made to the installer docs:
- pulp_installer will be clearly documented on how to do an āinstallationā (pulp_services meta role) vs an āorchestrationā (pulp_all_services meta role.) When doing an āinstallationā, the postgresql database must be accessible, and configured via variables to the installer. (installer assumes ālocalhostā by default). The installer will make some changes to the system outside of simple file installation, such as the pulp service being started/restarted, ācollect staticā commands being run, some OS components like sudo being configured, and the pulp_health_check role will be run. The webserver will either be configured by the installer(including being started/restarted) or by the user according to provided config files in the manual installation docs.
- We will advertise better the new ability to set settings in /etc/pulp/settings.local.py, which the installer will not override.
- When it comes to variables, we will clearly identify which variables must be specified by the installer during the initial install, and cannot be specified in /etc/pulp/settings.local.py after installation. An example is āpulp_settings.working_directoryā, which is a folder path that the installer will not move.
- When it comes to variables, we will clearly identify the variables that must be specified in order for the installer to integrate with existing database/redis/object storage services.
- We will document the supported versions of non-orchestrated redis, postgres and webservers.
- We will provide an architectural overview of pulp, including adding diagrams to pages.
On a design note, I want to discuss the topic of āinstallation vs orchestrationā further. The original name for pulp_installer was āansible-pulpā. That may be an appropriate name to re-adopt. However, other than naming, I looked at every single task under the pulp_services meta role. pulp_services needs the database connection to be present, but it generally doesnāt orchestrate the system any further than doing things like starting/restarting the service, and configuring some parts of the OS like sudo. It seems like pulp_services performs the appropriate, limited behavior for an āinstaller.ā
Also, generally an āinstallerā will include components at specific versions. This is behavior that could be implemented by doing something like:
- running a CI job every night to install all the compatible plugins and generate a distribution
- test that this new distribution works
- save the distribution as a āpip freezeā list
- provide the āpip freezeā list in the installer
- When users run the installer in the new āpip freezeā mode, always install all the dependencies but do not install the plugins unless requested. (Because once a plugin is installed, it cannot be uninstalled. Including when you upgrade pulpcore to a new version, which it may not be compatible with.)
- Constantly re-release the installer with a new list āpip freezeā list.
However, this is a lot of work to do for an installation mechanism that users prefer containers over, and which galaxy_ng and katello have no use for. They provide their own RPMs, and test the distribution for their own needs. Therefore, we are strongly leaning against doing something like this.