@@ -20,46 +20,42 @@ Acquire a CSM software release tarball for installation on the HPE Cray EX super
20
20
The following procedure should work on any Linux system. If directed here from another procedure, then that source procedure should indicate on which system the CSM release should
21
21
be downloaded and extracted.
22
22
23
- 1 . Download the CSM software release tarball.
23
+ 1 . ( ` linux# ` ) Set the ` ENDPOINT ` variable to the URL of the server hosting the CSM tarball.
24
24
25
25
``` bash
26
26
ENDPOINT=URL_SERVER_Hosting_tarball
27
27
```
28
28
29
+ 1. (` linux#` ) Set the ` CSM_RELEASE` variable to the version of CSM software to be downloaded.
30
+
29
31
` ` ` bash
30
32
CSM_RELEASE=x.y.z
31
33
` ` `
32
34
35
+ 1. (` linux#` ) Download the CSM software release tarball.
36
+
33
37
> *** NOTE:*** CSM does NOT support the use of proxy servers for anything other than downloading artifacts from external endpoints.
34
- Using ` http_proxy` or ` https_proxy` in any way other than the following examples will cause many failures in subsequent steps.
38
+ > Using ` http_proxy` or ` https_proxy` in any way other than the following examples will cause many failures in subsequent steps.
35
39
36
40
- Without proxy:
37
41
38
42
` ` ` bash
39
43
wget " ${ENDPOINT} /csm-${CSM_RELEASE} .tar.gz"
40
44
` ` `
41
45
42
- - With https proxy:
43
-
44
- ` ` ` bash
45
- https_proxy=https://example.proxy.net:443
46
- ` ` `
46
+ - With HTTPS proxy:
47
47
48
48
` ` ` bash
49
- wget " ${ENDPOINT} /csm-${CSM_RELEASE} .tar.gz"
49
+ https_proxy=https://example.proxy.net:443 wget " ${ENDPOINT} /csm-${CSM_RELEASE} .tar.gz"
50
50
` ` `
51
51
52
- - With http proxy:
52
+ - With HTTP proxy:
53
53
54
54
` ` ` bash
55
- http_proxy=http://example.proxy.net:80
56
- ` ` `
57
-
58
- ` ` ` bash
59
- wget " ${ENDPOINT} /csm-${CSM_RELEASE} .tar.gz"
55
+ http_proxy=http://example.proxy.net:80 wget " ${ENDPOINT} /csm-${CSM_RELEASE} .tar.gz"
60
56
` ` `
61
57
62
- 1. Extract the release distribution.
58
+ 1. ( ` linux# ` ) Extract the release distribution.
63
59
64
60
` ` ` bash
65
61
tar -xzvf " csm-${CSM_RELEASE} .tar.gz"
@@ -84,7 +80,7 @@ The following requirements must be met on the system where the procedure is bein
84
80
procedure on the same system where the [Download and extract CSM product release](# download-and-extract-csm-product-release)
85
81
procedure was followed.
86
82
87
- - Git version ` 2.16.5` or higher must be installed.
83
+ - ( ` linux# ` ) Git version ` 2.16.5` or higher must be installed.
88
84
89
85
` ` ` bash
90
86
git version
@@ -100,54 +96,75 @@ The following requirements must be met on the system where the procedure is bein
100
96
101
97
# ## Apply patch to CSM release: Procedure
102
98
103
- 1. Download the compressed CSM software package patch file.
104
-
105
- The file name will be of the form ` csm-x.y.z-x.z.a.patch.gz` .
106
- Be sure to modify the following example with the appropriate values.
99
+ 1. (` linux#` ) Set the ` ENDPOINT` variable to the URL of the server hosting the CSM patch file.
107
100
108
101
` ` ` bash
109
- ENDPOINT=URL_SERVER_Hosting_tarball
102
+ ENDPOINT=URL_SERVER_Hosting_patch
110
103
` ` `
111
104
105
+ 1. (` linux#` ) Set the ` CSM_RELEASE` variable to the version of CSM software to be patched.
106
+
112
107
` ` ` bash
113
108
CSM_RELEASE=x.y.z
114
109
` ` `
115
110
111
+ 1. (` linux#` ) Set the ` PATCH_RELEASE` variable to the version of CSM patch.
112
+
116
113
` ` ` bash
117
114
PATCH_RELEASE=x.z.a
118
115
` ` `
119
116
120
- ` ` ` bash
121
- wget " ${ENDPOINT} /csm-${CSM_RELEASE} -${PATCH_RELEASE} .patch.gz"
122
- ` ` `
117
+ 1. (` linux#` ) Download the compressed CSM software package patch file.
123
118
124
- 1. Uncompress the patch.
119
+ The file name will be of the form ` csm-x.y.z-x.z.a.patch.gz` .
120
+ Be sure to modify the following example with the appropriate values.
121
+
122
+ > *** NOTE:*** CSM does NOT support the use of proxy servers for anything other than downloading artifacts from external endpoints.
123
+ > Using ` http_proxy` or ` https_proxy` in any way other than the following examples will cause many failures in subsequent steps.
124
+
125
+ - Without proxy:
126
+
127
+ ` ` ` bash
128
+ wget " ${ENDPOINT} /csm-${CSM_RELEASE} -${PATCH_RELEASE} .patch.gz"
129
+ ` ` `
130
+
131
+ - With HTTPS proxy:
132
+
133
+ ` ` ` bash
134
+ https_proxy=https://example.proxy.net:443 wget " ${ENDPOINT} /csm-${CSM_RELEASE} -${PATCH_RELEASE} .patch.gz"
135
+ ` ` `
136
+
137
+ - With HTTP proxy:
138
+
139
+ ` ` ` bash
140
+ http_proxy=http://example.proxy.net:80 wget " ${ENDPOINT} /csm-${CSM_RELEASE} -${PATCH_RELEASE} .patch.gz"
141
+ ` ` `
142
+
143
+ 1. (` linux#` ) Uncompress the patch.
125
144
126
145
` ` ` bash
127
146
gunzip -v " csm-${CSM_RELEASE} -${PATCH_RELEASE} .patch.gz"
128
147
` ` `
129
148
130
- 1. Apply the patch.
149
+ 1. ( ` linux# ` ) Apply the patch.
131
150
132
151
` ` ` bash
133
- git apply -p2 --whitespace=nowarn \
134
- --directory=" csm-${CSM_RELEASE} " \
135
- " csm-${CSM_RELEASE} -${PATCH_RELEASE} .patch"
152
+ git apply -p2 --whitespace=nowarn --directory=" csm-${CSM_RELEASE} " " csm-${CSM_RELEASE} -${PATCH_RELEASE} .patch"
136
153
` ` `
137
154
138
- 1. Set a variable to reflect the new version.
155
+ 1. ( ` linux# ` ) Set a variable to reflect the new version.
139
156
140
157
` ` ` bash
141
158
NEW_CSM_RELEASE=" $( ./csm-${CSM_RELEASE} /lib/version.sh) "
142
159
` ` `
143
160
144
- 1. Update the name of the CSM release distribution directory.
161
+ 1. ( ` linux# ` ) Update the name of the CSM release distribution directory.
145
162
146
163
` ` ` bash
147
164
mv -v " csm-${CSM_RELEASE} " " csm-${NEW_CSM_RELEASE} "
148
165
` ` `
149
166
150
- 1. Create a tarball from the patched release distribution.
167
+ 1. ( ` linux# ` ) Create a tarball from the patched release distribution.
151
168
152
169
` ` ` bash
153
170
tar -cvzf " csm-${NEW_CSM_RELEASE} .tar.gz" " csm-${NEW_CSM_RELEASE} /"
@@ -162,19 +179,19 @@ Acquire the latest documentation RPM. This may include updates, corrections, and
162
179
> *** NOTE:*** CSM does NOT support the use of proxy servers for anything other than downloading artifacts from external endpoints.
163
180
> Using http proxies in any way other than the following examples will cause many failures in subsequent steps.
164
181
165
- 1. Check the version of the currently installed CSM documentation and CSM library.
182
+ 1. ( ` linux# ` ) Check the version of the currently installed CSM documentation and CSM library.
166
183
167
184
` ` ` bash
168
185
rpm -q docs-csm libcsm
169
186
` ` `
170
187
171
- 1. Set the ` CSM_RELEASE` variable to the installed version of CSM.
188
+ 1. ( ` linux# ` ) Set the ` CSM_RELEASE` variable to the installed version of CSM.
172
189
173
190
` ` ` bash
174
191
CSM_RELEASE=x.y.z
175
192
` ` `
176
193
177
- 1. Download and upgrade the latest documentation RPM and CSM library.
194
+ 1. ( ` linux# ` ) Download and upgrade the latest documentation RPM and CSM library.
178
195
179
196
- Without proxy:
180
197
@@ -183,14 +200,11 @@ Acquire the latest documentation RPM. This may include updates, corrections, and
183
200
wget " https://release.algol60.net/lib/sle-$( awk -F= ' /VERSION=/{gsub(/["-]/, "") ; print tolower($NF)}' /etc/os-release) /libcsm-latest.noarch.rpm" -O /root/libcsm-latest.noarch.rpm
184
201
` ` `
185
202
186
- - With https proxy:
203
+ - With HTTPS proxy:
187
204
188
205
` ` ` bash
189
206
https_proxy=https://example.proxy.net:443 wget " https://release.algol60.net/$( awk -F. ' {print "csm-"$1"."$2}' <<< ${CSM_RELEASE} ) /docs-csm/docs-csm-latest.noarch.rpm" \
190
207
-O /root/docs-csm-latest.noarch.rpm
191
- ` ` `
192
-
193
- ` ` ` bash
194
208
https_proxy=https://example.proxy.net:443 wget " https://release.algol60.net/lib/sle-$( awk -F= ' /VERSION=/{gsub(/["-]/, "") ; print tolower($NF)}' /etc/os-release) /libcsm-latest.noarch.rpm" \
195
209
-O /root/libcsm-latest.noarch.rpm
196
210
` ` `
@@ -217,7 +231,7 @@ Acquire the latest documentation RPM. This may include updates, corrections, and
217
231
ssh ncn-m001
218
232
` ` `
219
233
220
- 1. Install the documentation RPM and CSM library.
234
+ 1. ( ` linux# ` ) Install the documentation RPM and CSM library.
221
235
222
236
` ` ` bash
223
237
rpm -Uvh --force /root/docs-csm-latest.noarch.rpm /root/libcsm-latest.noarch.rpm
0 commit comments