Project

General

Profile

Bug #25350

fix collector_setup.sh to allow hyphens in the hostname and add unit tests

Added by Marco Mambelli 2 months ago. Updated 2 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
Start date:
12/24/2020
Due date:
% Done:

0%

Estimated time:
First Occurred:
Occurs In:
Stakeholders:
Duration:

Description

collector_setup.sh changes the strings for collector and CCB addresses to allow port ranges that can be set in the configuration (see [#7341], [#20909]).
There is a problem in the regular expression in the replace_range function that fails when there are hyphens in the hostname and a sinful string is used (shared port enabled).

A fix was suggested in PR38 https://github.com/glideinWMS/glideinwms/pull/38

To limit future problems I'm also revising the script and adding unit tests


Related issues

Related to GlideinWMS - Bug #25351: Possible bug if dash is a valid character in HTCondor sock namesNew12/24/2020

History

#1 Updated by Marco Mambelli 2 months ago

  • Related to Bug #25351: Possible bug if dash is a valid character in HTCondor sock names added

#2 Updated by Marco Mambelli 2 months ago

  • Status changed from New to Resolved

Merged PR
Added improvements in branch v36/25350
Merged to master.
Sent email to the condor mailing list asking if dash (-) is a valid character for sock names.

Also available in: Atom PDF