Project

General

Profile

Actions

action #19510

closed

[sles][functional] Installation from ISO in external drive

Added by SLindoMansilla about 7 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
New test
Start date:
2017-06-01
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Description

Create a test that covers the installation from ISO in external drive.
Reason: Be able to detect in the future this kind of bugs boo#1040749

What should the test do?

  • The test should have two drives. One from which the ISO will be used to install. The other one to install the OS into it.
  • The test boot from an existing HDD and copy the ISO to the other HDD.
  • The installation will be triggered by adding boot parameters install=hd:/sles12-sp3.iso (parameter sample, the filename may change for each build).
  • At the end there is a proper installed OS.

Tasks

1. Prepared an isolated environment in local openQA instance

  • Clone job with test gnome+import_ssh_keys with extra parameters ISO_IN_USB=1 NUMDISKS=2 SSH_KEY_IMPORT=0
  • Add new test module console/copy_iso_to_external_drive`
  • Load only these test modules when ISO_IN_EXTERNAL_DRIVE
    • loadtest "boot/boot_to_desktop";
    • loadtest 'console/copy_iso_to_external_drive';
    • load_inst_tests();
    • load_reboot_tests();

2. Prepare new test for OSD.

  • Create new test suite in local OSD gnome_iso_from_external_drive
    • BOOTFROM=d
    • DESKTOP=gnome
    • HDD_1=sle-12-SP1-Server-DVD-x86_64-gnome.qcow2
    • ISO_IN_EXTERNAL_DRIVE=1
    • NUMDISKS=2
Actions #2

Updated by SLindoMansilla about 7 years ago

  • Description updated (diff)
Actions #3

Updated by jorauch about 7 years ago

  • Assignee set to jorauch
Actions #4

Updated by jorauch almost 7 years ago

Finished the code to copy the iso to a second hdd yesterday

Actions #5

Updated by SLindoMansilla almost 7 years ago

Link related to previous comment: http://pinky.arch.suse.de/tests/148#

Actions #7

Updated by jorauch almost 7 years ago

  • Status changed from New to In Progress

Main.pm has been adapted, still having some weird issues with rebooting the installation and also with finding the second HDD from within the installation
Issues can be seen on pinky.arch.suse.de

Actions #8

Updated by jorauch almost 7 years ago

Tests theoretically working, fails random on TW due to non zero return value of 'parted mklabel gpt' missing question mark when assert_script_run

Actions #9

Updated by jorauch almost 7 years ago

Issue fixed with a new version of qemu (2.9.0-381)

Actions #10

Updated by okurz almost 7 years ago

  • Target version set to Milestone 10
Actions #11

Updated by okurz almost 7 years ago

  • Subject changed from [sles][functional] Instalation from ISO in external drive to [sles][functional] Installation from ISO in external drive

https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/3369 merged.

Please check the test suite I added on https://openqa.opensuse.org/admin/test_suites

I added the test suite to https://openqa.opensuse.org/admin/job_templates/38

@jorauch: As you are operator on o3 you should be able to trigger this test accordingly. When it's stable (e.g. 3 times) make sure the scenario is added to default job group https://openqa.opensuse.org/admin/job_templates/1

Actions #12

Updated by jorauch almost 7 years ago

Thanks for adding and updating the test suite, please replace IMPORT_SSH_KEYS with SSH_KEY_IMPORT, I have got this wrong in the initial commit

Actions #14

Updated by jorauch almost 7 years ago

Since the first run succeeded here another two runs:
https://openqa.opensuse.org/tests/471574
https://openqa.opensuse.org/tests/471575

Actions #16

Updated by jorauch almost 7 years ago

  • Status changed from In Progress to Resolved

Tests suceeded, Test Suite has been created and added to job groups.

Actions #17

Updated by okurz almost 7 years ago

  • Status changed from Resolved to In Progress

aaalmost there :-)

okurz wrote in #19510#note-11:

[…] When it's stable (e.g. 3 times) make sure the scenario is added to default job group https://openqa.opensuse.org/admin/job_templates/1

The same is true for OSD. So you showed that the test is running fine on production but did not ensure yet that every new build will trigger an according test in a validation job group for both o3 and osd.

Actions #18

Updated by jorauch almost 7 years ago

Adding has been requested for O3 and was done for SLE15

Actions #19

Updated by jorauch almost 7 years ago

  • Status changed from In Progress to Resolved

Test was added on OSD and O3 to the job groups of Tumbleweed and SLE15.

O3 Tumbleweed:
https://openqa.opensuse.org/admin/job_templates/1

OSD SLE15:
https://openqa.suse.de/admin/job_templates/110

Actions #20

Updated by okurz almost 7 years ago

  • Status changed from Resolved to In Progress

seems like for SLE15 either the HDD_1 setting is wrong or missing a proper START_AFTER_TEST setting -> https://openqa.suse.de/tests/1125046

Actions #21

Updated by jorauch almost 7 years ago

Please add to the test suite on O3

Actions #22

Updated by jorauch almost 7 years ago

Requested adding "START_AFTER_TEST=create_hdd_gnome" to the external_iso test suite on O3.
Parameter was already added on OSD.

Actions #23

Updated by jorauch almost 7 years ago

  • Status changed from In Progress to Resolved

Working on O3:
https://openqa.opensuse.org/tests/477444
Working on OSD:
https://openqa.suse.de/tests/1142905
I will close it as resolved

Actions

Also available in: Atom PDF