#7460 dirsrv port check is buggy
Opened 6 years ago by cheimes. Modified 5 years ago

DS installers check for open ports has multiple issues:

  • ipaserver.install.dsinstance.check_ports uses not host_port_open(...). The function returns False when it cannot connect a server on IPv4 and IPv6 of all IP addresses. This means that the check will pass if only e.g. IPv4 port is in use, see #7415.
  • The check uses None as hostname, which translates to IP address of localhost. However a port can be bound to one interface. The check should validate all available IP addresses.
  • check_dirsrv function exists two times, one in install and another time in replicainstall.
  • install_replica_ds just calls dsinstance.check_ports() but the check_ports() function doesn't raise an exception in case the ports are in use.

Metadata Update from @fbarreto:
- Issue priority set to: normal
- Issue set to the milestone: FreeIPA 4.7

6 years ago

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.7.1 (was: FreeIPA 4.7)

5 years ago

FreeIPA 4.7 has been released, moving to FreeIPA 4.7.1 milestone

Metadata Update from @rcritten:
- Issue set to the milestone: FreeIPA 4.7.2 (was: FreeIPA 4.7.1)

5 years ago

FreeIPA 4.7.1 has been released, moving to FreeIPA 4.7.2 milestone

Login to comment on this ticket.

Metadata