Closed
Bug 1206585
Opened 10 years ago
Closed 10 years ago
Loan nthomas an av-linux64 instance for staging
Categories
(Infrastructure & Operations Graveyard :: CIDuty, task)
Infrastructure & Operations Graveyard
CIDuty
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nthomas, Assigned: nthomas)
References
Details
No description provided.
Assignee | ||
Comment 1•10 years ago
|
||
Based on https://wiki.mozilla.org/ReleaseEngineering/How_To/Loan_a_Slave#Build_machines and bug 1145774 comment #37:
arch=64
bug=1206585
user=nthomas
email="$user@mozilla.com"
slavetype=dev-av-linux64-ec2
host=$slavetype-$user
ip=`python cloud-tools/scripts/free_ips.py -c cloud-tools/configs/dev-linux$arch -r us-east-1 -n1`
# double-check that the IP address is not in use by some other machine
host $ip
# create a DNS entry
# use full LDAP e.g. user@mozilla.com
invtool A create --ip $ip --fqdn $host.dev.releng.use1.mozilla.com --private --description "bug $bug: loaner for $user"
# create a DNS reverse-mapping (required for puppet certs to work properly)
invtool PTR create --ip $ip --target $host.dev.releng.use1.mozilla.com --private --description "bug $bug: loaner for $user"
# create a CNAME as well (for ease of lookup)
invtool CNAME create --fqdn $host.build.mozilla.org --target $host.dev.releng.use1.mozilla.com --private --description "Releng convention"
# wait for DNS changes to be SVN up'd onto each DNS server
i=1
while ! host $host.build.mozilla.org; do
sleep 1m
echo "Slept ${i} minutes"
let i++
done
echo "DNS updated"
# below may take awhile to complete, so feel free to tail the
# per-host logs under buildduty@aws-manager1:/builds/aws_manager/ or /root/puppetize.log on the new
# instance (connect using the aws-releng key)
/builds/aws_manager/bin/python /builds/aws_manager/cloud-tools/scripts/aws_create_instance.py \
-c /tmp/dev-av-linux64 -r us-east-1 -s aws-releng \
-k /builds/aws_manager/secrets/aws-secrets.json --ssh-key /home/buildduty/.ssh/aws-ssh-key \
-i /builds/aws_manager/cloud-tools/instance_data/us-east-1.instance_data_dev.json --ignore-subnet-check $host
where /tmp/dev-av-linux64 is cloud-tools/configs/dev-linux64 plus this diff:
--- dev-linux64 2015-02-19 10:26:07.000000000 +1300
+++ dev-av-linux64 2015-09-21 17:03:32.000000000 +1200
@@ -1,5 +1,5 @@
{
- "hostname": "dev-linux64-ec2-%03d",
+ "hostname": "dev-av-linux64-ec2-%03d",
"us-east-1": {
"type": "dev-linux64",
"domain": "dev.releng.use1.mozilla.com",
dev-av-linux64-ec2-nthomas.dev.releng.use1.mozilla.com is the hostname.
Assignee | ||
Comment 2•10 years ago
|
||
Recreated with ami-5d027038, the latest golden av image in us-east-1, specified in /tmp/dev-av-linux64.
Assignee | ||
Comment 3•10 years ago
|
||
Needed to adjust /etc/slave-trustlevel to 'try' to avoid repeated puppet errors, then clean up ssh keys etc.
Assignee | ||
Comment 4•10 years ago
|
||
Terminated and cleaned up DNS records.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Loan Requests → Buildduty
Product: Release Engineering → Infrastructure & Operations
Updated•6 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•