Closed Bug 868974 Opened 13 years ago Closed 11 years ago

puppetagain: support master randomization within classes

Categories

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

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Unassigned)

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1284] )

Attachments

(1 file)

The idea is this: each agent determines which "class" it is in (based, initially, on location). It then creates its list of masters as follows: * all masters in the same class, in random order * all remaining masters, in random order without regard to class It uses the first master in its list as its "main" master. This will support the kind of randomization AWS needs - each AZ will be a "class". It will also support hosting multiple puppetmasters in scl3 when the time comes.
Attached patch bug868974.patchSplinter Review
This should allow proper randomization in AWS, and also allow us to expand scl3 to multiple masters when that becomes necessary. This is for the puppet320 repo.
Attachment #746037 - Flags: review?(rail)
Comment on attachment 746037 [details] [diff] [review] bug868974.patch dustin, I'm unable to apply this patch. Can you rebase it?
Comment on attachment 746037 [details] [diff] [review] bug868974.patch (In reply to Dustin J. Mitchell [:dustin] from comment #3) > Did you apply it to the puppet320 repo > (http://hg.mozilla.org/users/dmitchell_mozilla.com/puppet320/) Ah, no. The patch itself looks good to me.
Attachment #746037 - Flags: review?(rail) → review+
Attachment #746037 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
This shuffling does not appear to be stable :(
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
I must have been imagining things. It seems stable on all of the foopies.
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Not really. I need to dig into this more. My impression is that the ordering changes when you use an environment, but it may be even more than that. Needs a good hard look.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Component: Server Operations: RelEng → RelOps: Puppet
Product: mozilla.org → Infrastructure & Operations
QA Contact: arich → dustin
Severity: normal → enhancement
Assignee: dustin → relops
Severity: enhancement → normal
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/404]
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/404] → [kanban:engops:https://kanbanize.com/ctrl_board/6/411]
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/411]
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/502]
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/502] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1273] [kanban:engops:https://kanbanize.com/ctrl_board/6/502]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1273] [kanban:engops:https://kanbanize.com/ctrl_board/6/502] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1278] [kanban:engops:https://kanbanize.com/ctrl_board/6/502]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1278] [kanban:engops:https://kanbanize.com/ctrl_board/6/502] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1280] [kanban:engops:https://kanbanize.com/ctrl_board/6/502]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1280] [kanban:engops:https://kanbanize.com/ctrl_board/6/502] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1284] [kanban:engops:https://kanbanize.com/ctrl_board/6/502]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1284] [kanban:engops:https://kanbanize.com/ctrl_board/6/502] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1284]
From everything I can tell, this is some kind of puppet bug -- probably to do with environments. It doesn't cause any actual problems.
Status: REOPENED → RESOLVED
Closed: 13 years ago11 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: