CIDuty/How To/How To Loan BD: Difference between revisions
(Added how to loan OSX Yosemite r7 Test Build Bot machines.) |
m (Slight alteration on layout.) |
||
Line 19: | Line 19: | ||
Follow [https://secure.pub.build.mozilla.org/buildapi/running THIS LINK] and in the top-right search for '''10.10.5''' (version of OSX yosemite). At this point there should be 2 things: | Follow [https://secure.pub.build.mozilla.org/buildapi/running THIS LINK] and in the top-right search for '''10.10.5''' (version of OSX yosemite). At this point there should be 2 things: | ||
1) Nothing shows up. Make sure your search query is correct and if it is, it's safe to assume there are no tasks running on any of the selected servers, so feel free to pick whichever you find fancy. | 1) Nothing shows up. Make sure your search query is correct and if it is, it's safe to assume there are no tasks running on any of the selected servers, so feel free to pick whichever you find fancy. | ||
---- | |||
---- | |||
---- | |||
Now if you have the server '''[https://wiki.mozilla.org/Buildduty/How_To/How_To_Loan_BD#Connect_to_the_server SKIP TO Connect to the server section]'''. | Now if you have the server '''[https://wiki.mozilla.org/Buildduty/How_To/How_To_Loan_BD#Connect_to_the_server SKIP TO Connect to the server section]'''. | ||
---- | |||
---- | |||
---- | ---- | ||
2) There is stuff that shows up, which means we need to do some more investigation. If after the search you see anything (as shown below) click on all the '''Buildmaster''' column links: | 2) There is stuff that shows up, which means we need to do some more investigation. If after the search you see anything (as shown below) click on all the '''Buildmaster''' column links: | ||
Line 53: | Line 58: | ||
sudo reboot</nowiki> | sudo reboot</nowiki> | ||
'''IMPORTANT''': Make sure you '''waste no time with the reboot''' after running the 2 commands. Puppet might try to be sneaky and re-puppetize the machine. | '''IMPORTANT''': Make sure you '''waste no time with the reboot''' after running the 2 commands. Puppet might try to be sneaky and re-puppetize the machine. | ||
---- | |||
---- | |||
---- | |||
At this point you can skip to the next step, which is: [https://wiki.mozilla.org/Buildduty/How_To/How_To_Loan_BD#Setup.2C_test_and_grant_VNC_access Setup Test and Grant VNC access] | At this point you can skip to the next step, which is: [https://wiki.mozilla.org/Buildduty/How_To/How_To_Loan_BD#Setup.2C_test_and_grant_VNC_access Setup Test and Grant VNC access] | ||
---- | |||
---- | |||
---- | |||
= OSX Yosemite r7 - Test - TaskCluster = | = OSX Yosemite r7 - Test - TaskCluster = |
Revision as of 18:34, 9 April 2018
Introduction
Use this page if you want to loan a machine to a developer. This guide has been updated on 26 March 2018 and reflects the new changes/requirements on how you should approach the process.
The format will be as follows:
- Finding a server
- Cleaning it up
- Activating and Testing the VNC connection to the server
- Sending the credentials to the requester
Everything you need to do when loaning one of the two type of servers is on this page. You can safely click on the links when instructed too as you will be automatically scrolled to the next step (eg: Server Steps -> VNC -> Email).
OSX Yosemite r7 - Test - Build Bot
Find a server
Head to SlaveAlloc, following this link: https://secure.pub.build.mozilla.org/slavealloc/ui/#slaves and in the top-right search for yosemite-r7:
Look for a server that DOESN'T have a note to it, such as the note in the example below, keep in mind servers with "migration to taskcluster" are not good for loaning either:
Take note of the server number, then lets find out if there is a task running on the server. Follow THIS LINK and in the top-right search for 10.10.5 (version of OSX yosemite). At this point there should be 2 things: 1) Nothing shows up. Make sure your search query is correct and if it is, it's safe to assume there are no tasks running on any of the selected servers, so feel free to pick whichever you find fancy.
Now if you have the server SKIP TO Connect to the server section.
2) There is stuff that shows up, which means we need to do some more investigation. If after the search you see anything (as shown below) click on all the Buildmaster column links:
The link will lead you to the task-execution page which shows you what's happening on the slave. At this point (if there are more than 5 results) I would recommend you to open a text editor as we need to keep track of which server is running. You can extract the number from the textfield in the example below:
After you have a complete list of all the busy servers, see if there are servers that are free/idle. If not, come back again 30 minutes later and check again.
Connect to the server
Now that we have a server number, we need to SSH into it, you can do that by typing this into the terminal. Change the DLAP to your mozilla username and XXX to the server number which you want to loan:
ssh LDAP@t-yosemite-r7-XXXX.test.releng.scl3.mozilla.com
Now run the following to commands:
passwd root passwd cltbld And change the passwords to the ones offered by your team leader.
Cleaning up BuildBot and Puppet files
At this step we gonna run, again, 3 commands, to clean up some files from server. Like last time, run this commands one at a time.
rm -rf /var/lib/puppet/ssl/private_keys /Library/LaunchDaemons/com.mozilla.puppet.plist \ /Library/LaunchDaemons/org.mozilla.puppetize.plist ~cltbld/.bash_history \ ~root/.bash_history ~root/.sh_history /etc/kcpassword ~cltbld/.ssh \ /opt/runner /etc/taskcluster-worker.yml /usr/local/bin/taskcluster-worker \ /usr/local/bin/generic-worker/ \ /Library/LaunchDaemons/org.mozilla.pf.plist \ /Library/LaunchDaemons/org.mozilla.pflog.plist \ /Library/LaunchAgents/net.generic.worker.plist find /builds -maxdepth 1 -type f -print -delete sudo reboot
IMPORTANT: Make sure you waste no time with the reboot after running the 2 commands. Puppet might try to be sneaky and re-puppetize the machine.
At this point you can skip to the next step, which is: Setup Test and Grant VNC access
OSX Yosemite r7 - Test - TaskCluster
Find a server
TBA
Connect to the server
TBA
Terminate the TC Worker
TBA
Cleaning up TC files
TBA
Setup, test and grant VNC access
Activate VNC on the server
TBA
Test the VNC connection
TBA
Grant VNC access/rights to the requester
TBA
At this point all thats left if to send the credentials to the requester.