- 1 RHEL9 Experiences
- 1.1 Stream vs Derrivatives
- 1.2 Missing Packages from EPEL??
- 1.3 XFS incompatibility
- 1.4 VMs
- 1.5 NetworkManager
- 1.6 JournalCtl
- 1.7 Podman
- 1.8 Security
Experiences with RHEL9 based systems and changes that are good to know.
Stream vs Derrivatives
What is Stream
CentOS Stream is a _minimal_ rolling release distro.
What this means is that CentOS Stream 9 can be thought of as permanently 9.1.5 or 9.2.5 i.e. mid-release between minor versions, but it is NOT 10-beta or 11-alpha.
Calling this a 'rolling release', whilst true, makes most people think of Gentoo or Arch linux which are enthusiast distros which more embrase the 'move fast and break things' approach.
Reasons to use Stream
Environments which are running user or 'untrusted' code are very well suited to a well maintained stream environment.
* Faster access to new features * Faster/Better security updates * Stable RHEL base
For developers this means that you also get to identify problems early for people who are planning to upgrade from 9.1->9.2->9.3 so you can offer them better support.
Reasons to not use Stream
Environments running dedicated services which just _need_ security patching might experience breakage of certain 3rd-party apps/services or even some supported ones (given the huge codebase RHEL support).
Having 9.1/9.2/9.3 allows service maintainers to more easily temporarily revert until a bug is fixed.
Developers running large complex projects may also experience slight pain points of having a rolling distro underneath them. That being said, this is no different than trying to support Fedora/openSuSE or Ubuntu in that these distros regularly patch and add minor updates between major product cycles.
Missing Packages from EPEL??
Some things require PowerTools repo in EL8 which is now named CRB in EL9.
XFS filesystems made under 9 aren't backwards compatible with 7/8. At Edinburgh we couldn't mount/edit our VM template from a 7/8 host unless it was made using EXT4.
I don't know how/if this will impact proxmox.
If you're running Alma9 in a VM environment chances are you might want to set a fixed hostname to match a DNS entry for this VM to be the system hostname.
Unfortunately NetworkManager will agressively try to set the system hostname based upon what it finds from the network by default. (Great for the HyperVisor admin, not so great for the VM admin).
To force the system to set the hostname to what you want without NetworkManager overriding it:
... kernel.hostname = myawesomehostname ...
If you want to enable console access to a VM (an alternative to VNC) the kernel has to be told to use a tty console as a terminal. This allows for a good fallback access to a VM when all else fails.
See here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_and_managing_virtualization/assembly_connecting-to-virtual-machines_configuring-and-managing-virtualization#proc_opening-a-virtual-machine-serial-console_assembly_connecting-to-virtual-machines
No more network-scripts
Whilst I think you can beat RH9 clones into submission to accept network-scripts it's worth just using NetworkManager.
An example static IP configuration for a RH9 box if you're not using DHCP might look something like:
[connection] id=enp1s0 uuid=SOME-UUID type=ethernet autoconnect-priority=-999 interface-name=enp1s0 timestamp=1666698700 [ethernet] [ipv4] method=manual address=STATIC-IP/24,GATEWAY-IP dns=18.104.22.168;22.214.171.124; [ipv6] addr-gen-mode=eui64 method=auto [proxy]
If you change these files you have to first restart NetworkManager to get it to re-read it's config from disk. Then, re-up any changed interfaces to get NM to apply teh changes you made. Or, if you fancy a cuppa, just reboot.
Logs in RAM
Journalctl by default put all of the system journal in /run which is in tmpfs. After some period of time the system locked up due to memory exhaustion which required a reboot and re-configure of journalctl. (Most of the noise in the logs was from external scanning services/tools probing http(s) endpoints, but on one host a significant few GB or so was due to the box being hammered with ssh requests.)
This was the case for Alma 9.0/9.1, it's unknown if Rocky configures this differently.
In high verbosity environments (multiple-podman containers, or dCache) incorrectly tuning journalctl can lead to problems with performance and useful debugging messages being lost. Edinburgh is investigating a good set of configuration parameters to recommend for high-verbosity environments running on hdd moving forward.
Config from Edinburgh:
[root@neeps ~]# mkdir -p /var/log/journal/ [root@neeps ~]# restorecon -R -v /var/log/journal/ [root@neeps ~]# cat /etc/systemd/journald.conf [Journal] Storage=persistent Compress=true SyncIntervalSec=30s RateLimitInterval=0 RateLimitBurst=0 SystemMaxUse=10G SystemKeepFree=1G RuntimeMaxUse=10G RuntimeKeepFree=1G MaxRetentionSec=3month MaxFileSec=3month MaxLevelStore=debug MaxLevelSyslog=debug MaxLevelKMsg=notice [root@neeps ~]# systemctl restart systemd-journald [root@neeps ~]# journalctl --sync
Installing `docker-compose` and using `podman` on RHEL9 systems works quite well with complex networking configs.
Seems to work well with `docker-compose.yml` recipies, although defining "networks" in podman is not quite 100% compatible with docker syntax.
Containers created/managed by `podman-compose` vs `podman` typically end up with different properties. Whilst you can enter a podman-compose container from podman, if you (re-)start a podman-compose container using the podman command directly you will get different behaviours impacting things like network due to podmans different defaults.
There are some similar gotchas between `docker-compose` vs `docker` but in podman these are more readily apparent and can cause headaches.
If you disable firewalld you can now install `iptables-services` from the core repos vs epel and this gives back the ability to manage your firewall via `/etc/sysconfig/iptables`.
We plan to investigate moving some iptables policies to nftables.
Certificate Key Length Policy
To fix this for SSH see: https://access.redhat.com/solutions/6973518
This is mainly to allow connections back to legacy systems and I don't think changing the system policy to allow usage on RHEL9+ is encouraged
Certificate Encryption Type
SHA-1 at the time of writing is used by
update-crypto-policies --set DEFAULT:SHA1
Failure to load cert (RC2-40-CBC)
The above algorithm and others is now deprecated in later openssl3.
The fix for this is easy, just add the `-legacy` when trying to load an old format cert.
This was encountered when loading an old format host cert generated from CertWizard, which handles certs BADLY, not confirmed on PeCR as it generates csr and struggles to download the signed cert and not tested with cert_sorcerer yet due to having to spend >3days understanding and fixing a Tier2 that certwizard broke.