ReleaseEngineering/How To/Setup Personal Development Master: Difference between revisions

Line 130: Line 130:


= Adding your master to slavealloc =
= Adding your master to slavealloc =
ssh -l root slavealloc.build.mozilla.org
* you will need to find out the host, password, and username for the slavealloc mysql url. If you don't know where our private things live, ask someone in releng.
su slavealloc
  # you will want to create a CSV similar to this one
cd ~
  # (where row 1 is column names and every subsequent row is your master you wish to add)
vim armenzg-master.csv
  # create a CSV similar to this one
  # make sure you specify 'staging-pers' for staging masters
  nickname,fqdn,http_port,pb_port,datacenter,pool
  nickname,fqdn,http_port,pb_port,datacenter,pool
  sm-armenzg-build,dev-master01.build.scl1.mozilla.com,8040,9040,scl1,staging-pers
  sm-armenzg-build,dev-master1.srv.releng.scl3.mozilla.com,8040,9040,scl3,staging-pers
  sm-armenzg-test,dev-master01.build.scl1.mozilla.com,8041,9041,scl1,staging-pers
  sm-armenzg-test,dev-master1.srv.releng.scl3.mozilla.com,8041,9041,scl1,staging-pers
* for latest info on csv file format see: [http://hg.mozilla.org/build/tools/file/tip/lib/python/slavealloc/scripts/dbimport.py dbimport.py].
# import your master into the DB
* use that csv file in steps here: [https://wiki.mozilla.org/index.php?title=ReleaseEngineering:Buildduty:Slave_Management#Adding_a_slave adding a master]
# look at history to see what the value of PASSWORD should be
# 10.2.70.105 == tm-b01-master01.mozilla.org
# or ask someone in RelEng for the buildslaves DB password
/tools/slavealloc/bin/slavealloc dbimport \
-D mysql://buildslaves:PASSWORD@10.22.70.59/buildslaves \
--master-data armenzg-master.csv
 
Note: for latest info on csv file format, or to add slaves, see [http://hg.mozilla.org/build/tools/file/tip/lib/python/slavealloc/scripts/dbimport.py dbimport.py] or [https://wiki.mozilla.org/index.php?title=ReleaseEngineering:Buildduty:Slave_Management#Adding_a_slave adding a slave].


= Modifying your old master in slavealloc =
= Modifying your old master in slavealloc =
Confirmed users
502

edits