Support wsgi on python 3.8, 3.9, 3.11 and 3.12 on rhel8#372
Support wsgi on python 3.8, 3.9, 3.11 and 3.12 on rhel8#372teluq-pbrideau wants to merge 2 commits into
Conversation
7637c1d to
85347ac
Compare
0960831 to
85347ac
Compare
|
Hi @teluq-pbrideau, thanks for your contribution! I wanted to help as I have some experience with a similar thing from #370. Initially I pushed some changes directly to your branch - sorry for that! 😓 - but I reverted them now. I am doing my further experiments on it's copy, here #373. |
|
It seems to be a problem about upstream configuration about puppetdb itself. On my side, i’ve configured my infrastructure with package { 'postgresql-module':
ensure => '13',
name => 'postgresql',
enable_only => true,
provider => 'dnfmodule',
}
class { 'puppetdb::database::postgresql' :
listen_addresses => '0.0.0.0',
postgres_version => '10',
manage_package_repo => false,
manage_server => false,
database_password => $db_password.unwrap,
}as a weird hack that gets around installing correctly postgres Is the upstream puppetdb module run the acceptance test on centos successfully? |
|
(Yes, sorry @teluq-pbrideau, I moved your comment here.) |
No, but it's hard to tell why as the logs are gone, see https://github.com/puppetlabs/puppetlabs-puppetdb/actions/runs/2064063268 .... But it seems that the default installed Postgres version is 11 (https://github.com/puppetlabs/puppetlabs-puppetdb/blob/main/manifests/params.pp#L29), while this package does not seem to exist for Centos / Redhat 8 as both our Ci logs say:
|
|
Nevermind, just rebase from master, and test fail, I’ll work on them |
85347ac to
d37799b
Compare
|
Only Ubuntu 18.04 is failing right now, which is an EOL OS, so you may remove support for that OS. |
|
@kenyon I’m not sure if it is the only place, I've found references on ubuntu 18.04 in |
6cdb569 to
14d52e6
Compare
|
Also, I see there is no acceptance test on RHEL (only on Debian and Ubuntu) and my PR is only related to RHEL. Would it be simple to include acceptance on Rocky also? I’ve never done these kind of tests, so not sure if I really want to go down this rabbit hole, but if it is simple to add Rocky to the mix, would you be willing to help me helping this community? |
14d52e6 to
faf08bc
Compare
I would like to but apparently I don't know how as I failed to fix the tests the last time I tried. @kenyon ? |
faf08bc to
6557dff
Compare
|
I would rather have my changes merged than to wait another year for RHEL test to be included… Could we move forward please? |
6557dff to
21c2699
Compare
8d7e907 to
15df7a6
Compare
15df7a6 to
0d5a089
Compare
|
So Python should also be configured correctly now I guess… |
74c2ecd to
b2eb724
Compare
dc7dd75 to
9ac3c21
Compare
fix: linter feat: also test for OracleLinux 8 and AlmaLinux 8 fix: python 3.6 shipped with RedHat8 fix: require python3.9 on EL8 fix: support python 3.6, 3.8, 3.9, 3.11, 3.12 on EL8
test: install mod_wsgi from puppetboard::apache::conf test: fix puppetdb dependency for postgresql on el8
e629a4b to
8e8a0c1
Compare
|
At last, more than 2 years later, tests run successfully! |
kenyon
left a comment
There was a problem hiding this comment.
Would be nice if the code could be deduplicated a bit, but that can be for another pull request.
Pull Request (PR) description
As inspired by issue mentioned, this fix the install of wsgi for python 3.8 and 3.9 on rhel.
There is no need to set to specific
mod_pathas the packages provides the file inhttpd/modulesI’m not a very confident test writer, but I did my best to test the changes I made. Please suggest what could be done better if you think it is required.
EDIT: as of now, following versions are supported:
I’ve added versions supported on EL8
This Pull Request (PR) fixes the following issues
Fixes #369
Fixes #373