Merge lp:~wgrant/launchpad/noro-config into lp:launchpad

Proposed by William Grant on 2012-08-09
Status: Merged
Approved by: William Grant on 2012-08-09
Approved revision: no longer in the source branch.
Merged at revision: 15782
Proposed branch: lp:~wgrant/launchpad/noro-config
Merge into: lp:launchpad
Prerequisite: lp:~wgrant/launchpad/noro
Diff against target: 142 lines (+3/-44)
8 files modified
configs/development/launchpad-lazr.conf (+0/-10)
configs/replicated-development/launchpad-lazr.conf (+0/-2)
configs/test-playground/launchpad-lazr.conf (+0/-2)
configs/testrunner/launchpad-lazr.conf (+0/-4)
lib/lp/services/config/__init__.py (+2/-3)
lib/lp/services/config/schema-lazr.conf (+0/-11)
lib/lp/services/librarian/client.py (+1/-6)
lib/lp/services/scripts/__init__.py (+0/-6)
To merge this branch: bzr merge lp:~wgrant/launchpad/noro-config
Reviewer Review Type Date Requested Status
Steve Kowalik (community) code 2012-08-09 Approve on 2012-08-09
Review via email: mp+118869@code.launchpad.net

Commit Message

Drop the unused read-only mode and auth store config options.

Description of the Change

Drop the unused read-only mode and auth store config options.

To post a comment you must log in.
Steve Kowalik (stevenk) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configs/development/launchpad-lazr.conf'
2--- configs/development/launchpad-lazr.conf 2012-06-28 16:32:27 +0000
3+++ configs/development/launchpad-lazr.conf 2012-08-09 04:52:21 +0000
4@@ -61,19 +61,9 @@
5 voucher_proxy_port: 2323
6 purchase_subscription_url: http://ubuntu.recycledmania.com/product_info.php?products_id=227
7
8-
9 [database]
10 rw_main_master: dbname=launchpad_dev
11 rw_main_slave: dbname=launchpad_dev
12-# Use our _template databases here just so that we have different values from
13-# the rw_* configs.
14-ro_main_master: dbname=launchpad_dev_template
15-ro_main_slave: dbname=launchpad_dev_template
16-
17-# XXX stub 20100407 bug=557271: These next two are ignored, and should
18-# be removed after the May 2010 rollout.
19-auth_master: bug 557271
20-auth_slave: bug 557271
21
22 [distributionmirrorprober]
23 use_proxy: False
24
25=== modified file 'configs/replicated-development/launchpad-lazr.conf'
26--- configs/replicated-development/launchpad-lazr.conf 2012-06-20 18:35:49 +0000
27+++ configs/replicated-development/launchpad-lazr.conf 2012-08-09 04:52:21 +0000
28@@ -8,5 +8,3 @@
29 [database]
30 rw_main_master: dbname=launchpad_dev
31 rw_main_slave: dbname=launchpad_dev port=5434
32-ro_main_master: dbname=launchpad_dev
33-ro_main_slave: dbname=launchpad_dev port=5434
34
35=== modified file 'configs/test-playground/launchpad-lazr.conf'
36--- configs/test-playground/launchpad-lazr.conf 2010-03-26 20:35:31 +0000
37+++ configs/test-playground/launchpad-lazr.conf 2012-08-09 04:52:21 +0000
38@@ -8,5 +8,3 @@
39 [database]
40 rw_main_master: dbname=launchpad_ftest_playground
41 rw_main_slave: dbname=launchpad_ftest_playground
42-ro_main_master: dbname=launchpad_ftest_playground
43-ro_main_slave: dbname=launchpad_ftest_playground
44
45=== modified file 'configs/testrunner/launchpad-lazr.conf'
46--- configs/testrunner/launchpad-lazr.conf 2012-05-20 23:49:27 +0000
47+++ configs/testrunner/launchpad-lazr.conf 2012-08-09 04:52:21 +0000
48@@ -25,10 +25,6 @@
49 [database]
50 rw_main_master: dbname=launchpad_ftest host=localhost
51 rw_main_slave: dbname=launchpad_ftest host=localhost
52-# Use our _template databases here just so that we have different values from
53-# the rw_* configs.
54-ro_main_master: dbname=launchpad_ftest_template host=localhost
55-ro_main_slave: dbname=launchpad_ftest_template host=localhost
56
57 [error_reports]
58 oops_prefix: T
59
60=== modified file 'lib/lp/services/config/__init__.py'
61--- lib/lp/services/config/__init__.py 2012-08-09 04:52:20 +0000
62+++ lib/lp/services/config/__init__.py 2012-08-09 04:52:21 +0000
63@@ -420,13 +420,12 @@
64 _config_section = None
65 _db_config_attrs = frozenset([
66 'dbuser',
67- 'rw_main_master', 'rw_main_slave', 'ro_main_master', 'ro_main_slave',
68+ 'rw_main_master', 'rw_main_slave',
69 'db_statement_timeout', 'db_statement_timeout_precision',
70 'isolation_level', 'soft_request_timeout',
71 'storm_cache', 'storm_cache_size'])
72 _db_config_required_attrs = frozenset([
73- 'dbuser', 'rw_main_master', 'rw_main_slave', 'ro_main_master',
74- 'ro_main_slave'])
75+ 'dbuser', 'rw_main_master', 'rw_main_slave'])
76
77 def __init__(self):
78 self.reset()
79
80=== modified file 'lib/lp/services/config/schema-lazr.conf'
81--- lib/lp/services/config/schema-lazr.conf 2012-08-06 09:29:34 +0000
82+++ lib/lp/services/config/schema-lazr.conf 2012-08-09 04:52:21 +0000
83@@ -469,17 +469,6 @@
84 rw_main_master: dbname=launchpad_prod_3 host=wildcherry.canonical.com
85 # datatype: pgconnection
86 rw_main_slave: dbname=launchpad_prod_2 host=chokecherry.canonical.com
87-# datatype: pgconnection
88-ro_main_master: dbname=launchpad_standalone_1 host=chokecherry.canonical.com
89-# datatype: pgconnection
90-ro_main_slave: dbname=launchpad_standalone_1 host=chokecherry.canonical.com
91-
92-# XXX stub 20100407 bug=557271: These next two are ignored, and should
93-# be removed after the May 2010 rollout.
94-# datatype: string
95-auth_master: ignored
96-# datatype: string
97-auth_slave: ignored
98
99 # If the replication lag is more than this many seconds, slave databases
100 # will not be used.
101
102=== modified file 'lib/lp/services/librarian/client.py'
103--- lib/lp/services/librarian/client.py 2012-07-03 08:04:35 +0000
104+++ lib/lp/services/librarian/client.py 2012-08-09 04:52:21 +0000
105@@ -237,12 +237,7 @@
106 name = name.encode('utf-8')
107 self._connect()
108 try:
109- # Use dbconfig.rw_main_master directly here because it doesn't
110- # make sense to try and use ro_main_master (which might be
111- # returned if we use dbconfig.main_master). Note we can't
112- # use database introspection, as not all clients using this
113- # method have database access.
114- database_name = ConnectionString(dbconfig.rw_main_master).dbname
115+ database_name = ConnectionString(dbconfig.main_master).dbname
116 self._sendLine('STORE %d %s' % (size, name))
117 self._sendHeader('Database-Name', database_name)
118 self._sendHeader('Content-Type', str(contentType))
119
120=== modified file 'lib/lp/services/scripts/__init__.py'
121--- lib/lp/services/scripts/__init__.py 2012-03-26 06:08:39 +0000
122+++ lib/lp/services/scripts/__init__.py 2012-08-09 04:52:21 +0000
123@@ -145,10 +145,6 @@
124 'dbname=foo user=baz host=bar port=6432'
125 >>> config.database.rw_main_slave
126 'dbname=foo user=baz host=bar port=6432'
127- >>> config.database.ro_main_master
128- 'dbname=foo user=baz host=bar port=6432'
129- >>> config.database.ro_main_slave
130- 'dbname=foo user=baz host=bar port=6432'
131
132 Make sure that the default user is None
133
134@@ -164,8 +160,6 @@
135 connection_string_keys = [
136 'rw_main_master',
137 'rw_main_slave',
138- 'ro_main_master',
139- 'ro_main_slave',
140 ]
141 config_data = ["[database]"]
142 for con_str_key in connection_string_keys: