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

Refs #28903 - Swap the postgresql{,-server} removal #483

Merged
merged 1 commit into from Mar 6, 2020

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Mar 5, 2020

postgresql can't be removed until postgresql-server is removed. 72d7c3f swapped the order. This swaps the order around.

@ekohl
Copy link
Member Author

ekohl commented Mar 5, 2020

I should not I haven't tested this before, just wanted to share this before I headed out.

@ehelms
Copy link
Member

ehelms commented Mar 6, 2020

Doesn't work :/ Puppet keeps ordering them itself so they need to be split up.

@ekohl
Copy link
Member Author

ekohl commented Mar 6, 2020

Pushed an updated version that I'm now testing.

failure_message = "Failed to ensure rh-postgresql12-syspaths is the system PostgreSQL"

logger.info("Ensuring rh-postgresql12-syspaths is the system PostgreSQL")
apply_puppet_code(puppet_code, failure_message)
Copy link
Member

Choose a reason for hiding this comment

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

I get the concept and power of this code, the interface as a developer is just now much uglier :/ This is also a larger re-factoring of the change compared to:

 ensure_packages(['postgresql-server'], 'absent')
 ensure_packages(['postgresql'], 'absent')

I'll be curious to see how testing goes, but my vote is still the above.

Copy link
Member Author

Choose a reason for hiding this comment

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

I considered the same. Given it needs to be cherry picked, I'm tempted to agree with you.

postgresql can't be removed until postgresql-server is removed.
72d7c3f caused the order to be swapped.
This ensures a correct order.
@ekohl ekohl marked this pull request as ready for review March 6, 2020 16:11
@ekohl
Copy link
Member Author

ekohl commented Mar 6, 2020

Ready to review now.

@ehelms ehelms merged commit 9674a95 into theforeman:develop Mar 6, 2020
@ekohl ekohl deleted the 28903-fix branch March 6, 2020 18:56
@tbrisker
Copy link
Member

tbrisker commented Mar 9, 2020

2.0 - f08b784

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants