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-39352) Add version to get peadm config #527

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

jpartlow
Copy link
Contributor

@jpartlow jpartlow commented Nov 22, 2024

Summary

Adds a lookup of the pe_build file to provide the PE version in the hash
returned by the get_peadm_config task.

We will use this in add_database and backup/restore plans as a version
gate for handling the newer host_action_collector database that is only
present in PE 2023.7+, for example.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.

Changes include test coverage?

  • Yes
  • Not needed

Debated this; get_peadm_config task doesn't currently have a spec. I could certainly add one, if we'd like to expand the coverage there, but it's quite a bit more code than the pe_version addition :)

Have you updated the documentation?

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

@jpartlow jpartlow requested review from a team as code owners November 22, 2024 19:43
@jpartlow
Copy link
Contributor Author

Hmm, the github actions suite seems pretty unhappy atm.

Copy link
Contributor

@mcdonaldseanp mcdonaldseanp left a comment

Choose a reason for hiding this comment

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

The unit tests need to be fixed, but I definitely approve the actual changes in this PR

@jpartlow
Copy link
Contributor Author

Well, Sean had run into the patron gem building error in enterprise_tasks, and I added his patch to the actions in c7651f3, but while that does allow bundler to build, the actions are now failing in the provision step.

@jpartlow jpartlow force-pushed the pe-39352-add-version-to-get-peadm-config branch from c7651f3 to 9345eab Compare December 3, 2024 22:07
@jpartlow
Copy link
Contributor Author

jpartlow commented Dec 4, 2024

Alright, I think this is ready to go now.

The 'PE HA Replica' node group is present in all PE installations,
installed with or without PEADM. Switched this to check for the 'PE
Primary A' node group that a PEADM installation specifically creates.
Adds a lookup of the pe_build file to provide the PE version in the hash
returned by the get_peadm_config task.

We will use this in add_database and backup/restore plans as a version
gate for handling the newer host_action_collector database that is only
present in PE 2023.7+, for example.
@jpartlow jpartlow force-pushed the pe-39352-add-version-to-get-peadm-config branch from 9345eab to 7e77c21 Compare December 4, 2024 22:20
@ragingra ragingra merged commit 27485f4 into main Dec 5, 2024
70 checks passed
@ragingra ragingra deleted the pe-39352-add-version-to-get-peadm-config branch December 5, 2024 17:06
@jpartlow jpartlow restored the pe-39352-add-version-to-get-peadm-config branch December 10, 2024 23:27
@jpartlow jpartlow deleted the pe-39352-add-version-to-get-peadm-config branch December 11, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants