-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-06-08-11_52_49.log
266 lines (265 loc) · 9.72 KB
/
2023-06-08-11_52_49.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
+ source /root/mugen/libs/locallibs/common_lib.sh
++ python3 --version
++ '[' 0 -eq 0 ']'
++ source /root/mugen/libs/locallibs/common_lib_python.sh
+ main
++ type -t post_test
+ '[' -n function ']'
+ trap post_test EXIT INT HUP TERM
+ grep expect
+ rpm -qa
++ type -t config_params
+ '[' -n function ']'
+ config_params
+ PATH_TANG=/var/db/tang
++ type -t pre_test
+ '[' -n function ']'
+ pre_test
+ LOG_INFO 'Start environmental preparation.'
+ message='Start environmental preparation.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start environmental preparation.'
Thu Jun 8 11:52:57 2023 - INFO - Start environmental preparation.
+ DNF_INSTALL 'clevis tang firewalld'
+ pkgs='clevis tang firewalld'
+ node=1
+ '[' -z '' ']'
+ tmpfile=
++ python3 /root/mugen/libs/locallibs/rpm_manage.py install --pkgs 'clevis tang firewalld' --node 1 --tempfile ''
+ tmpfile2=/tmp/tmp62623qyt
+ '[' -z '' ']'
+ tmpfile=/tmp/tmp62623qyt
+ systemctl start firewalld
+ ls /etc/systemd/system/tangd.socket.d
ls: cannot access '/etc/systemd/system/tangd.socket.d': No such file or directory
+ firewall-cmd --add-port=8009/tcp
success
+ firewall-cmd --runtime-to-permanent
success
+ SOCKET_CONTENT='[Socket]\nListenStream=\nListenStream=8009'
+ mkdir /etc/systemd/system/tangd.socket.d
+ echo -e '[Socket]\nListenStream=\nListenStream=8009'
+ LOG_INFO 'End of environmental preparation!'
+ message='End of environmental preparation!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'End of environmental preparation!'
Thu Jun 8 11:56:36 2023 - INFO - End of environmental preparation!
++ type -t run_test
+ '[' -n function ']'
+ run_test
+ LOG_INFO 'Start executing testcase.'
+ message='Start executing testcase.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start executing testcase.'
Thu Jun 8 11:56:38 2023 - INFO - Start executing testcase.
+ systemctl enable tangd.socket
Created symlink /etc/systemd/system/multi-user.target.wants/tangd.socket → /usr/lib/systemd/system/tangd.socket.
+ CHECK_RESULT 0 0 0 'Failed to systemctl enable tangd.socket'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Failed to systemctl enable tangd.socket'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ systemctl daemon-reload
+ systemctl show tangd.socket -p Listen
+ grep 8009
Listen=[::]:8009 (Stream)
+ CHECK_RESULT 0 0 0 'Failed to display the '\''Listen'\'' property of tangd.socket'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Failed to display the '\''Listen'\'' property of tangd.socket'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ SLEEP_WAIT 1
+ wait_time=1
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 1 --cmd '' --mode 1
+ systemctl start tangd.socket
+ CHECK_RESULT 0 0 0 'Failed to start tangd.socket service'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Failed to start tangd.socket service'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ cd /var/db/tang
++ ls /var/db/tang
+ for element in $(ls $PATH_TANG)
+ mv /var/db/tang/0a-1rlBEgfsLKtntPmbH9askVWJ-l_2UxIwpzcjz0EI.jwk /var/db/tang/.0a-1rlBEgfsLKtntPmbH9askVWJ-l_2UxIwpzcjz0EI.jwk
+ for element in $(ls $PATH_TANG)
+ mv /var/db/tang/H7rZVcMs0pP8gc2VMl713HSsY583uieTDvz23pEbccw.jwk /var/db/tang/.H7rZVcMs0pP8gc2VMl713HSsY583uieTDvz23pEbccw.jwk
+ /usr/libexec/tangd-keygen /var/db/tang
+ CHECK_RESULT 0 0 0 'Failed to generate a new key using the /var/db/Tang d-keygen command on the Tang server'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Failed to generate a new key using the /var/db/Tang d-keygen command on the Tang server'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ cd /root/mugen
+ tang-show-keys 8009
curl: (22) The requested URL returned error: 404
+ CHECK_RESULT 22 0 0 'Failed to check whether the Tang server advertises the signature key from the new key pair'
+ actual_result=22
+ expect_result=0
+ mode=0
+ error_log='Failed to check whether the Tang server advertises the signature key from the new key pair'
+ exit_mode=0
+ '[' -z 22 ']'
+ '[' 0 -eq 0 ']'
+ test 22x '!=' 0x
+ test -n 'Failed to check whether the Tang server advertises the signature key from the new key pair'
+ LOG_ERROR 'Failed to check whether the Tang server advertises the signature key from the new key pair'
+ message='Failed to check whether the Tang server advertises the signature key from the new key pair'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to check whether the Tang server advertises the signature key from the new key pair'
Thu Jun 8 11:57:25 2023 - ERROR - Failed to check whether the Tang server advertises the signature key from the new key pair
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_install_clevis.sh line 58'
+ message='oe_test_install_clevis.sh line 58'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_install_clevis.sh line 58'
Thu Jun 8 11:57:27 2023 - ERROR - oe_test_install_clevis.sh line 58
+ '[' 0 -eq 1 ']'
+ return 0
+ SLEEP_WAIT 1
+ wait_time=1
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 1 --cmd '' --mode 1
+ systemctl restart tangd.socket
+ CHECK_RESULT 0 0 0 'Failed to restart tangd.socket service'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Failed to restart tangd.socket service'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ SLEEP_WAIT 1
+ wait_time=1
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 1 --cmd '' --mode 1
+ curl http://127.0.0.1:8009/adv -o adv.jws
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
+ CHECK_RESULT 0 0 0 'Failed to transfer data to adv.jws file'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='Failed to transfer data to adv.jws file'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ SLEEP_WAIT 1
+ wait_time=1
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 1 --cmd '' --mode 1
+ echo hello
+ clevis encrypt tang '{"url":"http://127.0.0.1:8009","adv":"adv.jws"}'
Advertisement file '' is malformed!
+ CHECK_RESULT 1 0 0 'Failed to encrypt file'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to encrypt file'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to encrypt file'
+ LOG_ERROR 'Failed to encrypt file'
+ message='Failed to encrypt file'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to encrypt file'
Thu Jun 8 11:57:46 2023 - ERROR - Failed to encrypt file
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_install_clevis.sh line 67'
+ message='oe_test_install_clevis.sh line 67'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_install_clevis.sh line 67'
Thu Jun 8 11:57:48 2023 - ERROR - oe_test_install_clevis.sh line 67
+ '[' 0 -eq 1 ']'
+ return 0
+ SLEEP_WAIT 1
+ wait_time=1
+ cmd=
+ mode=1
+ python3 /root/mugen/libs/locallibs/sleep_wait.py --time 1 --cmd '' --mode 1
+ clevis decrypt
+ grep hello
+ CHECK_RESULT 1 0 0 'Failed to decrypt file'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Failed to decrypt file'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Failed to decrypt file'
+ LOG_ERROR 'Failed to decrypt file'
+ message='Failed to decrypt file'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Failed to decrypt file'
Thu Jun 8 11:57:53 2023 - ERROR - Failed to decrypt file
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_install_clevis.sh line 70'
+ message='oe_test_install_clevis.sh line 70'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_install_clevis.sh line 70'
Thu Jun 8 11:57:55 2023 - ERROR - oe_test_install_clevis.sh line 70
+ '[' 0 -eq 1 ']'
+ return 0
+ LOG_INFO 'Finish testcase execution.'
+ message='Finish testcase execution.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish testcase execution.'
Thu Jun 8 11:57:57 2023 - INFO - Finish testcase execution.
+ CASE_RESULT 0
+ case_re=0
+ test -z 3
+ test 3 -gt 0
+ LOG_ERROR 'failed to execute the case.'
+ message='failed to execute the case.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'failed to execute the case.'
Thu Jun 8 11:57:59 2023 - ERROR - failed to execute the case.
+ exit 3
+ post_test
+ LOG_INFO 'start environment cleanup.'
+ message='start environment cleanup.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'start environment cleanup.'
Thu Jun 8 11:58:00 2023 - INFO - start environment cleanup.
+ systemctl stop tangd.socket
+ DNF_REMOVE
+ node=1
+ pkg_list=
+ mode=0
+ [[ -z /tmp/tmp62623qyt ]]
+ '[' 0 -ne 0 ']'
+ '[' 1 == 0 ']'
+ python3 /root/mugen/libs/locallibs/rpm_manage.py remove --node 1 --pkgs '' --tempfile /tmp/tmp62623qyt
+ '[' 0 -ne 0 ']'
+ rm -rf secert.jwe adv.jws /etc/systemd/system/tangd.socket.d /var/db/tang
+ firewall-cmd --remove-port=8009/tcp
oe_test_install_clevis.sh: line 79: /usr/bin/firewall-cmd: No such file or directory
+ firewall-cmd --runtime-to-permanent
oe_test_install_clevis.sh: line 80: /usr/bin/firewall-cmd: No such file or directory
+ LOG_INFO 'Finish environment cleanup!'
+ message='Finish environment cleanup!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!'
Thu Jun 8 11:59:22 2023 - INFO - Finish environment cleanup!