Actions
action #62465
closed[functional][y] check that network was not restarted
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
SUSE QA (private) - Milestone 32
Start date:
2020-01-21
Due date:
2020-03-10
% Done:
0%
Estimated time:
5.00 h
Difficulty:
Description
Description¶
In #60392 we figured out that we only check that network was restarted.
Method we use is running journalctl -f|egrep -i --line-buffered 'shutting down|ifdown all' > journal.log &
so we follow journal output and see if there was any restart.
We also have a change in the product behavior, that we reload service instead of restart. For those we might need to file bugs in case scenario doesn't work.
Acceptance criteria¶
- Network not being restarted is validated in case no restart is expected or corresponding bugs are filed
Further details¶
There are following problems with the approach.
- Debug level for wicked is set in WICKED_LOG_LEVEL and not with DEBUG setting (service needs to be at least reloaded)
- Latest wicked version doesn't use
shutting down|ifdown all
messages, but 'stopping wicked...' - For validation we have:
if ($expected_status eq 'restart') {
assert_script_run '[ -s journal.log ]'; # journal.log size is greater than zero (network restarted)
}
So in case no restart is triggered, we don't check that file is empty.
assert_script_run 'sed -i -E 's/(WICKED_LOG_LEVEL).*/\1="info"/' /etc/sysconfig/network/config';
Updated by riafarov over 5 years ago
- Due date changed from 2020-01-28 to 2020-02-11
Updated by riafarov over 5 years ago
- Description updated (diff)
- Status changed from New to Workable
- Estimated time set to 5.00 h
Updated by riafarov over 5 years ago
- Due date changed from 2020-02-11 to 2020-02-25
Updated by syrianidou_sofia about 5 years ago
- Status changed from Workable to In Progress
Updated by JERiveraMoya about 5 years ago
- Due date changed from 2020-02-25 to 2020-03-10
Updated by syrianidou_sofia about 5 years ago
- Status changed from In Progress to Feedback
Updated by JERiveraMoya about 5 years ago
- Status changed from Feedback to Resolved
Actions