Project

General

Profile

action #66685

[functional][y] Create automated test for "try" feature used in ifcfg option.

Added by oorlov 11 months ago. Updated 6 months ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
Start date:
2020-05-11
Due date:
% Done:

0%

Estimated time:

Description

Here are the possible use cases to test:

Pre-conditions:

  • Run installer with several Network Interfaces. Set link state to OFF for all of them except the last one (e.g. set OFF for eth0, eth1, but leave it ON for eth2). In Virtual Manager it could be done by unchecking "Link state" checkbox in NIC settings. So, for automating the condition it is required to find a way to do so programmatically.
  • Virtual network is configured with DHCP (or without DHCP when static IP is used for testing try feature).

Tests:
Verify, that installation resource is available when try is used with dhcp.
NOTE: When using ifcfg with dhcp and with try feature, Linuxrc tries to assign the DHCP configuration to the available Network Interfaces one by one to make the installation resource reachable. When using ifcfg without try feature, Linuxrc will assign DHCP configuration to all of the interfaces at once.

  1. In bootloader options, enter ifcfg=eth*=try,dhcp install=<path_to_resource> (e.g. path_to_resource: ftp://openqa.suse.de/SLE-15-SP2-Online-x86_64-Build189.1-Media1);
  2. Verify, that eth2 received IP address and the medium is reachable (e.g. check that installation is started).
  3. Additionally, check that each Network Interface is tried to be configured one by one (This check could be performed, because when using ifcfg=eth*=dhcp (without try feature), DHCP configuration is assigned to all devices at once).

Verify, that installation resource is available when try is used with static IP.
NOTE: When using ifcfg with static IP and with try feature, Linuxrc tries to assign the IP configuration to the available Network Interfaces one by one to make the installation resource reachable. When using ifcfg without try feature, Linuxrc will try to assign the IP to the first Network Interface (e.g. eth0) and for others it will assign dhcp configuration.

  1. In bootloader options, enter ifcfg=eth*=IP_LIST,GATEWAY_LIST install=<path_to_resource> (e.g. ifcfg=eth*=192.168.100.2/24,192.168.100.1 install=ftp://openqa.suse.de/SLE-15-SP2-Online-x86_64-Build189.1-Media1 );
  2. Verify, that eth2 received IP address and the medium is reachable (e.g. check that installation is started).

History

#1 Updated by oorlov 11 months ago

  • Parent task changed from #65429 to #60071

#2 Updated by riafarov 11 months ago

  • Category set to New test
  • Priority changed from Normal to Low
  • Target version set to future

Feature was requested by single customer, so lowering the priority.

#3 Updated by riafarov 11 months ago

  • Parent task deleted (#60071)

#4 Updated by riafarov 6 months ago

  • Project changed from openQA Tests to qe-yast
  • Category deleted (New test)

Also available in: Atom PDF