Page MenuHomePhabricator

Import Elasticsearch 1.6.0 deb into wmf apt
Closed, ResolvedPublic

Description

Please import Elasticsearch 1.6.0 into WMF's apt repository as a step in the direction of us upgrading the production cluster to that version. It was just released yesterday but has a number of features that we're excited about. If all goes super well we'd like to upgrade beta this week and let beta run that version for a week or two before doing production.

  • Stakeholders: Discovery-ARCHIVED, SRE, Security
  • Benefit: Helps us upgrade the production cluster to the latest version of Elasticsearch, allowing much faster restarts after issues and letting us disable dynamic scripting
  • Estimate: To be added

Event Timeline

Manybubbles raised the priority of this task from to Medium.
Manybubbles updated the task description. (Show Details)
Manybubbles subscribed.

@Joe, @coren, etc. Is this something an opsen can grab this week? I believe it amounts to a very small amount of work.

ksmith subscribed.

Assigning to Nik temporarily. As soon as he finds an owner in ops, this can be assigned to that person, and the Discovery sprint project can be removed.

@Manybubbles, we can import 1.6 no problem, how long do you think it'll take to validate it? I'm asking because we'll be replacing 1.3 with 1.6 in the repo, thus e.g. new/reimaged machines will get 1.6 not 1.3. How did the beta testing go?

@Manybubbles, we can import 1.6 no problem, how long do you think it'll take to validate it? I'm asking because we'll be replacing 1.3 with 1.6 in the repo, thus e.g. new/reimaged machines will get 1.6 not 1.3. How did the beta testing go?

Development testing went great. I haven't dropped it into beta yet but could do it with curl.

I suspect it'd be better to have both in the repository with puppet forcing the right version, but that is more work than just importing both.

@Manybubbles, we can import 1.6 no problem, how long do you think it'll take to validate it? I'm asking because we'll be replacing 1.3 with 1.6 in the repo, thus e.g. new/reimaged machines will get 1.6 not 1.3. How did the beta testing go?

Development testing went great. I haven't dropped it into beta yet but could do it with curl.

I suspect it'd be better to have both in the repository with puppet forcing the right version, but that is more work than just importing both.

the apt repository manager (reprepro) we use doesn't support multiple versions in the same "distribution" so I think pulling it in beta for now would be easier, I guess a week or so of beta testing?

@Manybubbles, we can import 1.6 no problem, how long do you think it'll take to validate it? I'm asking because we'll be replacing 1.3 with 1.6 in the repo, thus e.g. new/reimaged machines will get 1.6 not 1.3. How did the beta testing go?

Development testing went great. I haven't dropped it into beta yet but could do it with curl.

I suspect it'd be better to have both in the repository with puppet forcing the right version, but that is more work than just importing both.

the apt repository manager (reprepro) we use doesn't support multiple versions in the same "distribution" so I think pulling it in beta for now would be easier, I guess a week or so of beta testing?

We've been in beta since Monday and everything is a-ok!

When you are ready to import we will schedule the prod upgrade.

Change 223251 had a related patch set uploaded (by Filippo Giunchedi):
install_server: switch to elasticsearch 1.6

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

Change 223251 merged by Filippo Giunchedi:
install_server: switch to elasticsearch 1.6

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

you should be all set!

root@carbon:~# reprepro --noskipold checkupdate
aptmethod 'http' seems to have a obsoleted redirect handling which causes
reprepro to request files multiple times. Work-around activated, but better
only use it for targets not redirecting (or upgrade to apt >= 0.9.4 if
that is the http method from apt)!
Calculating packages to get...
Updates needed for 'jessie-wikimedia|thirdparty|source':
Updates needed for 'jessie-wikimedia|thirdparty|amd64':
Updates needed for 'trusty-wikimedia|thirdparty|source':
Updates needed for 'trusty-wikimedia|thirdparty|amd64':
'elasticsearch': '1.3.9' will be upgraded to '1.6.0' (from 'elasticsearch'):
 files needed: pool/thirdparty/e/elasticsearch/elasticsearch_1.6.0_all.deb
Updates needed for 'precise-wikimedia|thirdparty|source':
Updates needed for 'precise-wikimedia|thirdparty|amd64':
'elasticsearch': '1.3.9' will be upgraded to '1.6.0' (from 'elasticsearch'):
 files needed: pool/thirdparty/e/elasticsearch/elasticsearch_1.6.0_all.deb
Updates needed for 'lucid-wikimedia|thirdparty|source':
Updates needed for 'lucid-wikimedia|thirdparty|amd64':
root@carbon:~# reprepro --noskipold --restrict elasticsearch update
aptmethod 'http' seems to have a obsoleted redirect handling which causes
reprepro to request files multiple times. Work-around activated, but better
only use it for targets not redirecting (or upgrade to apt >= 0.9.4 if
that is the http method from apt)!
Calculating packages to get...
Getting packages...
Installing (and possibly deleting) packages...
Exporting indices...
Deleting files no longer referenced...
root@carbon:~# reprepro list trusty-wikimedia elasticsearch
trusty-wikimedia|thirdparty|amd64: elasticsearch 1.6.0
trusty-wikimedia|thirdparty|i386: elasticsearch 1.3.6
root@carbon:~# reprepro --architecture i386 remove trusty-wikimedia elasticsearch
Exporting indices...
root@carbon:~# reprepro list trusty-wikimedia elasticsearch
trusty-wikimedia|thirdparty|amd64: elasticsearch 1.6.0
root@carbon:~#