Page MenuHomePhabricator

Stop using global python setup.py install for eventlogging deploy
Closed, ResolvedPublic13 Estimated Story Points

Description

This will require a little bit of puppet refactoring.

Lots of research was done into using virtualenv/wheels vs deb packages. We will use deb packages for now.

Event Timeline

Ottomata created this task.Mar 30 2016, 5:46 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 30 2016, 5:46 PM

Change 280486 had a related patch set uploaded (by Ottomata):
No-op refactor of eventlogging module

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

Change 280497 had a related patch set uploaded (by Ottomata):
[WIP] Run eventlogging services out of deployed eventlogging source path

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

Change 280486 merged by Ottomata:
No-op refactor of eventlogging module

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

Ottomata moved this task from In Progress to In Code Review on the Analytics-Kanban board.
Ottomata moved this task from In Code Review to Ready to Deploy on the Analytics-Kanban board.
Ottomata updated the task description. (Show Details)Mar 31 2016, 3:29 PM
Ottomata set the point value for this task to 13.

Change 280497 merged by Ottomata:
Run eventlogging services out of deployed eventlogging source path

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

Ottomata renamed this task from Stop using global pip install for eventlogging deploy to Stop using global python setup.py install for eventlogging deploy.Mar 31 2016, 7:56 PM

Did the following! And it works!

eventloggingctl status
eventloggingctl stop

cd /srv/deployment/eventlogging/eventlogging
python setup.py install --record ~/eventlogging-installed-files.txt
cat ~/eventlogging-installed-files.txt | grep -vE 'kafka-tools|pygmentize|tabulate' | xargs rm -rfv

puppet agent -t
# eventlogging init scripts now launch out of /srv/deployment/eventlogging/eventlogging

eventloggingctl start
eventloggingctl status