Skip to content

Commit 3f2449f

Browse files
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)
1 parent f9b7bcf commit 3f2449f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packaging/centos7/cloud.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ intelligent IaaS cloud implementation.
6161
%package management
6262
Summary: CloudStack management server UI
6363
Requires: java-11-openjdk
64+
Requires: tzdata-java
6465
Requires: python
6566
Requires: python3
6667
Requires: bash
@@ -107,6 +108,7 @@ The Apache CloudStack files shared between agent and management server
107108
Summary: CloudStack Agent for KVM hypervisors
108109
Requires: openssh-clients
109110
Requires: java-11-openjdk
111+
Requires: tzdata-java
110112
Requires: %{name}-common = %{_ver}
111113
Requires: libvirt
112114
Requires: bridge-utils
@@ -142,6 +144,7 @@ The CloudStack baremetal agent
142144
%package usage
143145
Summary: CloudStack Usage calculation server
144146
Requires: java-11-openjdk
147+
Requires: tzdata-java
145148
Group: System Environment/Libraries
146149
%description usage
147150
The CloudStack usage calculation service

packaging/centos8/cloud.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ intelligent IaaS cloud implementation.
5353
%package management
5454
Summary: CloudStack management server UI
5555
Requires: java-11-openjdk
56+
Requires: tzdata-java
5657
Requires: python3
5758
Requires: bash
5859
Requires: gawk
@@ -98,6 +99,7 @@ The Apache CloudStack files shared between agent and management server
9899
Summary: CloudStack Agent for KVM hypervisors
99100
Requires: (openssh-clients or openssh)
100101
Requires: java-11-openjdk
102+
Requires: tzdata-java
101103
Requires: %{name}-common = %{_ver}
102104
Requires: libvirt
103105
Requires: ebtables
@@ -134,6 +136,7 @@ The CloudStack baremetal agent
134136
%package usage
135137
Summary: CloudStack Usage calculation server
136138
Requires: java-11-openjdk
139+
Requires: tzdata-java
137140
Group: System Environment/Libraries
138141
%description usage
139142
The CloudStack usage calculation service

0 commit comments

Comments
 (0)