Page MenuHomePhabricator

Cleanup Wikimetrics puppet module so it can run puppet continuously without own puppetmaster {dove} [21 pts]
Closed, ResolvedPublic

Description

Currently the puppet module is not idempotent, and so puppet is usually disabled and so running puppet ocassionally will cause a huge batch of issues that the wikimetrics team does not want to deal with (running your own puppetmaster is going to cause a lot of pain unless you are actually playing with puppet). Solution is to make the puppet module properly idempotent, and then it can run without having to be its own puppetmaster.

The plan is to move this to use puppet for infrastructure and fabric to automate deployment.

Event Timeline

yuvipanda raised the priority of this task from to Needs Triage.
yuvipanda updated the task description. (Show Details)
yuvipanda subscribed.

The current module can be moved as is to vagrant, and a different one (modeled after ORES, probably?) can be used for prod / labs puppet.

madhuvishy renamed this task from Cleanup Wikimetrics puppet module so it can run puppet continuously without own puppetmaster to Cleanup Wikimetrics puppet module so it can run puppet continuously without own puppetmaster {dove}.Jul 18 2015, 7:07 PM
madhuvishy claimed this task.
madhuvishy triaged this task as Medium priority.
madhuvishy updated the task description. (Show Details)
madhuvishy set Security to None.
madhuvishy moved this task from Next Up to In Progress on the Analytics-Kanban board.
madhuvishy lowered the priority of this task from Medium to Low.Sep 17 2015, 5:20 PM
madhuvishy moved this task from Incoming to Prioritized on the Analytics-Backlog board.

Hello! After every time we change any fundamental settings (DNS, LDAP, puppetmaster, etc) it usually takes an hour or so of ops time to clean this up. After having said this verbally on IRC for many times, I am now officially declaring the wikimetrics and limn instances as unsupported. We'll add your keys to root, and then you're all on your own. Analytics has plenty of goodwill left for them in ops, just not for these 3 specific instances.

<3

Milimetric raised the priority of this task from Low to High.Dec 14 2015, 6:40 PM

Hello! After every time we change any fundamental settings (DNS, LDAP, puppetmaster, etc) it usually takes an hour or so of ops time to clean this up. After having said this verbally on IRC for many times, I am now officially declaring the wikimetrics and limn instances as unsupported. We'll add your keys to root, and then you're all on your own. Analytics has plenty of goodwill left for them in ops, just not for these 3 specific instances.

<3

Thanks, Yuvi. Should've done it a while ago, I think, sorry I didn't say so sooner.

Milimetric renamed this task from Cleanup Wikimetrics puppet module so it can run puppet continuously without own puppetmaster {dove} to Cleanup Wikimetrics puppet module so it can run puppet continuously without own puppetmaster {dove} [? pts].Dec 17 2015, 6:02 PM
Milimetric edited projects, added Analytics-Kanban; removed Analytics-Backlog.

The goal of this task is to do enough changes so we can deploy wikimetrics with ease, rather than refactor whole wikimetrics setup.

Things to do:

Move alembic and pip install, db creation, any server initialization, and config to fabric deployment

Infrastructure setup is done via puppet

How to deal with database passwords and other private config stuff (OAuth keys, etc)? move to /data/project
(so you can only access them if you have permits to machine)

Using Virtualenv for pip installs - make sure it works with celery-redis (celery and redis are fine separately)

Create a gerrit repo for wikimetrics-deploy

Testing on instance on different project, move dns proxy when done (use backup to move data)

Nuria renamed this task from Cleanup Wikimetrics puppet module so it can run puppet continuously without own puppetmaster {dove} [? pts] to Cleanup Wikimetrics puppet module so it can run puppet continuously without own puppetmaster {dove} [21 pts].Dec 22 2015, 6:32 PM

Change 260687 had a related patch set uploaded (by Madhuvishy):
wikimetrics: Puppet module for wikimetrics

https://gerrit.wikimedia.org/r/260687

Change 260687 merged by Yuvipanda:
wikimetrics: Puppet module for wikimetrics

https://gerrit.wikimedia.org/r/260687