Page MenuHomePhabricator

MediaWiki-Vagrant install party
Closed, ResolvedPublic

Description

Introduction to using MediaWiki-Vagrant to manage a development environment for hacking on MediaWiki. We'll do a really quick high level look at what Vagrant is and how MediaWiki-Vagrant uses and extends it. Then we'll get hands on by installing MediaWiki-Vagrant on everyone's laptops.

Session accomplishments

Event Timeline

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

I don't think we have any USB keys this time, so hopefully there will be good wifi at the venue.

It would be great to have @dduvall's help with this session.

The wiki page says that @Yurik, @KartikMistry, @Isarra, @Mglaser and @MZMcBride were at least preliminarily interested in attending. Hopefully we can round up a few more folks who either haven't tried to get MW-Vagrant setup yet or have hit some roadblock and could use a bit of help.

I'm definitely down to help. What did you use the USB keys for last time, base images?

I'm definitely down to help. What did you use the USB keys for last time, base images?

Yeah, it was installs of vagrant and virtual box for various distros (etc), so people didn't have to overload the hackathon wifi to grab them all.. I've still got one somewhere, so could run tree or something if you wanted

Yeah, it was installs of vagrant and virtual box for various distros (etc), so people didn't have to overload the hackathon wifi to grab them all.. I've still got one somewhere, so could run tree or something if you wanted

Ah, makes sense. I have a spare 802.11n router with USB that we could host the files on—if we can gather up four ethernet cables it can even be a gigabit Vagrant hookah. :)

I'm definitely down to help. What did you use the USB keys for last time, base images?

I have an instance in labs that used to know how to build the USB iso image. I can see if it still works. I haven't poked it since Wikimania.

@bd808, if you can get that iso built, I can try out a setup with the standalone fileserver and run through the README (and write a Windows version; see T71208).

Also, how many participants do you anticipate and would it make more sense to just try and procure some cheap USB sticks? (Maybe @greg can help make it rain.)

@bd808, if you can get that iso built, I can try out a setup with the standalone fileserver and run through the README (and write a Windows version; see T71208).

I'll poke at it this weekend. I should be pretty easy to get running again. I can probably update a few of the packages it uses too. I think I have another open task besides the one you linked to add git installer for Windows and OSX. I have some updated notes for the README at https://www.mediawiki.org/wiki/User:BDavis_%28WMF%29/Projects/Hackathon_Vagrant_install too that need to be committed.

Also, how many participants do you anticipate and would it make more sense to just try and procure some cheap USB sticks? (Maybe @greg can help make it rain.)

I don't remember if @ori still has some that we used at the Zürich hackathon or not. Even if we have a bunch of people we can get by with a smallish number of sticks because the easiest thing to do it copy all the files off the stick and then hand it to the next person. I think I have two left from that batch that was made for Wikimania. The most annoying part is actually populating the sicks from the iso image. :)

OIT has about 8 usb drives available (8 gig versions). That should be enough, yes? With the 2 @bd808 and possibly 2 @ori has? If not, I bet we can get some if we ask (OIT) nicely soon.

Should I reserve those 8 from OIT and hand to Dan?

@greg, yes please. I also have a drive on my keychain with about 7.6G available on one of the partitions.

I've got a couple of these sticks too...

You can buy usb duplicators, and/or do it via a usb hub from memory...

Please confirm whether you want to run this session at MediaWiki-Developer-Summit-2015 by placing this task in the most appropriate column at the workboard and scheduling it at https://www.mediawiki.org/wiki/MediaWiki_Developer_Summit_2015#Schedule

In T86206#975509, @Qgil wrote:

Please confirm whether you want to run this session at MediaWiki-Developer-Summit-2015 by placing this task in the most appropriate column at the workboard and scheduling it at https://www.mediawiki.org/wiki/MediaWiki_Developer_Summit_2015#Schedule

Blerg. It was on the schedule https://www.mediawiki.org/w/index.php?title=MediaWiki_Developer_Summit_2015&oldid=1347591 but then apparently removed.

In T86206#975509, @Qgil wrote:

Please confirm whether you want to run this session at MediaWiki-Developer-Summit-2015 by placing this task in the most appropriate column at the workboard and scheduling it at https://www.mediawiki.org/wiki/MediaWiki_Developer_Summit_2015#Schedule

I re-added it to the schedule at the same time slot as before (2015-01-26T11:15PST) in a 50 seat classroom. I would gladly switch with T85280: Using EventLogging and Dashboards which is in the same timeslot in the smaller classroom space.

I have 6 USB sticks (7 counting my own) with fresh git bundles ready to go for tomorrow.

I've still got a few extra sticks that can be reused if necessary

We had ~6 folks show up to get help.

Most were stuck on a new problem caused by the latest hhvm package. It is creating an /etc/hhvm/php.ini/ directory which contains a php.ini file rather than the expected /etc/hhvm/php.ini file. This looks to me to be a bug in the Wikimedia HHVM package. Maybe @Joe can look at this an see what's going on?

Most were stuck on a new problem caused by the latest hhvm package. It is creating an /etc/hhvm/php.ini/ directory which contains a php.ini file rather than the expected /etc/hhvm/php.ini file. This looks to me to be a bug in the Wikimedia HHVM package. Maybe @Joe can look at this an see what's going on?

Confirmed via irc conversation that this is a known bug in the package. A fixed version will be pushed to our apt repo soon. The short term fix is

vagrant ssh; sudo rm -rf /etc/hhvm/php.ini; exit; vagrant provision

This will remove the problematic directory and then run puppet again to provision the correct file.

Please update the description with the achievements of this session. Thank you in advance.

Most were stuck on a new problem caused by the latest hhvm package. It is creating an /etc/hhvm/php.ini/ directory which contains a php.ini file rather than the expected /etc/hhvm/php.ini file. This looks to me to be a bug in the Wikimedia HHVM package. Maybe @Joe can look at this an see what's going on?

Confirmed via irc conversation that this is a known bug in the package. A fixed version will be pushed to our apt repo soon. The short term fix is good for now I think.

vagrant ssh; sudo rm -rf /etc/hhvm/php.ini; exit; vagrant provision

This will remove the problematic directory and then run puppet again to provision the correct file.

bd808 set Security to None.

See T87478 for the php.ini bug.

Overall, I liked how this went down. There weren't very many people that had to rely on the USB stick, but those that did had a fairly smooth experience (other than running into the reported bug).