Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Convert use of Vagrant to podman-compose for tests #617

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

abbra
Copy link

@abbra abbra commented Jan 14, 2025

Instead of Vagrant use ipalab-config and podman-compose.

ipalab-config github action allows to automatically create FreeIPA environments using ansible-freeipa and run ansible playbooks against these environments.

@abbra abbra force-pushed the use-freeipa-gitub-action branch 2 times, most recently from 8996dad to dd65e3e Compare January 14, 2025 09:03
@abbra abbra changed the title Convert use of Vagrant to podman-compose for tests WIP: Convert use of Vagrant to podman-compose for tests Jan 14, 2025
@abbra abbra marked this pull request as draft January 14, 2025 09:11
@abbra
Copy link
Author

abbra commented Jan 14, 2025

I'm trying to understand why container build is not working at the moment. Perhaps, this is a networking issue as I cannot reproduce it locally.

@abbra abbra force-pushed the use-freeipa-gitub-action branch 12 times, most recently from ee137dd to e8e3e01 Compare January 14, 2025 11:48
@abbra
Copy link
Author

abbra commented Jan 14, 2025

Quite a few tests failed and I need to understand whether they were failing before or it is part of the environment change. Existing vagrant-based tests are using a bit unconventional setup with a primary domain different from the realm and IPA server is being in a totally different domain as well, so I am puzzled.

Here is how a screenshot looks like for a failed test 'Hostgroup members -- Add a Host group member into the host group':
Hostgroup members -- Add a Host group member into the host group (failed)

@abbra abbra force-pushed the use-freeipa-gitub-action branch from e8e3e01 to c233f86 Compare January 14, 2025 12:48
@miskopo miskopo self-requested a review January 16, 2025 13:28
@abbra abbra force-pushed the use-freeipa-gitub-action branch 2 times, most recently from 6280d82 to 692f962 Compare January 17, 2025 19:34
abbra added 2 commits January 19, 2025 12:44
Instead of Vagrant use ipalab-config and podman-compose.

ipalab-config github action allows to automatically create FreeIPA
environments using ansible-freeipa and run ansible playbooks against
these environments.

Switch to ubuntu-latest as ubuntu 20.04 is too old for podman use

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
@abbra abbra force-pushed the use-freeipa-gitub-action branch from 692f962 to 61e780f Compare January 19, 2025 10:44
In general: adding a host entry requires its name to be resolvable over
DNS. Since we don't have those DNS entries yet, we should use 'Force'
checkbox.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
@abbra abbra force-pushed the use-freeipa-gitub-action branch from 61e780f to b5fab21 Compare January 19, 2025 12:00
'ipa host-add foo.bar.z --force' is a valid command. We do not require
IP address being present in this case. This is essential for adding
virtual hosts that manage Kerberos services.

See ipatests/test_xmlrpc/test_service_plugin.py, for example. There are
plenty of tests that use 'host_add' with 'force=True'.

Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
@abbra abbra force-pushed the use-freeipa-gitub-action branch from a64b129 to 14c228b Compare January 20, 2025 09:25
@carma12 carma12 self-requested a review January 21, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants