From 3f2449f3d89ddd23a0785872a1e1f5acabe6531e Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 26 Jul 2023 09:20:53 +0800 Subject: [PATCH] packaging: install tzdata-java on centos7/centos8 (#7768) When install cloudstack on latest rocky8 server with java-11-openjdk-11.0.20.0.8-2.el8.x86_64, management server cannot be started due to error ``` Caused by: java.lang.Error: java.io.FileNotFoundException: /usr/lib/jvm/java-11-openjdk-11.0.20.0.8-2.el8.x86_64/lib/tzdb.dat (No such file or directory) ``` It is because the package `tzdata-java` is not automatically installed. (It was installed with java-11-openjdk-11.0.18.0.10-2.el8_7.x86_64, but not with latest java-11-openjdk-11.0.20.0.8-2.el8.x86_64) --- packaging/centos7/cloud.spec | 3 +++ packaging/centos8/cloud.spec | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packaging/centos7/cloud.spec b/packaging/centos7/cloud.spec index 44dc06d1849..c6ae6a63ae5 100644 --- a/packaging/centos7/cloud.spec +++ b/packaging/centos7/cloud.spec @@ -61,6 +61,7 @@ intelligent IaaS cloud implementation. %package management Summary: CloudStack management server UI Requires: java-11-openjdk +Requires: tzdata-java Requires: python Requires: python3 Requires: bash @@ -107,6 +108,7 @@ The Apache CloudStack files shared between agent and management server Summary: CloudStack Agent for KVM hypervisors Requires: openssh-clients Requires: java-11-openjdk +Requires: tzdata-java Requires: %{name}-common = %{_ver} Requires: libvirt Requires: bridge-utils @@ -142,6 +144,7 @@ The CloudStack baremetal agent %package usage Summary: CloudStack Usage calculation server Requires: java-11-openjdk +Requires: tzdata-java Group: System Environment/Libraries %description usage The CloudStack usage calculation service diff --git a/packaging/centos8/cloud.spec b/packaging/centos8/cloud.spec index f2b020518db..a6b148afbe9 100644 --- a/packaging/centos8/cloud.spec +++ b/packaging/centos8/cloud.spec @@ -53,6 +53,7 @@ intelligent IaaS cloud implementation. %package management Summary: CloudStack management server UI Requires: java-11-openjdk +Requires: tzdata-java Requires: python3 Requires: bash Requires: gawk @@ -98,6 +99,7 @@ The Apache CloudStack files shared between agent and management server Summary: CloudStack Agent for KVM hypervisors Requires: (openssh-clients or openssh) Requires: java-11-openjdk +Requires: tzdata-java Requires: %{name}-common = %{_ver} Requires: libvirt Requires: ebtables @@ -134,6 +136,7 @@ The CloudStack baremetal agent %package usage Summary: CloudStack Usage calculation server Requires: java-11-openjdk +Requires: tzdata-java Group: System Environment/Libraries %description usage The CloudStack usage calculation service