From 5bc23109f1dde2c8382954b902f44d3489387046 Mon Sep 17 00:00:00 2001 From: Palash Gandhi Date: Tue, 3 Dec 2024 21:52:03 -0800 Subject: [PATCH 1/3] DLPX-92876 delphix-platform dependencies need to be updated to allow installation on 24.04 PR URL: https://www.github.com/delphix/delphix-platform/pull/502 --- debian/postinst | 2 ++ debian/rules | 17 +++-------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/debian/postinst b/debian/postinst index 9b276316..da1ff453 100644 --- a/debian/postinst +++ b/debian/postinst @@ -70,6 +70,8 @@ configure) # postgres UID. Note that we put this code here instead of the # delphix-platform service as we need it to be executed before # the postgres package gets installed. + sed -i 's/^UID_MAX.*/UID_MAX 65437/g' /etc/login.defs + sed -i 's/^GID_MAX.*/GID_MAX 65437/g' /etc/login.defs addgroup postgres --gid 65437 adduser --home /var/lib/postgresql --no-create-home \ --shell /bin/bash --ingroup postgres \ diff --git a/debian/rules b/debian/rules index 865bac7b..4fbd4cac 100755 --- a/debian/rules +++ b/debian/rules @@ -110,14 +110,6 @@ DEPENDS += $(DEPENDS.$(TARGET_PLATFORM)) # DEPENDS += delphix-build-info, -# -# The usrmerge package modifies the layout of directories under root (/) upon -# installation, to ensure that a Delphix Engine upgraded to Ubuntu 20.04 has -# the same directory layout as a Delphix Engine that initially came on -# Ubuntu 20.04 (or later). -# -DEPENDS += usrmerge, - # # These packages help strengthen the security of the appliance by identifying # and preventing undesired behaviors. @@ -131,18 +123,16 @@ DEPENDS += aide, \ # or replaced without regard for backward compatibility. # DEPENDS += aptitude, \ - awscli, \ - bcc-tools, \ + bcc, \ bpftrace, \ crash-python, \ delphix-rust, \ dnsutils, \ - drgn, \ + python3-drgn, \ dstat, \ emacs-nox, \ ethtool, \ gdb, \ - gdb-python, \ htop, \ iftop, \ inotify-tools, \ @@ -150,7 +140,7 @@ DEPENDS += aptitude, \ jq, \ kdump-tools, \ ldap-utils, \ - libkdumpfile, \ + libkdumpfile10, \ linux-tools-common, \ lsof, \ man-db, \ @@ -229,4 +219,3 @@ override_dh_auto_test: # testing via another mechanism, so running it during package # builds is unnecessary. # - From 4c4c8fb9f4c911119d8fab378b59bd1daec03ffa Mon Sep 17 00:00:00 2001 From: Palash Gandhi Date: Wed, 8 Jan 2025 12:15:18 -0800 Subject: [PATCH 2/3] Add systemd-resolved dependency because it is not installed by default --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 4fbd4cac..66aa5cce 100755 --- a/debian/rules +++ b/debian/rules @@ -85,6 +85,7 @@ DEPENDS += ansible, \ rsyslog, \ sudo, \ systemd-container, \ + systemd-resolved, \ tzdata, \ udev, From 6d257b816ce0621feb5f2aa3aad7192a5c7e300d Mon Sep 17 00:00:00 2001 From: Palash Gandhi Date: Fri, 10 Jan 2025 12:33:30 -0800 Subject: [PATCH 3/3] JAVA_HOME needs to be updated for 24.04 engines --- .../10-delphix-platform/roles/delphix-platform/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml b/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml index 36f1956a..0126e60b 100644 --- a/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml +++ b/files/common/var/lib/delphix-platform/ansible/10-delphix-platform/roles/delphix-platform/tasks/main.yml @@ -349,7 +349,7 @@ regexp: '^{{ item.key }}=' line: '{{ item.key }}="{{ item.value }}"' with_items: - - { key: 'JAVA_HOME', value: '/usr/lib/jvm/adoptopenjdk-java8-jdk-amd64' } + - { key: 'JAVA_HOME', value: '/usr/lib/jvm/java-8-openjdk-amd64' } # # Configure the Azure agent. Only run this on Azure, since that is the