ReleaseEngineering/How To/Resolve AWS names

From MozillaWiki
Jump to: navigation, search


Ambox outdated.png THIS PAGE MAY BE OUTDATED
This article is in parts, or in its entirety, outdated. Hence, the information presented on this page may be incorrect, and should be treated with due caution until this flag has been lifted. Help by editing the article, or discuss its contents on the talk page.


  • login to cruncher (using LDAP credentials):
ssh cruncher.build.mozilla.org 
  • switch to buildduty
sudo su - buildduty
  • set up environment
source ~/aws/aws-ve/bin/activate
cd ~/aws/cloud-tools/aws
  • query AWS database. last parameter is a regexp, use "." (dot) to get all slaves
python ec22ip.py -k secrets/aws-secrets.json -r us-west-1 bld-linux64-ec2-076 '(bld|try)-linux64-ec2-03.*'
  • You may want to use different regions (us-east-1, us-west-1 or us-west-2)
  1. This hasn't been updated since Nov 2013 because the parameters in ec22ip.py no longer include -k

See also hourly updated /etc/hosts style dump: http://cruncher.build.mozilla.org/~buildduty/hosts

Find IP of any spot instance

(updated on 03-22-2015)

HOST=foo
ssh buildduty@aws-manager1.build.mozilla.org "/builds/aws_manager/bin/python /builds/aws_manager/cloud-tools/scripts/aws_manage_instances.py status $HOST" | grep "\(IP\|Found\)"