Skip to content

Migrate Designate Operator to uwsgi #334

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omersch381
Copy link
Contributor

mod_wsgi is being removed from upstream sources but OpenStack APIs are still using it downstream, which is very concerning.

This patch aims to replace mod_wsgi with uwsgi.

Depends-On: openstack-k8s-operators/tcib#282

mod_wsgi is being removed from upstream sources but OpenStack APIs are still
using it downstream, which is very concerning.

This patch aims to replace mod_wsgi with uwsgi.

Depends-On: openstack-k8s-operators/tcib#282
@openshift-ci openshift-ci bot requested review from gthiemonge and slawqo June 5, 2025 11:11
Copy link
Contributor

openshift-ci bot commented Jun 5, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: omersch381

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Jun 5, 2025
@omersch381 omersch381 marked this pull request as draft June 5, 2025 11:11
@omersch381
Copy link
Contributor Author

/recheck

@omersch381
Copy link
Contributor Author

/test all

@@ -39,3 +39,6 @@ done
# NOTE:dkehn - REMOVED because Kolla_set & start copy eveyrthing.
# I'm doing this to get the designate.conf w/all the tags with values.
cp -a ${SVC_CFG_MERGED} ${SVC_CFG}

echo "Starting Apache"
/usr/sbin/httpd -DFOREGROUND &
Copy link
Collaborator

Choose a reason for hiding this comment

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

The init container is not the appropriate place to run this. What your probably want to do is add another kolla for starting the httpd server and it to the pod template spec for the deployment. For an example, Octavia runs multiple containers (httpd and the provider agent) in the octaviaapi deployment.

WSGIDaemonProcess {{ $endpt }} processes=5 threads=1 user=designate group=designate display-name={{ $endpt }}
WSGIScriptAlias / "/usr/bin/designate-api-wsgi"
# ProxyPass configuration for uwsgi
ProxyPass "/dns" "http://127.0.0.1:60053" retry=0
Copy link

Choose a reason for hiding this comment

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

I would recommend adding "acquire=1" here.

@omersch381
Copy link
Contributor Author

omersch381 commented Jun 17, 2025

Thank you guys for the comments. I will apply those if we decide eventually we continue with this direction (UWSGI).
I am rechecking for a different reason (not this patch).

@omersch381
Copy link
Contributor Author

/retest all

Copy link
Contributor

openshift-ci bot commented Jun 17, 2025

@omersch381: The /retest command does not accept any targets.
The following commands are available to trigger required jobs:

/test designate-operator-build-deploy-kuttl
/test functional
/test images
/test precommit-check

Use /test all to run all jobs.

In response to this:

/retest all

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@omersch381
Copy link
Contributor Author

/test all

Copy link
Contributor

openshift-ci bot commented Jun 17, 2025

@omersch381: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/functional 8b72f48 link true /test functional
ci/prow/precommit-check 8b72f48 link true /test precommit-check
ci/prow/designate-operator-build-deploy-kuttl 8b72f48 link true /test designate-operator-build-deploy-kuttl

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

Successfully merging this pull request may close these issues.

4 participants