os-autoinst-distri-rocky-mi.../tests
Adam Williamson 66fc3cc7d4 add a cockpit realmd FreeIPA join test
Summary:
This requires a few other changes:

* turn clone_host_resolv into clone_host_file, letting you clone
  any given host file (cloning /etc/hosts seems to make both
  server deployment and client enrolment faster/more reliable)
* allow loading of multiple POSTINSTALL tests (so we can share
  the freeipa_client_postinstall test). Note this is compatible,
  existing uses will work fine
* move initial password change for the IPA test users into the
  server deployment test (so the client tests don't conflict over
  doing that)
* add GRUB_POSTINSTALL, for specifying boot parameters for boot of
  the installed system, and make it work by tweaking _console_wait
  _login (doesn't work for _graphical_wait_login yet, as I didn't
  need that)
* make the static networking config for tap tests into a library
  function so the tests can share it
* handle ABRT problem dirs showing up in /var/spool/abrt as well
  as /var/tmp/abrt (because the enrol attempt hits #1330766 and
  the crash report shows up in /var/spool/abrt, don't ask me why
  the difference, I just work here)
* specify the DNS servers from the worker host's resolv.conf as
  the forwarders for the FreeIPA server when deploying it; if we
  don't do this, rolekit defaults to using the root servers as
  forwarders(!) and thus we get the public, not phx2-appropriate,
  results for e.g. mirrors.fedoraproject.org, some of which the
  workers can't reach, so PackageKit package install always fails
  (boy, was it fun figuring THAT mess out)

Even after all that, the test still doesn't actually pass, but
I'm reasonably confident this is because it's hitting actual bugs,
not because it's broken. It runs into #1330766 nearly every time
(I think I saw *one* time the enrolment actually succeeded), and
seems to run into a subsequent bug I hadn't seen before when
trying to work around that by trying the join again (see
https://bugzilla.redhat.com/show_bug.cgi?id=1330766#c37 ).

Test Plan:
Run the test, see what happens. If you're really lucky,
it'll actually pass. But you'll probably run into #1330766#c37,
I'm mostly posting for comment. You'll need a tap-capable openQA
instance to test this.

Reviewers: jskladan, garretraziel

Reviewed By: garretraziel

Subscribers: tflink

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D880
2016-06-07 13:00:39 -07:00
..
_boot_to_anaconda.pm add a cockpit realmd FreeIPA join test 2016-06-07 13:00:39 -07:00
_console_shutdown.pm shutdown before uploading disk images 2016-03-22 07:19:47 -07:00
_console_wait_login.pm add a cockpit realmd FreeIPA join test 2016-06-07 13:00:39 -07:00
_do_install_and_reboot.pm add Russian install test 2016-05-20 07:52:55 -07:00
_graphical_wait_login.pm _graphical_wait_login: inherit 'installedtest' not 'basetest' 2016-05-20 07:53:45 -07:00
_software_selection.pm add comments and documentation 2015-08-05 08:23:59 +02:00
base_selinux.pm add a base_selinux test (follow-on from default_install) 2015-12-17 12:46:14 -08:00
base_service_manipulation.pm add base_service_manipulation test 2016-01-11 12:30:24 -08:00
base_services_start.pm workaround mcelog failing 2016-06-01 08:12:16 +02:00
desktop_terminal_postinstall.pm add desktop_terminal test, refactor test loading a bit 2016-05-05 16:39:47 -07:00
disk_custom_btrfs.pm add ext3, btrfs and LVM thin tests, tweaks to custom methods 2015-08-10 11:01:12 -07:00
disk_custom_ext3.pm add ext3, btrfs and LVM thin tests, tweaks to custom methods 2015-08-10 11:01:12 -07:00
disk_custom_lvmthin.pm add ext3, btrfs and LVM thin tests, tweaks to custom methods 2015-08-10 11:01:12 -07:00
disk_custom_no_swap.pm small fix: wait a sec between clicks of 'Done' in no_swap 2015-08-31 17:02:27 -07:00
disk_custom_software_raid_postinstall.pm use validate_script_output instead of typing and needles matching 2015-11-04 14:38:36 +01:00
disk_custom_software_raid.pm add ext3, btrfs and LVM thin tests, tweaks to custom methods 2015-08-10 11:01:12 -07:00
disk_custom_xfs.pm add custom partitioning xfs tests 2015-11-26 13:50:45 +01:00
disk_guided_delete_all.pm add comments and documentation 2015-08-05 08:23:59 +02:00
disk_guided_delete_partial_postinstall.pm use assert_script_run when possible 2016-01-12 09:27:14 -08:00
disk_guided_delete_partial.pm add comments and documentation 2015-08-05 08:23:59 +02:00
disk_guided_empty.pm rename BOOT_UPDATES_IMG_URL to TEST_UPDATES, add GRUBADD 2016-04-08 13:21:29 -07:00
disk_guided_encrypted_postinstall.pm add comments and documentation 2015-08-05 08:23:59 +02:00
disk_guided_encrypted.pm disk_guided_encrypted: only switch layout when appropriate 2016-05-20 11:56:48 -07:00
disk_guided_free_space_postinstall.pm use assert_script_run when possible 2016-01-12 09:27:14 -08:00
disk_guided_multi_empty_all_postinstall.pm use validate_script_output instead of typing and needles matching 2015-11-04 14:38:36 +01:00
disk_guided_multi_empty_all.pm add comments and documentation 2015-08-05 08:23:59 +02:00
disk_guided_multi_postinstall.pm fix server_multi postinstall for disk being virtio 2016-01-27 01:44:20 -08:00
disk_guided_multi.pm add comments and documentation 2015-08-05 08:23:59 +02:00
disk_guided_shrink_postinstall.pm use assert_script_run when possible 2016-01-12 09:27:14 -08:00
disk_guided_shrink.pm add guided shrink test 2015-09-08 15:54:22 +02:00
firewall_configured_postinstall.pm add firewall kickstart tests (disabled and configured) 2016-03-23 13:52:00 -07:00
firewall_disabled_postinstall.pm add firewall kickstart tests (disabled and configured) 2016-03-23 13:52:00 -07:00
freeipa_client_postinstall.pm add a cockpit realmd FreeIPA join test 2016-06-07 13:00:39 -07:00
install_arm_image_deployment.pm add ARM initial-setup test 2016-05-18 14:04:45 +02:00
install_source_graphical.pm do the /Everything/ fix for REPOSITORY_GRAPHICAL too 2016-03-02 10:25:51 -08:00
install_source_variation.pm add /Everything/ to REPOSITORY_VARIATION 2016-03-02 09:12:41 -08:00
realmd_join_cockpit_postinstall.pm add a cockpit realmd FreeIPA join test 2016-06-07 13:00:39 -07:00
role_deploy_domain_controller.pm add a cockpit realmd FreeIPA join test 2016-06-07 13:00:39 -07:00
server_cockpit_basic_postinstall.pm add cockpit_default and cockpit_basic tests 2016-06-01 09:05:33 -07:00
server_cockpit_default_postinstall.pm add cockpit_default and cockpit_basic tests 2016-06-01 09:05:33 -07:00
server_firewall_default_postinstall.pm add a server default firewall test 2016-05-31 14:24:34 -07:00
uefi_postinstall.pm use assert_script_run when possible 2016-01-12 09:27:14 -08:00
upgrade_postinstall.pm add desktop_terminal test, refactor test loading a bit 2016-05-05 16:39:47 -07:00
upgrade_preinstall.pm dnf-plugin-system-upgrade: don't use updates-testing, 10 mins 2016-05-06 13:37:19 -07:00
upgrade_run.pm add desktop_terminal test, refactor test loading a bit 2016-05-05 16:39:47 -07:00