Michael Johnson e6d83dfcf7 Add wsgi module to Designate and remove wsgi script
Changes in python packaging tooling mean that the wsgi_scripts
functionality via PBR may not longer function.

This patch switches Designate from using the PBR wsgi_scripts method to
using a new wsgi module that provides the same behavior as the generated
wsgi scripts provided.

A related devstack patch enables devstack to setup uWSGI to use the new
module path instead of the generated wsgi scripts.

This also aligns Designate to a new proposed OpenStack goal[1].

[1] https://review.opendev.org/c/openstack/governance/+/902807

In order to make the CI work, this patch was merged with:

zuul: Drop centos9 and make grenade non-voting

The requirements repo has dropped upper-constraints for python3.9, so
the centos9-based jobs are no longer working on master, let's drop them.

Also the grenade jobs are broken due to the referenced bug, make them
temporarily non-voting, so that we can merge the fix[0] on master first,
backport it, and then re-enable them.

[0] https://review.opendev.org/c/openstack/designate/+/902846

Related-Bug: 2109577
Depends-On: https://review.opendev.org/c/openstack/devstack/+/902758
Change-Id: If90056ae1de4a6a3557fc870497e6233088bfb02
2025-04-29 15:09:33 +00:00
..
2019-10-19 07:16:14 +00:00
2019-09-24 04:26:19 -07:00
2024-06-01 05:06:51 +00:00
2024-11-09 17:38:52 +09:00
2024-08-09 18:06:54 +02:00

Enabling in Devstack

WARNING: the stack.sh script must be run in a disposable VM that is not being created automatically, see the README.md file in the "devstack" repository. See contrib/vagrant to create a vagrant VM.

  1. Download DevStack:

    git clone https://opendev.org/openstack/devstack.git
    cd devstack
  2. Add this repo as an external repository:

    > cat local.conf
    [[local|localrc]]
    enable_plugin designate https://opendev.org/openstack/designate

    Note: Running with a multipool option: Perform the above step, and in addition set the backend driver and scheduler filters:

    SCHEDULER_FILTERS=attribute,pool_id_attributes,in_doubt_default_pool
    DESIGNATE_BACKEND_DRIVER=multipool-bind9
  3. run stack.sh