#3836 closed defect (fixed)

SystemTestMixin.set_up_grid configures an introducer that tries to automatically select a main tub port

Reported by: exarkun Owned by: exarkun
Priority: normal Milestone: undecided
Component: unknown Version: n/a
Keywords: Cc: exarkun
Launchpad Bug:

Description

allmydata.test.common_system.SystemTestMixin._create_introducer does not supply a configuration value for tub.port or tub.location. Consequently, the introducer created by this function tries to pick a free TCP port on its own to use for the main tub. Since this process is subject to race conditions, this sometimes fails. Since _create_introducer is called by set_up_nodes and set_up_nodes is essentially the whole point of SystemTestMixin, all test cases that use SystemTestMixin are subject to this intermittent failure condition.

Instead, _create_introducer should supply a configuration that specifies a reliably available port for the main tub.

Change History (1)

comment:1 Changed at 2021-11-03T20:00:04Z by exarkun

  • Cc exarkun added
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 5bfe6d5b24813c6ef0107f64f66dc4027917c813 but I got the commit message syntax wrong

Note: See TracTickets for help on using tickets.