Tests attempt to connect to addresses which aren't listening

Bug #1203907 reported by Alex Gaynor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
Medium
Chmouel Boudjnah

Bug Description

The object replication tests attempt to connect to the addresses 127.0.0.0, 127.0.0.2, 127.0.0.3, and 127.0.0.4 (obj/test_replicator.py L116). Which aren't listening for anything. On Linux all of 127.0.0.* are mapped, while they are not on OSX, this results in these tests taking http_timeout (60 seconds) * 4 seconds for each test that attempts to talk to the network in thsi fasion (there are 3 of them) thus these tests take 720 seconds. If you map these addresses manually using sudo ifconfig lo0 alias 127.0.0.2 then these tests complete almost instantly. These tests should be altered not to attempt to talk to the network, and particularly not to talk to addresses that aren't listening.

Changed in swift:
status: New → Confirmed
Changed in swift:
assignee: nobody → Chmouel Boudjnah (chmouel)
Changed in swift:
status: Confirmed → Fix Committed
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 1.9.1
status: Fix Committed → Fix Released
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.