Page MenuHomePhabricator

Import some Analytics git puppet submodules to operations/puppet
Closed, ResolvedPublic8 Estimated Story Points

Description

The following submodules are good candidates to be imported in operations/puppet:

[submodule "modules/zookeeper"]
	path = modules/zookeeper
	url = https://gerrit.wikimedia.org/r/operations/puppet/zookeeper
[submodule "modules/jmxtrans"]
	path = modules/jmxtrans
	url = https://gerrit.wikimedia.org/r/operations/puppet/jmxtrans
[submodule "modules/varnishkafka"]
	path = modules/varnishkafka
	url = https://gerrit.wikimedia.org/r/operations/puppet/varnishkafka
[submodule "modules/kafkatee"]
	path = modules/kafkatee
	url = https://gerrit.wikimedia.org/r/operations/puppet/kafkatee

Given the few contributions during these years it would make sense to import them into operations/puppet in order to ease their maintenance. It also happened in the past that git submodule sha updates in operations/puppet were rolled-out/reverted accidentally by people making unrelated changes to the operations/puppet repo, risking outages that could have been avoided.

Event Timeline

All for jmxtrans, varnishkafka, and kafkatee. Might want to keep zookeeper as a submodule. Just because there aren't many contributions, doesn't mean people don't use it :)

All for jmxtrans, varnishkafka, and kafkatee. Might want to keep zookeeper as a submodule. Just because there aren't many contributions, doesn't mean people don't use it :)

Sure, but at some point we'll need to strive a balance between maintainability and submodules usage :)

Half of the watchers are Wikimedia-related people, and 4 total forks :)

In my opinion having everything in ops/puppet is better, but if you feel strongly about a couple of modules we can skip them. As stated multiple times I support 100% the idea of sharing with others our work in a more modular way, but at the same time we also need to think about maintainability and convention (we are basically the only ones doing modules in ops). Having a module in operations/puppet doesn't mean that it will not be re-usable/sharable to others :)

Anyhow, let's do kafkatee/varnishkafka/jmxtrans for the moment. Would it be ok?

Anyhow, let's do kafkatee/varnishkafka/jmxtrans for the moment. Would it be ok?

Ya, let's do these.

Half of the watchers are Wikimedia-related people, and 4 total forks :)

Yeah, but these are only people that have actually clicked the buttons. It doesn't show clones or downloads. The fact that we've actually gotten contributrions for cdh and zookeeper make me inclined to keep them as submodules.

we are basically the only ones doing modules in ops

nginx? :p

Having a module in operations/puppet doesn't mean that it will not be re-usable/sharable to others :)

It does kinda. No one is going to find or go into a subdirectory and pull out code, especially not if that code links to/uses other ops/puppet modules. Keeping them as a separate repository kinda forces us to code them in such a way that they are independent from other ops/puppet modules.

Anyhow, let's do kafkatee/varnishkafka/jmxtrans for the moment. Would it be ok?

Ya, let's do these.

I'll take this as a win and leave the other ones as submodules, I know that I am not going to convince you :D

MoritzMuehlenhoff awarded a token.
Nuria lowered the priority of this task from Medium to Low.Apr 5 2018, 5:32 PM
Nuria moved this task from Incoming to Operational Excellence on the Analytics board.

Change 437467 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Move the varnishkafka submodule to operations/puppet

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

Change 437950 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Move the kafkatee submodule to operations/puppet

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

Change 437951 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Move the jmxtrans submodule to operations/puppet

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

Ready to merge the code reviews for varnishkafka, kafkatee and jmxtrans, but it seems from the past experience that these actions break the puppet masters (prod and labs ones). Last time that we merged the mariadb module in operations/puppet puppet-merge broke and it was necessary to perform manual actions.

I don't mind having to manually fix some puppetmasters, although it would be nice to do them all at once :) I'll try cherry-picking a few of these changes and see if I can get a sense of what's likely to break.

Change 439901 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Move the nginx submodule to operations/puppet

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

Change 439901 abandoned by Elukey:
Move the nginx submodule to operations/puppet

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

Change 440080 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Move the nginx submodule to operations/puppet

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

Change 441870 had a related patch set uploaded (by Elukey; owner: Elukey):
[operations/puppet@production] Move away jmxtrans/kafkatee's modules from environments/production

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

Change 441870 merged by Elukey:
[operations/puppet@production] Move away jmxtrans/kafkatee's modules from environments/production

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

Change 441879 had a related patch set uploaded (by Elukey; owner: Elukey):
[integration/config@master] Remove puppet submodules merged into operations/puppet

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

All modules imported into operations/puppet, the remaining thing to do is cleaning up (subtasks).

elukey set the point value for this task to 8.Jun 26 2018, 7:26 AM
elukey moved this task from In Code Review to Done on the Analytics-Kanban board.

Change 441879 abandoned by Elukey:
Remove puppet submodules merged into operations/puppet

Reason:
Yep! done as part of T198170

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

Change 437951 abandoned by Elukey:
Move the jmxtrans submodule to operations/puppet

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

Change 437950 abandoned by Elukey:
Move the kafkatee submodule to operations/puppet

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

Change 437467 abandoned by Elukey:
Move the varnishkafka submodule to operations/puppet

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

Change 440080 abandoned by Elukey:
Move the nginx submodule to operations/puppet

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