Create vagrant scripts to install a working Mozillians instance

VERIFIED FIXED

Status

Participation Infrastructure
Phonebook
P1
normal
VERIFIED FIXED
7 years ago
6 years ago

People

(Reporter: davedash, Assigned: ozten)

Tracking

Details

(Whiteboard: [qa-])

Per our conversation, we want somehting so devs don't have to install openLDAP on their machines, but they can run it virutally in a VirtualBox vm using the magic of vagrant and puppet.

To test this, I and any other developers that work on Mozillians will dogfood this script to work on Mozillians.
For what it's worth, I've started playing with a playdoh project using Vagrant and Puppet here:

https://github.com/lmorchard/badger2/blob/master/Vagrantfile
https://github.com/lmorchard/badger2/blob/master/puppet/manifests/dev.pp

It's still in rough shape after about an hour of tinkering. But, it could help point the way.
(Assignee)

Comment 3

7 years ago
If this is done EOD 6/30 then I can add the LDAP pieces by EOD 7/1.
I'll see if I can't throw this vagrant / puppet voodoo into a fork of playdoh. That should make it not too hard to cherrypick into another playdoh project

https://github.com/lmorchard/playdoh
(Assignee)

Comment 5

7 years ago
I've got a first cut of this based on @lorchard's work.

I've compiled Berkeley DB, OpenSSL, Cyrus SASL, and OpenLDAP.

I'm debugging 1 issues, so keeping bug open.
Assignee: tofumatt → ozten.bugs
(Assignee)

Comment 6

7 years ago
I've found that slapd will deadlock. Not sure why. I tried flushing to disk and changing BDB checkpoint settings.

I'm setting up an Ubuntu 10.04 vm and it doesn't exhibit the deadlock. I'll probably switch to Ubuntu.
(In reply to comment #6)
> I've found that slapd will deadlock. Not sure why. I tried flushing to disk
> and changing BDB checkpoint settings.
> 
> I'm setting up an Ubuntu 10.04 vm and it doesn't exhibit the deadlock. I'll
> probably switch to Ubuntu.

Ugh, hopefully that doesn't happen in production, or at least we have solutions for it there.
(Assignee)

Comment 8

7 years ago
See https://github.com/mozilla/mozillians/blob/base/INSTALL for steps to run mozillians.org.

I've switched to Ubuntu for now. Here is how the puppet configs changed.
https://github.com/mozilla/mozillians/commit/e008b0b3f4ab58823595e982cca28e29c70627bc

Note: I've not done 100% of the compatibility work, to be able to fold this back into playdoh, due to time constraints.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Assignee)

Comment 9

7 years ago
If you get
[default] Could not run: Could not find file dev-vagrant.pp
or another error, try try again.

vagrant halt && vagrant up

Is a lightweight retry.
(In reply to comment #9)
> vagrant halt && vagrant up
> 
> Is a lightweight retry.

Even better is this, which just reruns Puppet on a live VM:

vagrant provision

(In reply to comment #8)
> I've switched to Ubuntu for now. Here is how the puppet configs changed.
...
> Note: I've not done 100% of the compatibility work, to be able to fold this
> back into playdoh, due to time constraints.

Kudos on getting Ubuntu forks in there - that looked painful :/

Updated

7 years ago
Whiteboard: [qa-]
Closing as qa-
Status: RESOLVED → VERIFIED

Updated

6 years ago
Component: mozillians.org → Phonebook
Product: Websites → Community Tools
QA Contact: mozillians-org → phonebook
Target Milestone: 1.0 → ---
Version: unspecified → other
You need to log in before you can comment on or make changes to this bug.