Package: octavia
Version: 3.0.0-1
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu  ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * d/octavia-api.init.in: Drop UWSGI settings as API is not being run under
    uwsgi (LP: #1798891).

This is probably not the fix that's desired in Debian but I figured I'd submit 
the patch
along with the bug. The init file isn't running the uwsgi binary. It's running 
the
octavia-api binary and attempting to pass it uwsgi options.

Thanks for considering the patch.


-- System Information:
Debian Release: buster/sid
  APT prefers cosmic-updates
  APT policy: (500, 'cosmic-updates'), (500, 'cosmic-security'), (500, 
'cosmic'), (500, 'bionic-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-10-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru octavia-3.0.0/debian/octavia-api.init.in 
octavia-3.0.0/debian/octavia-api.init.in
--- octavia-3.0.0/debian/octavia-api.init.in    2018-09-05 14:09:46.000000000 
-0400
+++ octavia-3.0.0/debian/octavia-api.init.in    2018-10-19 16:14:23.000000000 
-0400
@@ -17,6 +17,3 @@
 DESC="OpenStack Octavia API (octavia-api)"
 PROJECT_NAME=octavia
 NAME=${PROJECT_NAME}-api
-UWSGI_PORT=9876
-UWSGI_INI_PATH=/etc/octavia/octavia-api-uwsgi.ini
-UWSGI_INI_APP=/usr/bin/octavia-wsgi
diff -Nru octavia-3.0.0/debian/octavia-api.install 
octavia-3.0.0/debian/octavia-api.install
--- octavia-3.0.0/debian/octavia-api.install    2018-09-05 14:09:46.000000000 
-0400
+++ octavia-3.0.0/debian/octavia-api.install    1969-12-31 19:00:00.000000000 
-0500
@@ -1 +0,0 @@
-debian/octavia-api-uwsgi.ini   /etc/octavia
diff -Nru octavia-3.0.0/debian/octavia-api-uwsgi.ini 
octavia-3.0.0/debian/octavia-api-uwsgi.ini
--- octavia-3.0.0/debian/octavia-api-uwsgi.ini  2018-09-05 14:09:46.000000000 
-0400
+++ octavia-3.0.0/debian/octavia-api-uwsgi.ini  1969-12-31 19:00:00.000000000 
-0500
@@ -1,60 +0,0 @@
-[uwsgi]
-############################
-### Generic UWSGI config ###
-############################
-
-# Override the default size for headers from the 4k default.
-buffer-size = 65535
-
-# This avoids error 104: "Connection reset by peer"
-rem-header = Content-Length
-
-# This is running standalone
-master = true
-
-# Threads and processes
-enable-threads = true
-
-processes = 4
-
-# uwsgi recommends this to prevent thundering herd on accept.
-thunder-lock = true
-
-plugins = python3
-
-# This ensures that file descriptors aren't shared between the WSGI 
application processes.
-lazy-apps = true
-
-# Log from the wsgi application: needs python3-pastescript as runtime depends.
-paste-logger = true
-
-# automatically kill workers if master dies
-no-orphans = true
-
-# exit instead of brutal reload on SIGTERM
-die-on-term = true
-
-##################################
-### OpenStack service specific ###
-##################################
-
-# This is the standard port for the WSGI application, listening on all 
available IPs
-logto = /var/log/octavia/octavia-api.log
-name = octavia-api
-uid = octavia
-gid = octavia
-chdir = /var/lib/octavia
-wsgi-file = /usr/bin/octavia-wsgi
-
-# This is controled by the init script using the --http-socket
-# or using the --https thing. https will be activated if a file
-# /etc/nova/ssl/private/*.pem is found. In both case, port 9292
-# on all IPs will be used.
-# The partern to search for the private key file is:
-# find /etc/nova/ssl/private -type f -iname '*.pem' | head -n 1
-# and for the certificate:
-# find /etc/nova/ssl/private -type f -iname '*.crt' | head -n 1
-# just drop files there and restart the daemon, and you'll have
-# SSL up and running.
-#http-socket = :8778
-#https-socket = 0.0.0.0:8778,foobar.crt,foobar.key

Reply via email to