API worker processes > 1 do not start

Bug #1498054 reported by Tim Simmons
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
Critical
Kiall Mac Innes
Kilo
In Progress
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)
description: updated
Changed in designate:
milestone: none → liberty-rc1
status: New → Triaged
Changed in designate:
importance: Undecided → Critical
Kiall Mac Innes (kiall)
Changed in designate:
assignee: nobody → Kiall Mac Innes (kiall)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

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

Changed in designate:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

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)
Changed in designate:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/234781

Thierry Carrez (ttx)
Changed in designate:
milestone: liberty-rc1 → 1.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on designate (stable/kilo)

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.