Closed
Bug 1097356
Opened 10 years ago
Closed 9 years ago
Deploy metric-collective with puppet
Categories
(Infrastructure & Operations :: RelOps: Puppet, task)
Infrastructure & Operations
RelOps: Puppet
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dividehex)
Details
(Whiteboard: [windows])
Attachments
(2 files, 1 obsolete file)
3.71 KB,
patch
|
dustin
:
review+
dividehex
:
checked-in+
|
Details | Diff | Splinter Review |
374 bytes,
patch
|
markco
:
review+
dividehex
:
checked-in+
|
Details | Diff | Splinter Review |
Jake tells me this is in a GPO now, but it's not in puppet. So, port the GPO to puppet.
Reporter | ||
Comment 1•10 years ago
|
||
https://github.com/dividehex/metric-collective
Summary: Deploy metrics-collective with puppet → Deploy metric-collective with puppet
Updated•10 years ago
|
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/4109]
Reporter | ||
Updated•10 years ago
|
Assignee: dustin → relops
Comment 2•9 years ago
|
||
markco, do you know if this is already taken care of? If not, dividehex, is it easy to do?
Assignee: relops → jwatkins
Flags: needinfo?(mcornmesser)
Updated•9 years ago
|
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/4109] → [windows]
Assignee | ||
Comment 4•9 years ago
|
||
Q had a good suggestion of packaging metcollective up as an exe to eliminate the problem of psutil and pywin32 being dependencies. He also said there is a wrapper script to handle registering as a service.
Assignee | ||
Comment 5•9 years ago
|
||
The options for bundling metcollect up into an exe came down to py2exe and pyinstaller. I really wanted to get pyinstaller to work but it just wasn't going to happen. It compiled nicely and even installed as a windows service properly but it just wouldn't start the service. py2exe on the other hand worked although the setup.py must be configured so py2exe can properly handle the pywin32 service utility code. A couple gotchas I ran into included __file__ being different between compiled vs non-compiled. sys.argv[0] provided a replacement without needing to detect which state it was run from. Also, required some dll exclusions to properly compile. I also updated the metric collective code base to handle the latest psutil (3.0.1). The exe under /data/repos/EXEs was compiled with: psutil-3.0.1.win32, pywin32-219.win32-py2.7, python-2.7.10, py2exe-0.6.9.win32-py2.7 and was built against mettric collective commit 2f05b79690c2c0fa1dc839cca5ad8b4d8179214b Instructions for rebuilding the bundled exe are in the README.md
Assignee | ||
Comment 6•9 years ago
|
||
This patch handles installing the bundled metcollect.exe and registers it as a service. It also set the graphite host using the same config parameters used by collectd. The service registration exec is fairly idempotent and will update current windows hosts running the gpo installed metcollect to point to the new version. This means it would be safe to disable/delete the current gpo and deploy this when the time comes. Also note, this is just the module and *NOT* being deployed by any toplevel manifests yet.
Attachment #8631924 -
Flags: review?(dustin)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8631924 [details] [diff] [review] bug1097356-1.patch Tested on 2008 ec2 instance and on a 2008 ix system
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8631924 [details] [diff] [review] bug1097356-1.patch Review of attachment 8631924 [details] [diff] [review]: ----------------------------------------------------------------- Is the process of building metcollect.exe in version control somewhere?
Attachment #8631924 -
Flags: review?(dustin) → review+
Assignee | ||
Comment 9•9 years ago
|
||
(In reply to Dustin J. Mitchell [:dustin] from comment #8) > Comment on attachment 8631924 [details] [diff] [review] > bug1097356-1.patch > > Review of attachment 8631924 [details] [diff] [review]: > ----------------------------------------------------------------- > > Is the process of building metcollect.exe in version control somewhere? Yes, see github README.md https://github.com/dividehex/metric-collective/
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8631924 [details] [diff] [review] bug1097356-1.patch remote: https://hg.mozilla.org/build/puppet/rev/f44c57514c19 remote: https://hg.mozilla.org/build/puppet/rev/b9c93fdeaec8
Attachment #8631924 -
Flags: checked-in+
Assignee | ||
Comment 11•9 years ago
|
||
simply enables metcollect module for windows
Attachment #8638164 -
Flags: review?(mcornmesser)
Updated•9 years ago
|
Attachment #8638164 -
Flags: review?(mcornmesser) → review+
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8638164 [details] [diff] [review] bug1097345-1.patch remote: https://hg.mozilla.org/build/puppet/rev/8488b7282499 remote: https://hg.mozilla.org/build/puppet/rev/a4c566b8b3fc
Attachment #8638164 -
Flags: checked-in+
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8638164 [details] [diff] [review] bug1097345-1.patch whoops! this was the wrong patch :-(
Attachment #8638164 -
Flags: checked-in+ → checked-in-
Assignee | ||
Comment 14•9 years ago
|
||
This is the correct patch and has already been checked in
Attachment #8638164 -
Attachment is obsolete: true
Attachment #8638202 -
Flags: review?(mcornmesser)
Attachment #8638202 -
Flags: checked-in+
Updated•9 years ago
|
Attachment #8638202 -
Flags: review?(mcornmesser) → review+
Assignee | ||
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•