ReleaseEngineering/Applications/SlaveAPI: Difference between revisions

→‎Deployment: full slaveapi deploy instructions
(→‎Deployment: full slaveapi deploy instructions)
Line 22: Line 22:


The manual restart will be done automatically once {{bug|924616}} is fixed.
The manual restart will be done automatically once {{bug|924616}} is fixed.
The full process looks like this:
# bump the package version like in http://git.mozilla.org/?p=build/slaveapi.git;a=commitdiff;h=60d25601e0783bbfb9d5959c4092693fdb026321
# note: package is versioned according to http://semver.org/
$ vim slaveapi/__init__.py
# get review, commit, push, then
$ python setup.py sdist
$ ls dist
slaveapi-1.0.19.tar.gz
$ scp slaveapi-1.0.19.tar.gz root@releng-puppet2.srv.releng.scl3.mozilla.com:
$ ssh root@releng-puppet2.srv.releng.scl3.mozilla.com
$ mv -i slaveapi-1.0.19.tar.gz /data/python/packages/
$ puppetmaster-fixperms
# you should see the new package at http://puppetagain.pub.build.mozilla.org/data/python/packages/
# update slaveapi version in [puppet]/modules/slaveapi/manifests/instance.pp
$ vim modules/slaveapi/manifests/instance.pp
# get review, commit, push
# merge to puppet 'production' branch and push
# need to restart the production daemon
$ ssh <username>@slaveapi1.build.mozilla.org
$ sudo su - cltbld
$ cd /builds/slaveapi/prod
# make sure the local package version has been upgraded by puppet before restarting the daemon
$ source bin/activate
$ pip freeze | grep slaveapi
slaveapi==1.0.19
$ slaveapi-server.py stop slaveapi.ini && slaveapi-server.py start slaveapi.ini


= API Documentation =
= API Documentation =
The details of the API are documented alongside the code, and an HTML version [http://mozilla-slaveapi.readthedocs.org/en/latest/ is available at mozilla-slaveapi.readthedocs.org].
The details of the API are documented alongside the code, and an HTML version [http://mozilla-slaveapi.readthedocs.org/en/latest/ is available at mozilla-slaveapi.readthedocs.org].
Confirmed users
1,018

edits