Commit Graph

794 Commits

Author SHA1 Message Date
f39910d953
add missing use statement 2023-05-06 07:56:50 -07:00
7361baef9f
consider Rocky Linux version when adding powertools/crb 2023-05-05 20:57:13 -07:00
akatch
1df17f8867
Merge pull request #172 from tcooper/dnf_releasever
add support to specify dnf releasever during POST
2023-05-01 22:10:32 -05:00
b1e46166ec
add support to specify dnf releasever during POST 2023-04-30 11:28:06 -07:00
8106d07b6c
correct order for enable powertools 2023-04-29 10:41:51 -07:00
c185b5d074
pandoc-common is in powertools 2023-04-29 10:36:08 -07:00
Adam Williamson
f3e92d20c1
Use pandoc-common instead of python3-kickstart for package tests
Reasoning:

1. pandoc is not in critpath so will not itself be tested
2. pandoc is widely used and actively maintained
3. package is noarch
4. package has minimal deps

Hopefully this will work for everything. For some reason, the
"use python3-blivet for pykickstart tests" fails mysteriously
sometimes, see e.g.
https://openqa.stg.fedoraproject.org/tests/2672282

Signed-off-by: Adam Williamson <awilliam@redhat.com>
Signed-off-by: Trevor Cooper <tcooper@rockylinux.org>
2023-04-24 08:32:45 -07:00
c9ee065c8f
Modifies serial console install following change in network enable default from v8 to v9 2023-03-27 11:39:25 +01:00
Trevor Cooper
220ee770ba
Merge pull request #163 from tcooper/anaconda-text-install
Anaconda text install (alternate)
2023-03-22 22:18:04 -07:00
46d47d4ec5
use password is default in all Rocky Linux versions 2023-03-20 09:20:28 -07:00
aa7fad50d6
fix sub name error 2023-03-20 08:49:05 -07:00
1410418918
rocky 9 has 'use text mode' menu before main hub 2023-03-19 14:17:42 -07:00
152b347f75
replace fedoraproject.org with rockylinux.org
- refs in templates.fif.json and code changed (typically hostnames in multi-worker tests)
- refs in documentation left for historical / context purposes
2023-03-17 10:04:54 -07:00
Trevor Cooper
5677222931
Merge pull request #156 from AlanMarshall/modularity
Modularity tests fix for  9.1  8.8  &  8.7
2023-03-17 09:24:18 -07:00
91e1b5df85
Modularity tests changes
This fixes the consistent failure in the modularity_tests
of the  FLAVOR=dvd-iso test suite  thereby resolving Issue #147
2023-03-02 15:55:03 +00:00
fd6242606e
Merge branch 'develop' into support_server_selinux 2023-02-24 09:08:44 -08:00
61d57d4591
enforce standard coding on all Perl files 2023-02-12 14:59:37 -08:00
709ff7155f
_pxe_setup requires selinux config for /var/tmp/rocky 2023-02-10 10:13:27 -08:00
0877d34aab control content of kickstart 2023-02-07 20:33:40 -08:00
aa6d254e90 configure iscsi acl and authetication 2023-02-07 20:33:40 -08:00
8beed72b25 use a rockylinux.org domain 2023-02-07 20:33:40 -08:00
7bce6605b3 update _pxe_setup 2023-02-07 20:33:40 -08:00
c8cda12ba0 temporary name resolution support 2023-02-07 20:33:40 -08:00
b86f44488b extend timeouts 2023-02-07 20:33:40 -08:00
lumarel
101906db67 Update the support server script for rocky 2023-02-07 20:33:40 -08:00
lumarel
0f7034c00b Implement targetcli instead of the non-available tgtd 2023-02-07 20:33:40 -08:00
Lukas Magauer
366217ee8a
Merge pull request #142 from AlanMarshall/9.1_agm
Fixes for server_cockpit, server_filesystem and release_identification in 9.1 & 8.7
2023-01-20 19:57:38 +01:00
Al Bowles
ca1a217da6
Fix custom_standard_partition_ext4_postinstall failures
Long story short: the volume order seems to have changed at some point.
2023-01-17 17:57:56 -06:00
9969d275fa
New needles and correction of coding errors for 8.7 2023-01-16 16:15:47 +00:00
ff9db3aa93
Add needle and test step 2023-01-14 19:39:31 +00:00
5d9f4dddba
Switch to console for ongoing tests 2023-01-14 16:11:35 +00:00
6b0d06fbaa
Add missing step to switch to console 2023-01-14 14:23:47 +00:00
4b137aef66
Add switch to TTY3 for both, graphical and console tests 2023-01-13 16:43:05 +00:00
c938db7b61
Make internal state marker variables upper-case We use variables to track test state across modules, sometimes. As this is all internal to the test logic I didn't bother always making these variables upper-case, but os-autoinst now treats lower-case variables as a fatal error, so we have to change. Signed-off-by: Adam Williamson <awilliam@redhat.com> (#140) 2023-01-07 12:04:07 -08:00
lumarel
b194fe3c43 Make graphical_wait_login major version agnostic 2022-11-20 21:52:25 +01:00
04c4a50c19
FEATURE: Add DNF_CONTENTDIR override support (#119)
* add dnf_contentdir library function and implement is sample tests

* Short circuit auto addition of _console_wait_login for tests without DESKTOP

* support use of REPOSITORY_GRAPHICAL and ADD_REPOSITORY_GRAPHICAL test variables

* deprecate addition of dnf_contentdir lib function

* create and use get_version_major utility function

* resolve mismatch of login type caused by incorrect template entries

* add and use _staging_repos_enable post-install test

* add install_package_set_* tests only to package-set flavor

* fix variable re-declaration warning/error

* add rocky-getting-started-tour needles

* release rocky-repos content require switch from mirrorlist to baseurl

* implement DNF_CONTENTDIR swap as post-install action before reboot/login

* temp disable _staging_repos_enable

* incomplete fix for _graphical_wait_login
- get_release_number is used heavily in our openQA but makes no sense in 
Rocky. Multiple possible solutions but this one allows 
`_graphical_wait_login` to pass. NEEDS_WORK
2022-07-10 16:05:04 -05:00
33e96cdeea
alternate tests for Rocky Linux 9 2022-06-30 21:31:48 -07:00
baba72c1b5
print what is tested 2022-06-30 21:31:19 -07:00
e0f8ad4a42
better splitting of strings 2022-06-30 21:30:34 -07:00
ee3005b8f7
add and use get_code_name() utility function
- remove the undocumented CODENAME test variable
- codenames from https://git.rockylinux.org/staging/rpms/rocky-release/-/blob/r9/code
2022-06-30 21:29:19 -07:00
79621d45dd
fixup whitespace 2022-06-30 18:12:44 -07:00
Al Bowles
c304e7bf76
Update comment 2022-06-19 14:27:03 -05:00
Al Bowles
1e0b82cf94
Handle the missing license screen in 9 2022-06-18 20:45:38 -05:00
akatch
2c427618ac
8.6 release fixes (#92)
* Handle the "reclaim space" dialog

Adds handling for the "Reclaim Space" dialog, which can appear after the
user clicks "Done" in the partitioning spoke.

* Fix indentations

* Set default HDD size to 15GB

* Remove redundant HDDSIZEGB definitions

* Add more GiBs

* Workaround for #82

* Needle with new security policy spoke icon

* Add new needles to fix cockpit tests in 8.6

* Add contribution SOP to README

* Words

* Script fixes (#99)

* Increment version

* Fix this header

* Fix URL for updates.img (#98)

* ---
title: [8.6 Release Issues] Test Suite: install_delete_partial and install_custom_gui_lvm_ext4 on rocky 8.6
labels: 'test suite'
assignees: '@akatch'

---

# Description

Running openQA test suite `install_delete_partial` as above throws `Test died: no candidate needle with tag(s) 'anaconda_install_destination_reclaim_space_btn' matched` at module `disk_guided_delete_partial`.

At this stage, the "Reclaim Space" button in the lower right corner of the dialog is disabled.

Additionally, the dialog shows that 5GB will be reclaimed by the steps taken to that point in the test, but installation requires around 9GB. Do we need to reclaim enough space for installation in order to enable that button?
_Yes, the button is enabled when enough space to install is reclaimed._

Just adding HDDSIZEGB=20 to `templates.fif.json` did not increase volume size shown in the dialog. Do we need to recreate the img file?
_Yes, recreating the img file using createhdds.py against a larger size in hdds.json resolved this error._

The Reclaim Space dialog claimed 9.06GB was required to perform installation, and after doubling the size of disk_full_XXX.img we got past the Reclaim Space dialog. However, `_do_install_and_reboot` failed to install citing not enough disk space.

Fixes #80 when merged.

# How Has This Been Tested?

```
# NOTE: was not able to reproduce for install_custom_gui_lvm_ext4
openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-dvd1.iso ARCH=x86_64 DISTRI=rocky FLAVOR=dvd-iso VERSION=8.6 BUILD=8.6_dvd-iso_$(date +%Y%m%d.%H%M%S).0 TEST=install_custom_gui_lvm_ext4 PACKAGE_SET=graphical-server

openqa-cli api -X POST isos ISO=Rocky-8.6-x86_64-dvd1.iso ARCH=x86_64 DISTRI=rocky FLAVOR=universal VERSION=8.6 BUILD=8.6_universal_$(date +%Y%m%d.%H%M%S).0 TEST=install_delete_partial PACKAGE_SET=graphical-server
```

All tests must pass `_do_install_and_reboot`.
NOTE: These tests will fail at `_console_wait_login` with the issue in #81.

# Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] Any dependent changes have been merged and published in downstream modules

* Add new needle to mitigate the changed default
for install source on the network from http to https

Co-authored-by: lumarel <lumarel@users.noreply.github.com>
2022-06-09 18:15:17 -05:00
akatch
ff8ce569c7
Test Suite: install_default on rocky-8.5-[minimal|boot|dvd]-iso-x86_64 (#77)
Merging per testing team conversation meeting.

* Correctly check for default packagesets for each flavor

* FIF updates for default packagesets

- Set DESKTOP=gnome to trigger graphical_wait_login instead of
  console_wait_login
- Increase virtual disk size to account for default packagesets

* Correctly check for minimal-iso default packageset

* Updated needles for issue 16

* Update templates.fif.json with package set test suites

Package sets tested per ISO will follow these conventions:
- Test suites will not be duplicated between the boot and dvd ISOs
- All default package sets will be tested against dvd-iso
- Boot ISO will be considered valid if `minimal` package set installs
  cleanly

* Do not add updated needle with changed hostname
2022-03-31 18:23:01 -05:00
049f5f4ba2
Add needles and code to complete anaconda_help test suite (#76)
* remove conflicting/incorrect needles

* mods for ananonda_help test suite
- support Rocky help content in anaconda.pm

* workaround software_selection failure

* add needles for anaconda_help
2022-02-03 18:25:03 -06:00
ad00919d13
extend timeouts for Rocky (#71) 2021-12-16 16:57:51 -06:00
33dd37fdea
connect network during boot (#66)
- updated configuration for boot-iso in templates.fif.json. NOTE: If you 
provide GRUB="value" during POST you must include "ip=dhcp" along with 
your custom GRUB settings.
- short circuit _anaconda_network_enable.pm to check for connection at 
start of test.
- provide needle to detect connected network interface using Network 
Spoke icon instead of Installation Source text.

NOTE: While not required with minimal-iso or dvd-iso flavors specifying 
GRUB="ip=dhcp" will also connect the network interface at boot and 
bypass _anaconda_network_enable.
2021-12-02 18:18:43 -06:00
Lukas Magauer
44e8a76c56
Fixes multiple tests in regard of the PACKAGE_SETs graphical-server and workstation (#61)
tcooper confirmed on the call. Merging it.

* Extend product test commands

* Increase disk size for `install_standard_partition_ext4` because some PACKAGE_SETs are too big

* Limit the license acceptance to only run on tests which run for ISO installations
It is unfortunately not that easy to limit this to ISOs due to that the misterous
limit to HDD_1 and not `custom_resize_lvm`

* Make sure that the disk post installs run in a shell
it happens that the previous test ends in the GUI

Co-authored-by: lumarel <lumarel@users.noreply.github.com>
2021-11-11 19:39:34 -06:00
75904407ad
Fixes install_anaconda_text@64bit on rocky-8.4-universal-x86_64 (#56)
* remove Fedora needles we are replacing

* do not expect VNC vs Text Mode menu during text install

* Rocky has kdump which changes text mode main hub install menu

* enable network and redo software selection

* do not disable password for user

* extend timeout for install

* add needles for install_anaconda_text

* fix console_password_required needles
2021-11-10 18:47:10 -06:00