object-server servers_per_port Unable to bind to port floods logs

Bug #1940694 reported by clayg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
In Progress
Undecided
Unassigned

Bug Description

We had a node with a hardeware issue in the network stack

2021-08-20T16:08:04.426373+00:00 ss0217 object-server: crit Unable to bind to port 6015: [Errno 99] Cannot assign requested address

^ like 3k/s

I can get in a tightloop spewing logs with

  diff --git a/swift/common/wsgi.py b/swift/common/wsgi.py
  index bce2f151a..519a23773 100644
  --- a/swift/common/wsgi.py
  +++ b/swift/common/wsgi.py
  @@ -906,6 +906,7 @@ class ServersPerPortStrategy(StrategyBase):
           self.bind_ports = self.cache.all_bind_ports_for_node()

       def _bind_port(self, port):
  + asdf
           new_conf = self.conf.copy()
           new_conf['bind_port'] = port
           return get_socket(new_conf)

it'd be better if the service could tell it's broken and try to die

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to swift (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/swift/+/805441

Changed in swift:
status: New → In Progress
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.