Closed
Bug 892691
Opened 12 years ago
Closed 11 years ago
Add HD Panda chassis to android production pandas
Categories
(Infrastructure & Operations Graveyard :: CIDuty, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dividehex, Assigned: pmoore)
References
Details
Attachments
(8 files, 1 obsolete file)
|
1.09 KB,
patch
|
kmoir
:
review+
|
Details | Diff | Splinter Review |
|
2.26 KB,
patch
|
kmoir
:
review+
|
Details | Diff | Splinter Review |
|
2.31 KB,
text/plain
|
Details | |
|
1.90 KB,
text/plain
|
kmoir
:
review+
|
Details |
|
139 bytes,
text/plain
|
kmoir
:
review+
|
Details |
|
1.32 KB,
patch
|
kmoir
:
review+
|
Details | Diff | Splinter Review |
|
161.34 KB,
patch
|
Callek
:
review+
|
Details | Diff | Splinter Review |
|
3.91 KB,
patch
|
Callek
:
review+
|
Details | Diff | Splinter Review |
https://mana.mozilla.org/wiki/display/IT/HD+Panda+Chassis+System
The HD Panda Prototype Chassis is alive and kicking in SCL1. We would like to add the pandas within to the test pool. (no better proving ground than production imo)
I've run selftests and put the android image on all of them via mozpool.
The pandas are:
panda-{0887-0909}.p10.releng.scl1.mozilla.com
and the associated relay board is panda-relay-080.p10.releng.scl1.mozilla.com
Updated•12 years ago
|
Component: Release Engineering → Release Engineering: Platform Support
QA Contact: coop
Updated•12 years ago
|
Product: mozilla.org → Release Engineering
| Reporter | ||
Comment 1•12 years ago
|
||
This is on hold until after Moz Summit. Relops will be demoing the Chassis and Mozpool at the Santa Clara fair.
| Reporter | ||
Comment 2•12 years ago
|
||
I'm removing the HD Chassis for the mozsummit demo. All pandas in this chassis have been locked out in mozpool.
| Reporter | ||
Comment 3•12 years ago
|
||
HD Panda Chassis is back and racked in SCL1. (according to bug927068)
Comment 4•12 years ago
|
||
I talked to dividehex and these pandas are already in inventory and exist in mozpool
| Assignee | ||
Comment 5•12 years ago
|
||
Tested on releng-puppet2.srv.releng.scl3.mozilla.com (environment=pmoore).
Attachment #818480 -
Flags: review?(kmoir)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → pmoore
Updated•12 years ago
|
Attachment #818480 -
Flags: review?(kmoir) → review+
Updated•12 years ago
|
Attachment #818492 -
Flags: review?(kmoir) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
The attached SQL should import the new pandas (panda-0887 -> panda-0909) and buildbot-master89.srv.releng.scl3.mozilla.com into the production MySQL database, with pandas in a disabled (not enabled) state.
The slavealloc dbimport mechanism imports a CSV file, and converts it to SQL insert statements, denormalising the normalised fields using the following mapping:
http://mxr.mozilla.org/build/source/tools/lib/python/slavealloc/scripts/dbimport.py?mark=123-137#123
This shows that the non-specified slave fields (locked_masterid, current_masterid, notes, custom_tplid) are not included in the generated insert statements. A look at the live database schema shows that NULLs are allowed for the non-specified fields. Therefore the attached SQL import statements are equivalent to using the dbimport mechanism, since they set these unspecified fields to NULL also.
I'm including this attachment for informational purposes, I will now also attach a CSV file which can be used by slavealloc dbimport tool. However this attachment may be useful for validating the data in the database after the dbimport has run.
Please note the pandas are *not* associated to the new buildbot-master89 at this point (i.e. "locked master" and "current master" are not set on the new pandas).
| Assignee | ||
Comment 8•12 years ago
|
||
Hi Kim,
Here is the data I would like to import into *production* slavealloc database. Can you review my change?
I will import it using pmoore@relengwebadm.private.scl3.mozilla.com by running /data/releng/www/slavealloc/slavealloc dbimport -D <db url including password> --slave-data <this file>
I believe, since I don't specify --enable on the command line, they will be initially disabled.
Will also attach a patch now for adding the new master.
Many thanks!
Pete
Attachment #821762 -
Flags: review?(kmoir)
| Assignee | ||
Comment 9•12 years ago
|
||
This is the entry for adding buildbot-master89 to the *production* slavealloc database.
I will import it using pmoore@relengwebadm.private.scl3.mozilla.com by running /data/releng/www/slavealloc/slavealloc dbimport -D <db url including password> --master-data <this file>
Again, without the --enabled, the master should be initially disabled.
Please note I can't set the "notes" field with the initial dbimport import. I can do this afterwards in slavealloc (I would add this bug number into the notes field).
Thanks for your review Kim!
Pete
Attachment #821772 -
Flags: review?(kmoir)
Updated•12 years ago
|
Attachment #821772 -
Flags: review?(kmoir) → review+
Comment 10•12 years ago
|
||
Comment on attachment 821762 [details]
bug892691_data-for-slavealloc-dbimport-tool.csv
Looks good. As an aside, I noticed that pandas don't have cnames yet, it would be good to open a bug with IT to set these up.
https://wiki.mozilla.org/ReferencePlatforms/HowToSetupNewPlatform#Slavealloc_changes_and_cnames_for_slaves
Attachment #821762 -
Flags: review?(kmoir) → review+
| Assignee | ||
Comment 11•12 years ago
|
||
Slavealloc production database updated to include masters and slaves (as per attachments https://bugzilla.mozilla.org/attachment.cgi?id=821762 and https://bugzilla.mozilla.org/attachment.cgi?id=821772).
| Assignee | ||
Comment 12•12 years ago
|
||
Puppet change applied: https://hg.mozilla.org/build/puppet/rev/d37313946ebe
Tools change applied: https://hg.mozilla.org/build/tools/rev/effb9660a59d
| Assignee | ||
Comment 13•12 years ago
|
||
Added pandas to buildbot-configs/mozilla-tests/production_config.py
Attachment #823398 -
Flags: review?(kmoir)
Updated•12 years ago
|
Attachment #823398 -
Flags: review?(kmoir) → review+
| Assignee | ||
Comment 14•12 years ago
|
||
Buildbot-configs change applied: https://hg.mozilla.org/build/buildbot-configs/rev/d68aa2da1617
(not merged into production branch)
Comment 15•12 years ago
|
||
in production
| Assignee | ||
Comment 16•12 years ago
|
||
A patch for devices.json with all the necessary data about foopies and relays (taken from https://inventory.mozilla.org/en-US/#inventory).
Attachment #827989 -
Flags: review?(bugspam.Callek)
| Assignee | ||
Comment 17•12 years ago
|
||
I have created all the necessary directories under /builds for each panda, on each of the associated foopies.
| Assignee | ||
Comment 18•12 years ago
|
||
The distribution of new pandas to foopies is as follows:
Foopy name | Number of pandas | New pandas added
===========+====================+=========================
foopy102 | 13 (1 new panda) | panda-0901
foopy103 | 13 (1 new panda) | panda-0902
foopy104 | 13 (1 new panda) | panda-0903
foopy105 | 13 |
foopy106 | 19 |
foopy107 | 14 (6 new pandas) | panda-0904 -> panda-0909
foopy108 | 14 (14 new pandas) | panda-0887 -> panda-0900
Comment 19•12 years ago
|
||
Comment on attachment 827989 [details] [diff] [review]
New panda relay and foopy data in devices.json
Review of attachment 827989 [details] [diff] [review]:
-----------------------------------------------------------------
r-, but rubber-stamp+ once fixed:
We sort devices.json by device name not foopy. So please place them in the list accordingly.
Attachment #827989 -
Flags: review?(bugspam.Callek) → review-
| Assignee | ||
Comment 20•12 years ago
|
||
Hey Callek,
In that case, I'll supply two patches - the first to tidy up devices.json (to sort by device name, since currently this convention is not strictly followed) and a second patch to add the new pandas.
Pete
| Assignee | ||
Comment 21•12 years ago
|
||
This is just a cleanup of the initial devices.json file, before I'll add my changes to it.
Attachment #828810 -
Flags: review?(bugspam.Callek)
| Assignee | ||
Comment 22•12 years ago
|
||
In case you see a lot of change in that patch, and are scared, I wanted to offer some comforting words to you.
Please note that this diff is considerably smaller if you filter out space changes, and apply a more aggressive diff, e.g. using the "diff" utility (rather than an hg diff).
To demonstrate, I left the old version as devices.json, and put the new version as devices2.json locally on my computer, and then ran:
pmoore@Peters-MacBook-Pro-2:~/hg/tools $ diff -d -b buildfarm/mobile/devices.json buildfarm/mobile/devices2.json
1318a1319
> "_comment": "decommissioned in bug 786366",
1321,1322c1322
< "pduid": ".AA2",
< "_comment": "decommissioned in bug 786366"
---
> "pduid": ".AA2"
1615,1616c1615,1616
< "foopy": "None",
< "_comment": "decommissioned in bug 900507"
---
> "_comment": "decommissioned in bug 900507",
> "foopy": "None"
1677a1678,1682
> "panda-0033": {
> "foopy": "foopy52",
> "relayhost": "panda-relay-022.p2.releng.scl1.mozilla.com",
> "relayid": "1:4"
> },
1732a1738,1742
> "panda-0045": {
> "foopy": "foopy69",
> "relayhost": "panda-relay-042.p5.releng.scl1.mozilla.com",
> "relayid": "1:2"
> },
1787a1798,1802
> "panda-0057": {
> "foopy": "foopy77",
> "relayhost": "panda-relay-051.p6.releng.scl1.mozilla.com",
> "relayid": "2:1"
> },
1842a1858,1862
> "panda-0069": {
> "foopy": "foopy78",
> "relayhost": "panda-relay-051.p6.releng.scl1.mozilla.com",
> "relayid": "2:5"
> },
1897a1918,1922
> "panda-0081": {
> "foopy": "foopy85",
> "relayhost": "panda-relay-059.p7.releng.scl1.mozilla.com",
> "relayid": "2:5"
> },
2738,2742d2762
< "panda-0033": {
< "foopy": "foopy52",
< "relayhost": "panda-relay-022.p2.releng.scl1.mozilla.com",
< "relayid": "1:4"
< },
3828,3832d3847
< "panda-0045": {
< "foopy": "foopy69",
< "relayhost": "panda-relay-042.p5.releng.scl1.mozilla.com",
< "relayid": "1:2"
< },
4338,4342d4352
< "panda-0057": {
< "foopy": "foopy77",
< "relayhost": "panda-relay-051.p6.releng.scl1.mozilla.com",
< "relayid": "2:1"
< },
4358,4362d4367
< "panda-0069": {
< "foopy": "foopy78",
< "relayhost": "panda-relay-051.p6.releng.scl1.mozilla.com",
< "relayid": "2:5"
< },
4793,4797d4797
< "panda-0081": {
< "foopy": "foopy85",
< "relayhost": "panda-relay-059.p7.releng.scl1.mozilla.com",
< "relayid": "2:5"
< },
5388,5392d5387
< "panda-0885": {
< "foopy": "foopy94",
< "relayhost": "panda-relay-070.p8.releng.scl1.mozilla.com",
< "relayid": "2:3"
< },
5448,5452d5442
< "panda-0886": {
< "foopy": "foopy95",
< "relayhost": "panda-relay-071.p9.releng.scl1.mozilla.com",
< "relayid": "2:4"
< },
5906a5897,5906
> },
> "panda-0885": {
> "foopy": "foopy94",
> "relayhost": "panda-relay-070.p8.releng.scl1.mozilla.com",
> "relayid": "2:3"
> },
> "panda-0886": {
> "foopy": "foopy95",
> "relayhost": "panda-relay-071.p9.releng.scl1.mozilla.com",
> "relayid": "2:4"
5908c5908
< }
---
> }
So you see, a lot of the actual patch is just about tidying up whitespace etc (e.g. trailing spaces in lines).
Please note, I generated this patch by simply sorting the existing devices.json file using this (very simple) python code:
import simplejson as json
devices = json.load(open('/Users/pmoore/hg/tools/buildfarm/mobile/devices.json', 'r'))
with open('/Users/pmoore/hg/tools/buildfarm/mobile/devices2.json', 'w') as devices2:
devices2.write(json.dumps(devices, sort_keys=True, indent=' '))
| Assignee | ||
Comment 23•12 years ago
|
||
As noted above, this patch is to be applied after first sorting/tidying devices.json with previous attachment https://bugzilla.mozilla.org/attachment.cgi?id=828810
Attachment #827989 -
Attachment is obsolete: true
Attachment #828823 -
Flags: review?(bugspam.Callek)
Updated•12 years ago
|
Attachment #828810 -
Flags: review?(bugspam.Callek) → review+
Updated•12 years ago
|
Attachment #828823 -
Flags: review?(bugspam.Callek) → review+
| Assignee | ||
Comment 24•12 years ago
|
||
Both changes committed to devices.json:
https://hg.mozilla.org/build/tools/rev/5c00ae0da6d6
https://hg.mozilla.org/build/tools/rev/5e9a55306338
| Assignee | ||
Comment 25•11 years ago
|
||
Looks like I never got round to closing this bug, but all parts seem to be completed, so closing it now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Platform Support → Buildduty
Product: Release Engineering → Infrastructure & Operations
Updated•5 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
•