-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2023-04-29-10_17_37.log
166 lines (164 loc) · 5.92 KB
/
2023-04-29-10_17_37.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
+ 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
+ rpm -qa
+ grep expect
++ type -t config_params
+ '[' -n '' ']'
++ 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.'
Sat Apr 29 10:17:41 2023 - INFO - Start environmental preparation.
+ DNF_INSTALL logrotate
+ pkgs=logrotate
+ node=1
+ '[' -z '' ']'
+ tmpfile=
++ python3 /root/mugen/libs/locallibs/rpm_manage.py install --pkgs logrotate --node 1 --tempfile ''
Sat Apr 29 10:17:51 2023 - INFO - pkgs:(logrotate) is already installed
+ tmpfile2=
+ '[' -z '' ']'
+ tmpfile=
+ touch /var/log/log-file
+ head -c 10M
+ 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!'
Sat Apr 29 10:17:53 2023 - INFO - End of environmental preparation!
++ type -t run_test
+ '[' -n function ']'
+ run_test
+ LOG_INFO 'Start testing...'
+ message='Start testing...'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Start testing...'
Sat Apr 29 10:17:54 2023 - INFO - Start testing...
+ cat conf.txt
+ logrotate -vf /etc/logrotate.d/log-file
reading config file /etc/logrotate.d/log-file
Reading state from file: /var/lib/logrotate/logrotate.status
Allocating hash table for state file, size 64 entries
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Creating new state
Handling 1 logs
rotating pattern: /var/log/log-file forced from command line (5 rotations)
empty log files are not rotated, old logs are removed
considering log /var/log/log-file
Creating new state
Now: 2023-04-29 10:17
Last rotated at 2023-04-29 10:00
log needs rotating
rotating log /var/log/log-file, log->rotateCount is 5
dateext suffix '-20230429'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
previous log /var/log/log-file.1 does not exist
renaming /var/log/log-file.5.gz to /var/log/log-file.6.gz (rotatecount 5, logstart 1, i 5),
old log /var/log/log-file.5.gz does not exist
renaming /var/log/log-file.4.gz to /var/log/log-file.5.gz (rotatecount 5, logstart 1, i 4),
old log /var/log/log-file.4.gz does not exist
renaming /var/log/log-file.3.gz to /var/log/log-file.4.gz (rotatecount 5, logstart 1, i 3),
old log /var/log/log-file.3.gz does not exist
renaming /var/log/log-file.2.gz to /var/log/log-file.3.gz (rotatecount 5, logstart 1, i 2),
old log /var/log/log-file.2.gz does not exist
renaming /var/log/log-file.1.gz to /var/log/log-file.2.gz (rotatecount 5, logstart 1, i 1),
old log /var/log/log-file.1.gz does not exist
renaming /var/log/log-file.0.gz to /var/log/log-file.1.gz (rotatecount 5, logstart 1, i 0),
old log /var/log/log-file.0.gz does not exist
log /var/log/log-file.6.gz doesn't exist -- won't try to dispose of it
renaming /var/log/log-file to /var/log/log-file.1
creating new /var/log/log-file mode = 0644 uid = 0 gid = 0
running postrotate script
rsyslogd: no process found
error: error running non-shared postrotate script for /var/log/log-file of '/var/log/log-file '
+ CHECK_RESULT 1 0 0 'Partition failure'
+ actual_result=1
+ expect_result=0
+ mode=0
+ error_log='Partition failure'
+ exit_mode=0
+ '[' -z 1 ']'
+ '[' 0 -eq 0 ']'
+ test 1x '!=' 0x
+ test -n 'Partition failure'
+ LOG_ERROR 'Partition failure'
+ message='Partition failure'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'Partition failure'
Sat Apr 29 10:17:55 2023 - ERROR - Partition failure
+ (( exec_result++ ))
+ LOG_ERROR 'oe_test_logrotate_004.sh line 34'
+ message='oe_test_logrotate_004.sh line 34'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level error --message 'oe_test_logrotate_004.sh line 34'
Sat Apr 29 10:17:56 2023 - ERROR - oe_test_logrotate_004.sh line 34
+ '[' 0 -eq 1 ']'
+ return 0
+ test -e /var/log/log-file
+ CHECK_RESULT 0 0 0 'File does not exist'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='File does not exist'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ test -e /var/log/log-file.1
+ CHECK_RESULT 0 0 0 'File does not exist2'
+ actual_result=0
+ expect_result=0
+ mode=0
+ error_log='File does not exist2'
+ exit_mode=0
+ '[' -z 0 ']'
+ '[' 0 -eq 0 ']'
+ test 0x '!=' 0x
+ return 0
+ LOG_INFO 'Finish test!'
+ message='Finish test!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish test!'
Sat Apr 29 10:17:56 2023 - INFO - Finish test!
+ CASE_RESULT 0
+ case_re=0
+ test -z 1
+ test 1 -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.'
Sat Apr 29 10:17:57 2023 - ERROR - failed to execute the case.
+ exit 1
+ 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.'
Sat Apr 29 10:17:58 2023 - INFO - start environment cleanup.
+ rm -rf /var/log/log-file /var/log/log-file.1 /etc/logrotate.d/log-file
+ DNF_REMOVE
+ node=1
+ pkg_list=
+ mode=0
+ [[ -z '' ]]
+ [[ -z '' ]]
+ LOG_WARN 'no thing to do.'
+ message='no thing to do.'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level warn --message 'no thing to do.'
Sat Apr 29 10:17:59 2023 - WARN - no thing to do.
+ return 0
+ LOG_INFO 'Finish environment cleanup!'
+ message='Finish environment cleanup!'
+ python3 /root/mugen/libs/locallibs/mugen_log.py --level info --message 'Finish environment cleanup!'
Sat Apr 29 10:18:00 2023 - INFO - Finish environment cleanup!