-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fixes #36030 - Ensure HStore is enabled for Pulp 3.22 support #275
Conversation
Pulpcore 3.22 will start using HStore[1], which is in postgresql-contrib. This ensures it's installed and enabled on the DB. That needs to be done by a super user, so it can't be done in regular DB migrations. [1]: pulp/pulpcore#3427
7a9c6c1
to
7ea360c
Compare
@@ -14,6 +15,12 @@ | |||
before => Pulpcore::Admin['migrate --noinput'], | |||
} | |||
|
|||
postgresql::server::extension { "hstore for ${pulpcore::postgresql_db_name}": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like Pulp creates the extension here in their migration: https://github.com/pulp/pulpcore/pull/3427/files#diff-6bc6ee115c471f5d7f62c7cabd997b6197ae986c46cff92096f43b8264507a2dR40
With HStoreExtension()
But I'm guessing it doesn't hurt to have it in two places!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went with this since the issue mentioned that it needs super user privileges on PG < 13. We're on PG 12 now.
Having it in the Django migrations will also make sure it fails if it isn't present, and do the right thing on newer PG.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This worked for me on a Katello development setup!
https://yum.theforeman.org/pulpcore/3.22/GPG-RPM-KEY-pulpcore is missing, so it fails. |
[test] |
@ekohl I'm not sure how to rekick the tests, but the GPG key should be there now. |
Still failing :( |
Looks like the GPG key doesn't match what was used to actually sign the release:
|
@Odilhao are you aware of the above error? |
No, I'm not sure why it's showing gpg errors |
Looking at the signature for aiosignal
It shows the same Key ID as the one for Pulpcore 3.22.2
|
[test] |
|
It appears to be passing now. Perhaps some weird cached content in the CDN? |
I think the GPG cached in the CDN had some problem, after cleaning the cache it worked. |
Quite possible, yes. |
Pulpcore 3.22 will start using HStore, which is in postgresql-contrib. This ensures it's installed.
This is all theoretical and I haven't tested this out yet. Just making sure this is tracked somehow.