Skip to content

Commit 9ee316c

Browse files
authored
[internal] Bump drbd version to 9.2.12 (#213)
Signed-off-by: Pavel Karpov <[email protected]>
1 parent 44de237 commit 9ee316c

File tree

6 files changed

+37
-45
lines changed

6 files changed

+37
-45
lines changed

.werf/consts.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
# component versions
1111
{{- $versions := dict }}
12-
{{- $_ := set $versions "DRBD" "9.2.10" }}
13-
{{- $_ := set $versions "DRBD_REACTOR" "1.4.0" }}
14-
{{- $_ := set $versions "DRBD_UTILS" "9.28.0" }}
12+
{{- $_ := set $versions "DRBD" "9.2.12" }}
13+
{{- $_ := set $versions "DRBD_REACTOR" "1.8.0" }}
14+
{{- $_ := set $versions "DRBD_UTILS" "9.30.0" }}
1515
{{- $_ := set $versions "LINSTOR_AFFINITY_CONTROLLER" "0.3.0" }}
1616
{{- $_ := set $versions "LINSTOR_API_PY" "1.19.0" }}
1717
{{- $_ := set $versions "LINSTOR_CLIENT" "1.19.0" }}
@@ -30,7 +30,7 @@
3030
{{- $_ := set $versions "LINSTOR_WAIT_UNTIL" "0.2.1" }}
3131
{{- $_ := set $versions "SEMVER_TOOL" "3.4.0" }}
3232
{{- $_ := set $versions "SPAAS" "v0.1.5" }}
33-
{{- $_ := set $versions "THIN_SEND_RECV" "1.0.1" }}
33+
{{- $_ := set $versions "THIN_SEND_RECV" "1.1.3" }}
3434

3535
{{- $_ := set $ "VERSIONS" $versions }}
3636

images/drbd-reactor/werf.inc.yaml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ from: {{ $.Root.BASE_ALT_P11 }}
55
final: false
66

77
git:
8-
- url: https://github.com/LINBIT/drbd-utils
8+
- url: {{ $.Root.SOURCE_REPO }}/LINBIT/drbd-utils
99
add: /
1010
to: /drbd-utils
1111
tag: v{{ $.Versions.DRBD_UTILS }}
1212
stageDependencies:
1313
setup:
1414
- "**/*"
1515

16-
- url: https://github.com/LINBIT/thin-send-recv
16+
- url: {{ $.Root.SOURCE_REPO }}/LINBIT/thin-send-recv
1717
add: /
1818
to: /thin-send-recv
1919
tag: v{{ $.Versions.THIN_SEND_RECV }}
@@ -28,9 +28,8 @@ shell:
2828
apt-get update \
2929
&& apt-get -y install {{ $.Root.BUILD_PACKAGES }} flex clitest xsltproc locales libxml2 po4a bash-completion docbook-xsl udev asciidoctor libkeyutils-devel \
3030
&& apt-get -y install ca-certificates \
31-
&& update-ca-trust \
32-
&& apt-get clean \
33-
&& rm -rf /var/lib/apt/lists/*
31+
&& update-ca-trust
32+
- {{ $.Root.ALT_CLEANUP_CMD }}
3433
install:
3534
{{- $ctx := dict }}
3635
{{- include "utils:prepare-rpm-build" $ctx | nindent 2 }}
@@ -40,7 +39,7 @@ shell:
4039
setup:
4140
# clone drbd-utils git repo
4241
{{- $ctx := dict }}
43-
{{- $_ := set $ctx "repo" "https://github.com/LINBIT/drbd-utils" }}
42+
{{- $_ := set $ctx "repo" (printf "%s/LINBIT/drbd-utils" $.Root.SOURCE_REPO) }}
4443
{{- $_ := set $ctx "branch" (printf "v%s" $.Versions.DRBD_UTILS) }}
4544
{{- $_ := set $ctx "folder" "/drbd-utils" }}
4645
{{- include "utils:checkout-git" $ctx | nindent 2 }}
@@ -63,7 +62,7 @@ shell:
6362

6463
# clone thin-send-recv git repo
6564
{{- $ctx := dict }}
66-
{{- $_ := set $ctx "repo" "https://github.com/LINBIT/thin-send-recv" }}
65+
{{- $_ := set $ctx "repo" (printf "%s/LINBIT/thin-send-recv" $.Root.SOURCE_REPO) }}
6766
{{- $_ := set $ctx "branch" (printf "v%s" $.Versions.THIN_SEND_RECV) }}
6867
{{- $_ := set $ctx "folder" "/thin-send-recv" }}
6968
{{- include "utils:checkout-git" $ctx | nindent 2 }}
@@ -77,11 +76,9 @@ shell:
7776
{{- include "utils:build-rpm-pkg" $ctx | nindent 2 }}
7877

7978
- ls -la /
80-
# drbd-9.28.0-1.x86_64.rpm
81-
# drbd-utils-9.28.0-1.x86_64.rpm
82-
# drbd-utils-debuginfo-9.28.0-1.x86_64.rpm
83-
# thin-send-recv-1.0.1-1.x86_64.rpm
84-
# thin-send-recv-debuginfo-1.0.1-1.x86_64.rpm
79+
# drbd-9.30.0-1.x86_64.rpm
80+
# drbd-utils-9.30.0-1.x86_64.rpm
81+
# thin-send-recv-1.1.3-1.x86_64.rpm
8582

8683
---
8784
# build drbd-reactor .rpm packages
@@ -90,7 +87,7 @@ from: {{ $.Root.BASE_ALT_P11 }}
9087
final: false
9188

9289
git:
93-
- url: https://github.com/LINBIT/drbd-reactor
90+
- url: {{ $.Root.SOURCE_REPO }}/LINBIT/drbd-reactor
9491
add: /
9592
to: /drbd-reactor
9693
tag: v{{ $.Versions.DRBD_REACTOR }}
@@ -107,15 +104,19 @@ shell:
107104
apt-get update \
108105
&& apt-get -y install {{ $.Root.BUILD_PACKAGES }} rust-cargo bash-completion \
109106
&& apt-get -y install ca-certificates \
110-
&& update-ca-trust \
111-
&& apt-get clean \
112-
&& rm -rf /var/lib/apt/lists/*
107+
&& update-ca-trust
108+
- {{ $.Root.ALT_CLEANUP_CMD }}
109+
- |
110+
cargo install cargo-sbom \
111+
&& cargo sbom -V \
112+
&& mv ~/.cargo/bin/cargo-sbom /usr/local/bin/ \
113+
&& rm -rf ~/.cargo
113114
install:
114115
{{- $ctx := dict }}
115116
{{- include "utils:prepare-rpm-build" $ctx | nindent 2 }}
116117
setup:
117118
{{- $ctx := dict }}
118-
{{- $_ := set $ctx "repo" "https://github.com/LINBIT/drbd-reactor" }}
119+
{{- $_ := set $ctx "repo" (printf "%s/LINBIT/drbd-reactor" $.Root.SOURCE_REPO) }}
119120
{{- $_ := set $ctx "branch" (printf "v%s" $.Versions.DRBD_REACTOR) }}
120121
{{- $_ := set $ctx "folder" "/drbd-reactor" }}
121122
{{- include "utils:checkout-git" $ctx | nindent 2 }}
@@ -134,8 +135,7 @@ shell:
134135
{{- include "utils:build-rpm-pkg" $ctx | nindent 2 }}
135136

136137
- ls -la /
137-
# drbd-reactor-1.4.0-1.x86_64.rpm
138-
# drbd-reactor-debuginfo-1.4.0-1.x86_64.rpm
138+
# drbd-reactor-1.8.0-1.x86_64.rpm
139139

140140
---
141141
# main almost distroless image
@@ -163,19 +163,16 @@ shell:
163163
- export DEBIAN_FRONTEND=noninteractive
164164
- |
165165
apt-get update \
166-
&& apt-get -y install libkeyutils kmod sysklogd \
167-
&& apt-get clean
166+
&& apt-get -y install libkeyutils kmod sysklogd
167+
- {{ $.Root.ALT_CLEANUP_CMD }}
168168
setup:
169169
- ls -la /packages
170170
- |
171171
for f in /packages/*.rpm; do
172172
echo "Install ${f}"
173173
rpm -ihv --nodeps --noscripts $f
174174
done
175-
176175
- sed -i 's/usage-count yes;/usage-count no;/' /etc/drbd.d/global_common.conf
177-
# cleanup
178-
- rm -rf /var/lib/apt/lists/*
179176

180177
docker:
181178
ENTRYPOINT: ["/usr/sbin/drbd-reactor"]

images/drbd/werf.inc.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ shell:
1515
apt-get update \
1616
&& apt-get -y install {{ $.Root.BUILD_PACKAGES }} \
1717
&& apt-get -y install ca-certificates \
18-
&& update-ca-trust \
19-
&& apt-get clean \
20-
&& rm -rf /var/lib/apt/lists/*
18+
&& update-ca-trust
19+
- {{ $.Root.ALT_CLEANUP_CMD }}
2120
- git config --global user.email "[email protected]"
2221
- git config --global user.name "deckhouse"
2322
install:

images/linstor-server/werf.inc.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ shell:
4444
apt-get update \
4545
&& apt-get -y install {{ $.Root.BUILD_PACKAGES }} java-11-openjdk-devel python3 wget unzip \
4646
&& apt-get -y install ca-certificates \
47-
&& update-ca-trust \
48-
&& apt-get clean \
49-
&& rm -rf /var/lib/apt/lists/*
47+
&& update-ca-trust
48+
- {{ $.Root.ALT_CLEANUP_CMD }}
5049
install:
5150
{{- $ctx := dict }}
5251
{{- include "utils:prepare-rpm-build" $ctx | nindent 2 }}
@@ -86,7 +85,6 @@ shell:
8685
# linstor-common-1.24.2-1.noarch.rpm
8786
# linstor-controller-1.24.2-1.noarch.rpm
8887
# linstor-satellite-1.24.2-1.noarch.rpm
89-
# TODO: server артефакт вроде сбилдил, теперь нужно сбилдить все остальные
9088
---
9189
image: {{ $.ImageName }}-client-artifact
9290
from: {{ $.Root.BASE_ALT_P11 }}
@@ -121,9 +119,8 @@ shell:
121119
apt-get update \
122120
&& apt-get -y install {{ $.Root.BUILD_PACKAGES }} python3 wget unzip python3-module-setuptools help2man bash-completion docbook-xsl xsltproc \
123121
&& apt-get -y install ca-certificates \
124-
&& update-ca-trust \
125-
&& apt-get clean \
126-
&& rm -rf /var/lib/apt/lists/*
122+
&& update-ca-trust
123+
- {{ $.Root.ALT_CLEANUP_CMD }}
127124
install:
128125
{{- $ctx := dict }}
129126
{{- include "utils:prepare-rpm-build" $ctx | nindent 2 }}
@@ -362,8 +359,8 @@ shell:
362359
# udev-rules-sgutils: Depends: /lib/udev/rules.d
363360
# zfs-utils: Depends: /lib/udev/rules.d
364361
# Depends: udev
365-
apt-get clean
366-
rm -rf /var/lib/apt/lists/* /packages
362+
rm -rf /packages
363+
- {{ $.Root.ALT_CLEANUP_CMD }}
367364

368365
docker:
369366
# controller: 3376/tcp 3377/tcp 3370/tcp 3371/tcp

images/spaas/werf.inc.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ shell:
4343
&& apt-get -y install ca-certificates \
4444
&& update-ca-trust \
4545
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 100 \
46-
&& ln -sf /proc/mounts /etc/mtab \
47-
&& apt-get clean \
48-
&& rm -rf /var/lib/apt/lists/*
46+
&& ln -sf /proc/mounts /etc/mtab
47+
- {{ $.Root.ALT_CLEANUP_CMD }}
4948

5049
docker:
5150
ENTRYPOINT: ["/{{ $.ImageName }}"]

openapi/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ properties:
1515
properties:
1616
drbdVersion:
1717
type: string
18-
default: "9.2.10"
18+
default: "9.2.12"
1919
dataNodesChecksum:
2020
type: string
2121
default: "default_data_nodes_checksum"
@@ -168,4 +168,4 @@ properties:
168168
x-examples: ["YjY0ZW5jX3N0cmluZwo="]
169169
ca:
170170
type: string
171-
x-examples: ["YjY0ZW5jX3N0cmluZwo="]
171+
x-examples: ["YjY0ZW5jX3N0cmluZwo="]

0 commit comments

Comments
 (0)