Closed Bug 1390341 Opened 8 years ago Closed 7 years ago

puppet node regex defs needs beginning of string (^) qualifier

Categories

(Infrastructure & Operations :: RelOps: Puppet, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dividehex, Assigned: dividehex)

Details

Attachments

(2 files)

While rolling out the new firewall puppet framework to signing servers, I noticed the /signing\d+\.srv\.releng\.(mdc1|scl3)\.mozilla\.com/ regex was picking up and matching to the mac-depsigning hosts in mdc1. Which means it is missing the real node def /mac-depsigning\d+\.srv\.releng\.(mdc1|scl3)\.mozilla\.com/ As :aki pointed out, this is also probably why we are getting puppet errors on the mac-depsigning hosts to begin with. We should be more expicit and use a carrot (^) to match only to the beginning of the fqdn string. And we might also want to do this to ALL the regex node defs.
Let's start with signing servers
Attachment #8897183 - Flags: review?(aki)
Attachment #8897183 - Flags: review?(aki) → review+
This patch goes a little out of scope but I felt like this was a good place to make a big sweeping change to moco-nodes.pp. The patch does the following: - adds MDC2 to select node defs that are ready to be kickstarted in MDC2 - adds regex ^ and $ markers to regex node defs (original scope of this bug) - removed various decommed node defs :aki, could you check this for any problems or even node defs that could also be removed? Thanks!
Attachment #8948760 - Flags: review?(dhouse)
Attachment #8948760 - Flags: feedback?(aki)
Attachment #8948760 - Flags: review?(dhouse) → review+
Comment on attachment 8948760 [details] [diff] [review] bug1390341-moco-node.patch I think this makes sense. This is the first I've heard of mdc2! Hoping to obsolete partner-repack-\d+ by end of Feb.
Attachment #8948760 - Flags: feedback?(aki) → feedback+
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: