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

test: use ipaserver role from collection if it exists #256

Merged
merged 2 commits into from
Feb 13, 2025

Conversation

richm
Copy link
Collaborator

@richm richm commented Feb 3, 2025

No description provided.

@richm
Copy link
Collaborator Author

richm commented Feb 3, 2025

[citest]

4 similar comments
@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

[citest]

@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

[citest]

@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

[citest]

@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

[citest]

@rjeffman
Copy link
Collaborator

rjeffman commented Feb 4, 2025

@richm we plan to migrate all ansible_freeipa releases to a collection in late CY24Q2 in anything but CentOS 8 Stream (which is not supported anymore).

Do you think this change is needed?

On another point of view, a "galaxy role" would be nice to ensure collections are installed (or I'm missing something that already exists and I don't know).

@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

@richm we plan to migrate all ansible_freeipa releases to a collection in late CY24Q2 in anything but CentOS 8 Stream (which is not supported anymore).

Do you mean CY25?

There are a few problems with the basic ipa test:

  • the legacy role was removed from the latest packages in el9 and el10. So we have to use the FQCN of the role in that case.
  • the upstream CI was changed to use BEAKERLIB - so we have to now use some other way to distinguish if we can use the ansible-freeipa rpm package, or install the role directly from github
  • the ipaserver installation is failing:
2025-02-04T01:55:42Z DEBUG Name ipaserver.test.local resolved to {UnsafeIPAddress('10.31.9.54'), UnsafeIPAddress('fe80::1044:c6ff:fe29:5d99')}
2025-02-04T01:55:42Z WARNING Invalid IP address fe80::1044:c6ff:fe29:5d99 for ipaserver.test.local: cannot use link-local IP address fe80::1044:c6ff:fe29:5d99

Do you think this change is needed?

Something needs to be changed/fixed - not sure exactly what.

On another point of view, a "galaxy role" would be nice to ensure collections are installed (or I'm missing something that already exists and I don't know).

Not sure what you mean?

@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

[citest]

2 similar comments
@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

[citest]

@richm
Copy link
Collaborator Author

richm commented Feb 4, 2025

[citest]

@rjeffman rjeffman force-pushed the test-use-ipa-collection branch from ace3ba5 to c1a6948 Compare February 7, 2025 14:03
@rjeffman
Copy link
Collaborator

rjeffman commented Feb 7, 2025

[citest]

@rjeffman rjeffman force-pushed the test-use-ipa-collection branch from c1a6948 to 508771b Compare February 7, 2025 14:19
@rjeffman
Copy link
Collaborator

rjeffman commented Feb 7, 2025

[citest]

@rjeffman rjeffman force-pushed the test-use-ipa-collection branch from 508771b to 8b65c74 Compare February 7, 2025 15:04
@rjeffman
Copy link
Collaborator

rjeffman commented Feb 7, 2025

[citest]

2 similar comments
@rjeffman
Copy link
Collaborator

rjeffman commented Feb 7, 2025

[citest]

@rjeffman
Copy link
Collaborator

[citest]

@rjeffman rjeffman force-pushed the test-use-ipa-collection branch from 2a85061 to a2f076c Compare February 10, 2025 18:17
@rjeffman
Copy link
Collaborator

[citest]

@richm
Copy link
Collaborator Author

richm commented Feb 11, 2025

@rjeffman once this merges - linux-system-roles/tft-tests#67 - you will be able to add this line https://github.com/linux-system-roles/certificate/blob/main/.github/workflows/tft.yml#L172

            ARTIFACTS_URL=${{ steps.set_vars.outputs.ARTIFACTS_URL }};\
            LSR_ANSIBLE_VERBOSITY=-vvv"

to get verbose output

@richm
Copy link
Collaborator Author

richm commented Feb 11, 2025

@rjeffman linux-system-roles/tft-tests#67 is merged - you can make the suggested change to tft.yml to get debugging output

@rjeffman
Copy link
Collaborator

[citest]

3 similar comments
@richm
Copy link
Collaborator Author

richm commented Feb 11, 2025

[citest]

@richm
Copy link
Collaborator Author

richm commented Feb 11, 2025

[citest]

@richm
Copy link
Collaborator Author

richm commented Feb 11, 2025

[citest]

@richm richm force-pushed the test-use-ipa-collection branch from 1623443 to e6ec81e Compare February 11, 2025 22:15
@richm
Copy link
Collaborator Author

richm commented Feb 11, 2025

[citest]

@rjeffman
Copy link
Collaborator

@richm thank you!

Now I have the needed info to look at it (even if it doesn't make sense to fail).

@rjeffman
Copy link
Collaborator

[citest]

1 similar comment
@rjeffman
Copy link
Collaborator

[citest]

@rjeffman rjeffman force-pushed the test-use-ipa-collection branch from 3673814 to d90aa78 Compare February 13, 2025 18:33
@rjeffman
Copy link
Collaborator

[citest]

1 similar comment
@rjeffman
Copy link
Collaborator

[citest]

@rjeffman rjeffman force-pushed the test-use-ipa-collection branch from 01bea01 to 98d7ac5 Compare February 13, 2025 19:43
@rjeffman
Copy link
Collaborator

[citest]

Comment on lines +142 to +149
echo "==========================="
echo " ipaserver-install.log"
echo "==========================="
cat ipaserver-install.log
echo "==========================="
echo " /var/log/messages"
echo "==========================="
cat /var/log/messages
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richm Is this the debug message that should be removed? I'm fine with simlpy removing it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I suggest commenting out that line? It is great to have the indication, no the code, on how to reenable it.

Copy link
Collaborator

@rjeffman rjeffman Feb 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like:

diff --git a/.github/workflows/tft.yml b/.github/workflows/tft.yml
index ede80c4..68e5729 100644
--- a/.github/workflows/tft.yml
+++ b/.github/workflows/tft.yml
@@ -169,8 +169,8 @@ jobs:
             ARTIFACTS_DIR=${{ steps.set_vars.outputs.ARTIFACTS_DIR }};\
             TEST_LOCAL_CHANGES=false;\
             LINUXSYSTEMROLES_USER=${{ vars.LINUXSYSTEMROLES_USER }};\
-            ARTIFACTS_URL=${{ steps.set_vars.outputs.ARTIFACTS_URL }};\
-            LSR_ANSIBLE_VERBOSITY='-vvv'"
+            ARTIFACTS_URL=${{ steps.set_vars.outputs.ARTIFACTS_URL }};"
+          # To increase ansible verbosity add to variables: LSR_ANSIBLE_VERBOSITY='-vvv'
           # Note that LINUXSYSTEMROLES_SSH_KEY must be single-line, TF doesn't read multi-line variables fine.
           secrets: "LINUXSYSTEMROLES_DOMAIN=${{ secrets.LINUXSYSTEMROLES_DOMAIN }};\
             LINUXSYSTEMROLES_SSH_KEY=${{ secrets.LINUXSYSTEMROLES_SSH_KEY }}"

@richm richm merged commit 117f474 into linux-system-roles:main Feb 13, 2025
23 checks passed
@richm richm deleted the test-use-ipa-collection branch February 13, 2025 21:26
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (ac27251) to head (98d7ac5).
Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##             main   #256       +/-   ##
=========================================
- Coverage   32.95%      0   -32.96%     
=========================================
  Files           3      0        -3     
  Lines         613      0      -613     
  Branches      128      0      -128     
=========================================
- Hits          202      0      -202     
+ Misses        411      0      -411     
Flag Coverage Δ
sanity ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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