Deploy careers using Captain Shove

RESOLVED FIXED

Status

Infrastructure & Operations
WebOps: Other
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: mkelly, Assigned: uberj)

Tracking

Details

(Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1368] )

(Reporter)

Description

3 years ago
According to uberj, we're about ready to try adding a real site to be deploy via Captain Shove, and careers.mozilla.org is the site to do it on.

There's a few things that need to happen here:

- Add command procfile to careers.
- Install shove on the careers admin server.
- Configure shove for the dev, stage, and prod environments as three separate projects.
- Add entries to Captain to match those three projects.
- Test!

Will update shortly after a meeting to determine if any steps are missing from this.

Updated

3 years ago
Whiteboard: [kanban:https://kanbanize.com/ctrl_board/4/1368]
(Reporter)

Updated

3 years ago
Depends on: 1077659
(Reporter)

Updated

3 years ago
Assignee: server-ops-webops → juber

Comment 1

3 years ago
Commit pushed to master at https://github.com/mozilla/lumbergh

https://github.com/mozilla/lumbergh/commit/171145f6903f6529d2c98afeb5daf715f54f949a
Bug 1075126: Add procfile for Captain Shove deployment.
(Reporter)

Comment 2

3 years ago
Any news on when we can get to this?
Flags: needinfo?(juber)
(Assignee)

Updated

3 years ago
Depends on: 1104296
(Assignee)

Comment 3

3 years ago
Working on it. Need to get ports open for rabbit.
(Assignee)

Updated

3 years ago
Flags: needinfo?(juber)
(Assignee)

Comment 4

3 years ago
Looks like shove is not finding pika as being the version it wants.

genericadm ~ $ hostname
genericadm.private.phx1.mozilla.com
genericadm ~ $ python -c "import pika;print pika.__version__"
0.9.12
genericadm ~ $ tail /var/log/shove-supervisor.log 
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pika==0.9.13
Traceback (most recent call last):
  File "/usr/bin/shove", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2659, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pika==0.9.13

The easiest path forward is to recompile the shove package to accept a different version of pika.
(Reporter)

Comment 5

3 years ago
I've updated shove to be more lenient with version requirements: https://github.com/mozilla/shove/commit/2dc34585fcb48fea093b7e106c00c9daa98ebb0b
(Reporter)

Comment 6

3 years ago
uberj: Based on the changes and deploys we ran today, would you call this resolved? I think I would.
Flags: needinfo?(juber)
(Assignee)

Comment 7

3 years ago
We did it! Yay!
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Flags: needinfo?(juber)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.