API worker processes > 1 do not start

Bug #1498054 reported by Tim Simmons on 2015-09-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Critical
Kiall Mac Innes
Kilo
High
Kiall Mac Innes

Bug Description

Using "workers = x" where x > 1 in the designate-api process doesn't work properly. The API doesn't have the necessary logic to have multiple processes bind to the same port (9001 by default):

Here's what happens:
http://paste.openstack.org/show/472864/

RuntimeError: Could not bind to 0.0.0.0:9001 after trying for 30 seconds

The first process to start continues to work fine.

Tim Simmons (timsim) on 2015-09-21
description: updated
Changed in designate:
milestone: none → liberty-rc1
status: New → Triaged
Changed in designate:
importance: Undecided → Critical
Kiall Mac Innes (kiall) on 2015-09-22
Changed in designate:
assignee: nobody → Kiall Mac Innes (kiall)

Fix proposed to branch: master
Review: https://review.openstack.org/226224

Changed in designate:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/226224
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=0c034d1c8add224ef2190e19735bec78dac89555
Submitter: Jenkins
Branch: master

commit 0c034d1c8add224ef2190e19735bec78dac89555
Author: Kiall Mac Innes <email address hidden>
Date: Tue Sep 22 10:52:41 2015 +0100

    Ensure API workers > 1 starts correctly

    * Move DNSUtils bind methods into designate.utils
    * Switch WSGIService to using the bind_tcp method
    * Add support for TCP_KEEPIDLE to the bind_tcp method

    Change-Id: If2d554fd757969f5b833ede6cb635bb4901906a7
    Closes-Bug: 1498054

Changed in designate:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2015-09-24
Changed in designate:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2015-10-15
Changed in designate:
milestone: liberty-rc1 → 1.0.0

Change abandoned by Kiall Mac Innes (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/234781
Reason: Kilo is reaching EOL

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers