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

Replace wsgi package conflict with config file #1523

Closed
wants to merge 1 commit into from

Conversation

tiran
Copy link
Member

@tiran tiran commented Feb 6, 2018

Instead of a package conflict, freeIPA now uses an Apache config file to
enforce the correct wsgi module. The workaround only applies to Fedora
since it is the only platform that permits parallel installation of
Python 2 and Python 3 mod_wsgi modules. RHEL 7 has only Python 2 and
Debian doesn't permit installation of both variants.

Fixes: https://pagure.io/freeipa/issue/7394
Signed-off-by: Christian Heimes cheimes@redhat.com

@tiran tiran added the WIP Work in progress - not ready yet for review label Feb 6, 2018
@tiran tiran added prioritized Pull Request has higher priority for PR-CI needs review Pull Request is waiting for a review and removed WIP Work in progress - not ready yet for review labels Feb 6, 2018
@tiran tiran requested review from stlaz and rcritten February 6, 2018 10:23
Copy link
Collaborator

@Rezney Rezney left a comment

Choose a reason for hiding this comment

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

This is just out-of-curiosity review. IPA devel should check from functional POV.

def configure_httpd_wsgi_conf(self):
"""Configure WSGI for correct Python version"""
# only used on Fedora, NOP on other platforms

Copy link
Collaborator

Choose a reason for hiding this comment

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

raise NotImplementedError() missing

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, I did this on purpose. The function is not implemented on any platform except Fedora.

if sys.version_info > (3, 0):
wsgi_module = constants.MOD_WSGI_PYTHON3
else:
wsgi_module = constants.MOD_WSGI_PYTHON3
Copy link
Collaborator

Choose a reason for hiding this comment

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

should not it be constants.MOD_WSGI_PYTHON2 here?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, got catch :)

Instead of a package conflict, freeIPA now uses an Apache config file to
enforce the correct wsgi module. The workaround only applies to Fedora
since it is the only platform that permits parallel installation of
Python 2 and Python 3 mod_wsgi modules. RHEL 7 has only Python 2 and
Debian doesn't permit installation of both variants.

See: https://pagure.io/freeipa/issue/7161
Fixes: https://pagure.io/freeipa/issue/7394
Signed-off-by: Christian Heimes <cheimes@redhat.com>
@rcritten rcritten added ack Pull Request approved, can be merged and removed needs review Pull Request is waiting for a review labels Feb 8, 2018
@tiran
Copy link
Member Author

tiran commented Feb 9, 2018

master:

  • 1785a3e Replace wsgi package conflict with config file

@tiran tiran added the pushed Pull Request has already been pushed label Feb 9, 2018
@tiran tiran closed this Feb 9, 2018
@tiran tiran deleted the issue7394-wsgi-conf branch February 9, 2018 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ack Pull Request approved, can be merged prioritized Pull Request has higher priority for PR-CI pushed Pull Request has already been pushed
Projects
None yet
3 participants