Update and Provide FreeIPA Tests #141

Open
nazunalika wants to merge 1 commits from nazunalika/develop into develop
nazunalika commented 2023-01-10 03:22:27 +00:00 (Migrated from github.com)

Hello. This PR attempts to address the following for FreeIPA tests:

  • Modify FreeIPA tests to try to match core's toolkit (func)
  • Add variable assignment for repeated values/domains/realms
    • This will need some validation due to escapes being used on @ in various places
  • Prepare realm portions such as cockpit and password changes in webui
  • Change fedoraproject.org domain to rockylinux.org domain
Hello. This PR attempts to address the following for FreeIPA tests: * Modify FreeIPA tests to try to match core's toolkit (func) * Add variable assignment for repeated values/domains/realms * This will need some validation due to escapes being used on `@` in various places * Prepare realm portions such as cockpit and password changes in webui * Change fedoraproject.org domain to rockylinux.org domain
tcooper commented 2023-03-03 18:37:34 +00:00 (Migrated from github.com)

@nazunalika This PR has been run in openQA and failed. You will find feedback/output here... https://openqa.rockylinux.org/tests/8743

@nazunalika This PR has been run in openQA and failed. You will find feedback/output here... https://openqa.rockylinux.org/tests/8743
nazunalika commented 2023-03-03 20:40:44 +00:00 (Migrated from github.com)

Syntax errors should be resolved now.

Syntax errors should be resolved now.
tcooper commented 2023-03-03 22:36:00 +00:00 (Migrated from github.com)

@nazunalika Use of uninitialized value in bitwise and (&) at os-autoinst-distri-rocky/main.pm line 333. See https://openqa.rockylinux.org/tests/8744

@nazunalika `Use of uninitialized value in bitwise and (&) at os-autoinst-distri-rocky/main.pm line 333.` See https://openqa.rockylinux.org/tests/8744
tcooper commented 2023-03-09 17:11:52 +00:00 (Migrated from github.com)

@nazunalika Thanks for this fix though I don't think it is the core of the problem with this test. See the lines following that where there are multiple syntax errors reported in tests/realmd_join_sssd.pm.

@nazunalika Thanks for this fix though I don't think it is the core of the problem with this test. See the lines following that where there are multiple syntax errors reported in `tests/realmd_join_sssd.pm`.
tcooper commented 2023-03-13 20:20:35 +00:00 (Migrated from github.com)

@nazunalika I've tried to resolve the various syntax errors in these tests but the backend is still complaining about the syntax you've provided. Linter/code checker doesn't have the same complaints so I'm really not sure what is up. Most recent failure is here (https://openqa.rockylinux.org/tests/10988). Can you have another look at the code it is complaining about?

If somebody else with a testing env for openQA can run this PR and come up with changes that will fix the failures that would be most helpful.

@nazunalika I've tried to resolve the various syntax errors in these tests but the backend is still complaining about the syntax you've provided. Linter/code checker doesn't have the same complaints so I'm really not sure what is up. Most recent failure is here (https://openqa.rockylinux.org/tests/10988). Can you have another look at the code it is complaining about? If somebody else with a testing env for openQA can run this PR and come up with changes that will fix the failures that would be most helpful.
nazunalika commented 2023-03-13 20:47:40 +00:00 (Migrated from github.com)

It is likely because we were missing the use feature directive to allow the use of "given". See if that resolves the issue.

It is likely because we were missing the use feature directive to allow the use of "given". See if that resolves the issue.
tcooper commented 2023-03-15 16:56:37 +00:00 (Migrated from github.com)

@nazunalika

  • Syntax errors appear to be resolved and latest test run starts to do something that produces results that can be examined.
  • In server_freeipa_replication_master the hostname is set to ipa002.test.openqa.fedoraproject.org in _post_network_static which won't trigger a failure unless other hosts expect a different domain.
  • For some reason server_freeipa_replication_master isn't dropping to root console in role_deploy_domain_controller causing that test to fail triggerring parallel_failed.

See... https://openqa.rockylinux.org/tests/12341# for more details.

@nazunalika - Syntax errors appear to be resolved and latest test run starts to do something that produces results that can be examined. - In `server_freeipa_replication_master` the hostname is set to `ipa002.test.openqa.fedoraproject.org` in `_post_network_static` which won't trigger a failure unless other hosts expect a different domain. - For some reason `server_freeipa_replication_master` isn't dropping to root console in `role_deploy_domain_controller` causing that test to fail triggerring parallel_failed. See... https://openqa.rockylinux.org/tests/12341# for more details.
nazunalika commented 2023-03-15 18:50:05 +00:00 (Migrated from github.com)

I modified the FIF template to try to get around the hostnames, but I don't know if that is the right thing to do here. (I am of the opinion we should be using our own domain where possible for consistency, but I don't know if it matters to the team). If the replica-to-be has a hostname that isn't in the same domain, becoming a replica can sometimes have problematic results and it isn't guaranteed to succeed.

I modified the FIF template to try to get around the hostnames, but I don't know if that is the right thing to do here. (I am of the opinion we should be using our own domain where possible for consistency, but I don't know if it matters to the team). If the replica-to-be has a hostname that isn't in the same domain, becoming a replica can sometimes have problematic results and it isn't guaranteed to succeed.
tcooper commented 2023-03-16 03:55:53 +00:00 (Migrated from github.com)

Those changes look good for hostnames and I agree these should all be changed to our own domain. There are a few more in some other tests which we'll also need to take care of in separate PRs (see #159).

I can post a test of these changes but for the templates.fif.json update I'll need to clone an existing job and supply those options on the command line as PR runs don't modify templates.fif.json... it's a chicken-and-egg problem.

Hopefully, the failure of server_freeipa_replication_master to drop to root console was a one-off. That problem didn't exist in the replica instance.

Those changes look good for hostnames and I agree these should all be changed to our own domain. There are a few more in some other tests which we'll also need to take care of in separate PRs (see #159). I can post a test of these changes but for the `templates.fif.json` update I'll need to clone an existing job and supply those options on the command line as PR runs don't modify `templates.fif.json`... it's a chicken-and-egg problem. Hopefully, the failure of `server_freeipa_replication_master` to drop to root console was a one-off. That problem didn't exist in the replica instance.
tcooper commented 2023-03-16 15:45:17 +00:00 (Migrated from github.com)

OK... clone of job and supply POST_STATIC for the job didn't work. It applied the tap configuration to the parent install_default_upload job causing that test to fail and breaking the whole parallel run. I think this PR is going to need to be directly tested / fixed by somebody with a working multi-worker DEV setup or the mods to the templates.fif.json will need to be merged in as is in order to do more testing. Will discuss in today's meeting...

OK... clone of job and supply `POST_STATIC` for the job didn't work. It applied the tap configuration to the parent `install_default_upload` job causing that test to fail and breaking the whole parallel run. I think this PR is going to need to be directly tested / fixed by somebody with a working multi-worker DEV setup or the mods to the `templates.fif.json` will need to be merged in as is in order to do more testing. Will discuss in today's meeting...
This pull request can be merged automatically.
You are not authorized to merge this pull request.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b nazunalika/develop develop
git pull origin nazunalika/develop

Step 2:

Merge the changes and update on Gitea.
git checkout develop
git merge --no-ff nazunalika/develop
git push origin develop
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: testing/os-autoinst-distri-rocky-migrated#141
No description provided.