Actions
action #44786
closed[sle][functional][y][medium] Create test suite to test that YaST2 lan rewrite hostname change properly (bsc#1052042)
Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Target version:
SUSE QA - Milestone 23
Start date:
2018-12-05
Due date:
2018-12-18
% Done:
0%
Estimated time:
Difficulty:
Description
Acceptance criteria¶
- AC1: An openQA test exists that verifies entries in /etc/hosts after installation
- AC2: An openQA test exists that verifies entries in /etc/hosts after modification by yast2 lan
Tasks¶
- Understand the current openQA test modules for "yast2_lan" and "yast2_lan_restart"
- If not already covered create a test case which tests what is added to hosts file and performs at least following:
- Install SLES with static IP and hostname
cat /etc/hosts
after installation- Start yast2 lan, edit network adapter and change the hostname to something else
- On the hostname tab change the hostname as well, submit changes.
cat /etc/hosts
Further details¶
From an original yast team trello card - URL?:
Depending on previous setup (examples in the bug report, all cases happened when editing NIC properties, not on DNS/Hostname Tab), it could happen that:
1) in case of adding FQDN into /etc/hosts no alias was created
2) FQDN was not added as a canonical name but after the alias (proper format in /etc/hosts is [ , , , ... ], but it sometime happened that the record was stored in form [ , , ]
3) We discovered later that the fix for bsc#1052042 generates a new bug preventing yast2 lan from setting up a new hostname to the same static IP as previsously, see bsc#1115644
- product related PR: https://github.com/yast/yast-network/pull/577
- bsc#1052042
- bsc#1115644
Updated by JRivrain over 5 years ago
Updated by riafarov over 5 years ago
- Status changed from In Progress to Resolved
We got changes in the affected modules, so let's resolve this one and continue in #44450
Updated by riafarov over 5 years ago
- Related to action #44450: [functional][y] Adjust test modules to yast lan changes added
Actions