testing: change link name of autoland db from "db" to "autolanddb"; r?glob draft
authorGregory Szorc <gps@mozilla.com>
Mon, 29 Aug 2016 10:47:48 -0700
changeset 9367 19ff277942e9f08f769593a2f5efa59f180eb6dd
parent 9366 e4c8a7e48ada1b98ddc2be9ea61048d697851447
child 9368 2470c0a45fc9c50f537067f7219944ca1dcb7e89
push id1168
push userbmo:gps@mozilla.com
push dateMon, 29 Aug 2016 18:06:42 +0000
reviewersglob
testing: change link name of autoland db from "db" to "autolanddb"; r?glob Making it more descriptive in the context of a larger cluster. MozReview-Commit-ID: Ag4d6F5uVOs
testing/docker/builder-autoland/config.json
testing/docker/builder-autoland/start-autoland.sh
testing/vcttesting/docker.py
--- a/testing/docker/builder-autoland/config.json
+++ b/testing/docker/builder-autoland/config.json
@@ -24,12 +24,12 @@
   },
   "selfserve": {
     "user": "",
     "passwd": ""
   },
   "auth": {
     "autoland": "autoland"
   },
-  "database": "dbname=autoland user=postgres host=db",
+  "database": "dbname=autoland user=postgres host=autolanddb",
   "repos" : {
   }
 }
--- a/testing/docker/builder-autoland/start-autoland.sh
+++ b/testing/docker/builder-autoland/start-autoland.sh
@@ -1,8 +1,8 @@
 #!/bin/bash
 
 cd $AUTOLAND_HOME
 . venv/bin/activate
 
 cd autoland
-python autoland.py --log-path=/home/ubuntu/autoland.log --dsn="dbname=autoland user=postgres host=db" &
+python autoland.py --log-path=/home/ubuntu/autoland.log --dsn="dbname=autoland user=postgres host=autolanddb" &
 apache2ctl -D FOREGROUND
--- a/testing/vcttesting/docker.py
+++ b/testing/vcttesting/docker.py
@@ -1168,17 +1168,17 @@ class Docker(object):
                 treestatus_state = self.client.inspect_container(treestatus_id)
 
             if start_autoland:
                 assert start_hgrb
                 assert start_treestatus
                 f_start_autoland = e.submit(
                     self.client.start,
                     autoland_id,
-                    links=[(autolanddb_state['Name'], 'db'),
+                    links=[(autolanddb_state['Name'], 'autolanddb'),
                            (web_state['Name'], 'bmoweb'),
                            (hgrb_state['Name'], 'hgrb'),
                            (treestatus_state['Name'], 'treestatus')],
                     port_bindings={80: autoland_port})
                 f_start_autoland.result()
                 autoland_state = self.client.inspect_container(autoland_id)
 
             if start_rbweb: