This is a simple tool to help you determine whether all your Wikimedia Labs instances are ready for the datacenter migration from pmtpa (Tampa) to eqiad (Ashburn). Currently there are four checks:
- Check if you are running a self hosted puppet master
- Check if your last puppet run is recent, less than 30 days old
- Check if you are using shared project space ie /data/projects/
- Check if you are using shared storage for $HOME
sudo python setup.py install
this will install all the dependencies and you should be good to go.
The command to run the script is easy:
cd labs-migration-assistant
fab test --set wiki_username=YOUR_WIKI_USERNAME
# use your username for Wikitech
Development of this script was done using Python 2.7.5 on OSX 10.9. I expect that this would work fine on Python 2.5 and 2.6 as well and I do not foresee problems with Linux either. But....bug reports are always welcome and pull requests even more!
Use a recent version of pip (1.2 or higher)
Sometimes a lab instance might be totally unresponsive and SSH will not time-out. If that happens then abort the script using CTRL+Z or CTRL+C and then invoke the labs migration assistant as follows
fab test --set wiki_username=YOUR_WIKI_USERNAME --exclude_hosts=host1,host2
You should only use the name of the instance, not the FQDN.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes, including tests (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request, and mention @dvanliere.