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

(PE-39577) Optimise legacy compiler support #536

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

petergmurphy
Copy link
Contributor

@petergmurphy petergmurphy commented Jan 15, 2025

Summary

This PR will:

  • Adds the node_group_unpin task.
  • node_group_unpin task is called in the convert plan to remove
    legacy compilers from from the PE Master node group.
  • Legacy compilers pp_auth_role changed to pe_compiler_legacy.
  • Changes the PEADM config to use the PE Certificate Authority node group.
  • Removes peadm_legacy_compiler OID extension.
  • Adds a task to update PE Master rules to support 'pe_compiler_legacy'
    as a pp_auth_role.
  • Adds a task to check if PE Master rules have been updated to support
    the new method of legacy compiler identification.
    • This task is being used in the add_compilers and
      convert_compiler_to_legacy plans to check if the infrastructure
      has been converted to support this new method of legacy compiler
      identification. If the infrastructure has not been converted, it will
      fail each plan and tell the user to run the Convert plan.

Additional Context

Add any additional context about the problem here.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.

Changes include test coverage?

  • Yes
  • Not needed

Have you updated the documentation?

  • Yes, I've updated the appropriate docs
  • Not needed

@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch 2 times, most recently from 4b1a560 to b5b9ca5 Compare January 16, 2025 14:19
@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch from b5b9ca5 to 9888996 Compare January 21, 2025 14:40
@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch 13 times, most recently from 9e5efc3 to 1431087 Compare January 30, 2025 16:41
@petergmurphy petergmurphy marked this pull request as ready for review January 31, 2025 09:52
@petergmurphy petergmurphy requested review from a team as code owners January 31, 2025 09:52
@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch 2 times, most recently from 0cec740 to 81e986a Compare February 7, 2025 13:01
@petergmurphy
Copy link
Contributor Author

Just to note, commits will be squashed

Copy link
Member

@Sharpie Sharpie left a comment

Choose a reason for hiding this comment

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

I tested this out with a PE 2021.7.10 -> 2023.8.2 upgrade and it resolved most issues outlined in PE-39577.

One item that still remains unresolved is:

Ensure that running puppet infra configure does not remove classification rules

But, that can be split off to a separate ticket. The fix to that likely spans changes to both peadm and the puppet-enterprise-modules.

@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch from 55d852f to 7c6170f Compare March 12, 2025 11:11
@petergmurphy petergmurphy requested a review from a team as a code owner March 12, 2025 11:11
@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch 4 times, most recently from 4d13520 to 90a1318 Compare March 12, 2025 16:02
@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch 4 times, most recently from 7a09089 to 10634e0 Compare March 19, 2025 15:15
Copy link
Contributor

@davidmalloncares davidmalloncares left a comment

Choose a reason for hiding this comment

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

Tested all the scenarios you laid out and all looks good

@davidmalloncares davidmalloncares force-pushed the pe-39577-optimise-legacy-compiler-support branch 4 times, most recently from e71a2f8 to 4479baf Compare March 21, 2025 09:36
This commit:
- Adds the `node_group_unpin` task.
- `node_group_unpin` task is called in the convert plan to remove
  legacy compilers from from the PE Master node group.
- Legacy compilers `pp_auth_role` changed to `pe_compiler_legacy`.
- Changes the PEADM config to use the PE Certificate Authority node group.
- Removes peadm_legacy_compiler OID extension.
- Adds a task to update PE Master rules to support 'pe_compiler_legacy'
  as a pp_auth_role.
- Adds a task to check if PE Master rules have been updated to support
  the new method of legacy compiler identification.
    - This task is being used in the `add_compilers` and
      `convert_compiler_to_legacy` plans to check if the infrastructure
      has been converted to support this new method of legacy compiler
      identification. If the infrastructure has not been converted, it will
      fail each plan and tell the user to run the Convert plan.
@davidmalloncares davidmalloncares force-pushed the pe-39577-optimise-legacy-compiler-support branch from 4479baf to 146b1ad Compare March 21, 2025 09:39
@davidmalloncares davidmalloncares merged commit 4158630 into main Mar 21, 2025
98 checks passed
@davidmalloncares davidmalloncares deleted the pe-39577-optimise-legacy-compiler-support branch March 21, 2025 14:51
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.

4 participants