Merge lp:~andreserl/maas/maas_lp1553791_maas-region into lp:~maas-committers/maas/trunk

Proposed by Andres Rodriguez
Status: Superseded
Proposed branch: lp:~andreserl/maas/maas_lp1553791_maas-region
Merge into: lp:~maas-committers/maas/trunk
Diff against target: 613 lines (+70/-70)
26 files modified
HACKING.txt (+10/-10)
INSTALL.txt (+2/-2)
Makefile (+17/-17)
buildout.cfg (+4/-4)
docs/conf.py (+1/-1)
docs/configure.rst (+2/-2)
docs/development/cluster-registration.rst (+1/-1)
docs/index.rst (+1/-1)
docs/maascli.rst (+1/-1)
docs/man/maas-region.8.rst (+3/-3)
etc/maas/templates/dhcp/dhcpd.conf.template (+3/-3)
man/maas-region.8 (+2/-2)
services/dns/run (+2/-2)
services/rackd/run (+2/-2)
src/maas/demo.py (+1/-1)
src/maas/settings.py (+1/-1)
src/maasserver/dns/zonegenerator.py (+3/-3)
src/maasserver/management/commands/template.py (+1/-1)
src/maasserver/server_address.py (+1/-1)
src/maasserver/utils/__init__.py (+1/-1)
src/maastesting/tests/test_dbupgrade.py (+1/-1)
src/provisioningserver/dhcp/tests/test_notifier.py (+2/-2)
src/provisioningserver/utils/fs.py (+4/-4)
src/provisioningserver/utils/tests/test_fs.py (+2/-2)
src/provisioningserver/utils/tests/test_script.py (+1/-1)
utilities/remote-reinstall (+1/-1)
To merge this branch: bzr merge lp:~andreserl/maas/maas_lp1553791_maas-region
Reviewer Review Type Date Requested Status
MAAS Maintainers Pending
Review via email: mp+288308@code.launchpad.net

This proposal has been superseded by a proposal from 2016-03-07.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'HACKING.txt'
2--- HACKING.txt 2016-02-04 10:00:05 +0000
3+++ HACKING.txt 2016-03-07 15:16:13 +0000
4@@ -195,7 +195,7 @@
5
6 First create a superuser and start all MAAS services::
7
8- $ bin/maas-region-admin createadmin
9+ $ bin/maas-region createadmin
10 $ make run
11
12 Substitute your own email. The command will prompt for a choice of password.
13@@ -226,7 +226,7 @@
14 you want to boot some real hardware. By default, it's set to start up on
15 port 5244 for testing purposes. Make these changes::
16
17- * Use ``bin/maas-provision`` to change the tftp-port setting to 69
18+ * Use ``bin/maas-rack`` to change the tftp-port setting to 69
19 * Install the ``authbind``package:
20
21 $ sudo apt-get install authbind
22@@ -285,9 +285,9 @@
23 configuration to do. First, run this tool to generate a configuration that
24 will work with MAAS::
25
26- $ maas-provision generate-dhcp-config [options]
27+ $ maas-rack generate-dhcp-config [options]
28
29-Run ``maas-provision generate-dhcp-config -h`` to see the options. You will
30+Run ``maas-rack generate-dhcp-config -h`` to see the options. You will
31 need to provide various IP details such as the range of IP addresses to assign
32 to clients. You can use the generated output to configure your system's ISC
33 DHCP server, by inserting the configuration in the ``/var/lib/maas/dhcpd.conf``
34@@ -412,7 +412,7 @@
35
36 Generate the migration script with::
37
38- $ ./bin/maas-region-admin makemigrations --name description_of_the_change maasserver
39+ $ ./bin/maas-region makemigrations --name description_of_the_change maasserver
40
41 This will generate a migration module named
42 ``src/maasserver/migrations/builtin/<auto_number>_description_of_the_change.py``.
43@@ -432,7 +432,7 @@
44 to run Django's `makemigrations`_ command. For instance, if you want to perform
45 changes to the ``maasserver`` application, run::
46
47- $ ./bin/maas-region-admin makemigrations --empty --name description_of_the_change maasserver
48+ $ ./bin/maas-region makemigrations --empty --name description_of_the_change maasserver
49
50 This will generate a migration module named
51 ``src/maasserver/migrations/builtin/<auto_number>_description_of_the_change.py``.
52@@ -458,13 +458,13 @@
53 provide the entire schema in the initial migration. All of this logic is
54 performed on upgrade by the `dbupgrade` command.::
55
56- $ bin/maas-region-admin dbupgrade
57+ $ bin/maas-region dbupgrade
58
59 In some testing case you might need to always run the South_ migrations before
60 the Django_ migrations on a clean database. Using the `always-south` option on
61 the `dbupgrade` command allows this testing scenario.::
62
63- $ bin/maas-region-admin dbupgrade --always-south
64+ $ bin/maas-region dbupgrade --always-south
65
66 .. Note::
67
68@@ -481,14 +481,14 @@
69
70 If you need to get an interactive ``psql`` prompt, you can use `dbshell`_::
71
72- $ bin/maas-region-admin dbshell
73+ $ bin/maas-region dbshell
74
75 .. _dbshell: https://docs.djangoproject.com/en/dev/ref/django-admin/#dbshell
76
77 If you need to do the same thing with a version of MAAS you have installed
78 from the package, you can use::
79
80- $ sudo maas-region-admin dbshell --installed
81+ $ sudo maas-region dbshell --installed
82
83 You can use the ``\dt`` command to list the tables in the MAAS database. You
84 can also execute arbitrary SQL. For example:::
85
86=== modified file 'INSTALL.txt'
87--- INSTALL.txt 2016-03-01 19:02:08 +0000
88+++ INSTALL.txt 2016-03-07 15:16:13 +0000
89@@ -131,7 +131,7 @@
90 Once you have copied the secret, you can install it in the Cluster
91 Controller. At the command line, type::
92
93- $ sudo maas-provision
94+ $ sudo maas-rack
95
96 Once installed, you will need to reconfigure the Cluster Controller
97 to correctly point to the API hostname or IP address of the Region
98@@ -266,7 +266,7 @@
99 Once MAAS is installed, you'll need to create an administrator
100 account::
101
102- $ sudo maas-region-admin createadmin --username=root --email=MYEMAIL@EXAMPLE.COM
103+ $ sudo maas-region createadmin --username=root --email=MYEMAIL@EXAMPLE.COM
104
105 Substitute your own email address for MYEMAIL@EXAMPLE.COM. You may also
106 use a different username for your administrator account, but "root" is a
107
108=== modified file 'Makefile'
109--- Makefile 2016-03-04 18:09:49 +0000
110+++ Makefile 2016-03-07 15:16:13 +0000
111@@ -52,8 +52,8 @@
112 bin/database \
113 bin/maas \
114 bin/maas-probe-dhcp \
115- bin/maas-provision \
116- bin/maas-region-admin \
117+ bin/maas-rack \
118+ bin/maas-region \
119 bin/twistd.rack \
120 bin/twistd.region \
121 bin/test.cli \
122@@ -95,7 +95,7 @@
123 $(buildout) install database
124 @touch --no-create $@
125
126-bin/maas-region-admin bin/twistd.region: \
127+bin/maas-region bin/twistd.region: \
128 data bin/buildout buildout.cfg versions.cfg setup.py $(js_enums)
129 $(buildout) install region
130 @touch --no-create $@
131@@ -121,21 +121,21 @@
132 $(buildout) install e2e-test
133 @touch --no-create $@
134
135-# bin/maas-region-admin is needed for South migration tests. bin/flake8 is
136+# bin/maas-region is needed for South migration tests. bin/flake8 is
137 # needed for checking lint and bin/sass is needed for checking css.
138 bin/test.testing: \
139- bin/maas-region-admin bin/flake8 bin/sass bin/buildout \
140+ bin/maas-region bin/flake8 bin/sass bin/buildout \
141 buildout.cfg versions.cfg setup.py
142 $(buildout) install testing-test
143 @touch --no-create $@
144
145-bin/maas-probe-dhcp bin/maas-provision bin/twistd.rack: \
146+bin/maas-probe-dhcp bin/maas-rack bin/twistd.rack: \
147 bin/buildout buildout.cfg versions.cfg setup.py
148 $(buildout) install rack
149 @touch --no-create $@
150
151 bin/test.rack: \
152- bin/buildout buildout.cfg versions.cfg setup.py bin/maas-provision
153+ bin/buildout buildout.cfg versions.cfg setup.py bin/maas-rack
154 $(buildout) install rack-test
155 @touch --no-create $@
156
157@@ -277,11 +277,11 @@
158
159 check: clean test
160
161-docs/api.rst: bin/maas-region-admin src/maasserver/api/doc_handler.py syncdb
162- bin/maas-region-admin generate_api_doc > $@
163+docs/api.rst: bin/maas-region src/maasserver/api/doc_handler.py syncdb
164+ bin/maas-region generate_api_doc > $@
165
166-sampledata: bin/maas-region-admin bin/database syncdb
167- $(dbrun) bin/maas-region-admin generate_sample_data
168+sampledata: bin/maas-region bin/database syncdb
169+ $(dbrun) bin/maas-region generate_sample_data
170
171 doc: bin/sphinx docs/api.rst
172 bin/sphinx
173@@ -357,14 +357,14 @@
174 distclean: clean
175 $(warning 'distclean' is deprecated; use 'clean')
176
177-harness: bin/maas-region-admin bin/database
178- $(dbrun) bin/maas-region-admin shell --settings=maas.demo
179+harness: bin/maas-region bin/database
180+ $(dbrun) bin/maas-region shell --settings=maas.demo
181
182 dbharness: bin/database
183 bin/database --preserve shell
184
185-syncdb: bin/maas-region-admin bin/database
186- $(dbrun) bin/maas-region-admin dbupgrade
187+syncdb: bin/maas-region bin/database
188+ $(dbrun) bin/maas-region dbupgrade
189
190 define phony_targets
191 build
192@@ -495,9 +495,9 @@
193
194 services/reloader/@deps:
195
196-services/regiond/@deps: bin/maas-region-admin
197+services/regiond/@deps: bin/maas-region
198
199-services/regiond2/@deps: bin/maas-region-admin
200+services/regiond2/@deps: bin/maas-region
201
202 #
203 # Package building
204
205=== modified file 'buildout.cfg'
206--- buildout.cfg 2016-02-04 10:34:29 +0000
207+++ buildout.cfg 2016-03-07 15:16:13 +0000
208@@ -81,13 +81,13 @@
209 eggs =
210 ${region:test-eggs}
211 entry-points =
212- maas-region-admin=maasserver:execute_from_command_line
213+ maas-region=maasserver:execute_from_command_line
214 twistd.region=twisted.scripts.twistd:run
215 initialization =
216 ${common:initialization}
217 environ.setdefault("DJANGO_SETTINGS_MODULE", "maas.development")
218 scripts =
219- maas-region-admin
220+ maas-region
221 twistd.region
222 extra-paths =
223 ${common:extra-paths}
224@@ -190,13 +190,13 @@
225 eggs =
226 entry-points =
227 maas-probe-dhcp=provisioningserver.dhcp.probe:main
228- maas-provision=provisioningserver.__main__:main
229+ maas-rack=provisioningserver.__main__:main
230 twistd.rack=twisted.scripts.twistd:run
231 extra-paths =
232 ${common:extra-paths}
233 scripts =
234 maas-probe-dhcp
235- maas-provision
236+ maas-rack
237 twistd.rack
238 initialization =
239 ${common:initialization}
240
241=== modified file 'docs/conf.py'
242--- docs/conf.py 2016-02-17 16:12:30 +0000
243+++ docs/conf.py 2016-03-07 15:16:13 +0000
244@@ -281,7 +281,7 @@
245 man_pages = [
246 ('man/maas.8', 'maas', u'MAAS API commandline utility',
247 [u'Canonical 2013-2014'], 8),
248- ('man/maas-region-admin.8', 'maas-region-admin', u'MAAS administration tool',
249+ ('man/maas-region.8', 'maas-region', u'MAAS administration tool',
250 [u'Canonical 2013-2014'], 8)
251 ]
252
253
254=== modified file 'docs/configure.rst'
255--- docs/configure.rst 2015-09-08 18:41:57 +0000
256+++ docs/configure.rst 2016-03-07 15:16:13 +0000
257@@ -55,9 +55,9 @@
258
259 Ensure that the Apache config file from ``etc/maas/maas-http.conf`` is
260 included in ``/etc/apache2/conf.d/``, then set the default URL using the
261-``maas-region-admin`` command to use ``https`` instead of ``http``::
262+``maas-region`` command to use ``https`` instead of ``http``::
263
264- $ maas-region-admin local_config_set \
265+ $ maas-region local_config_set \
266 > --maas-url="https://localhost:5240/MAAS"
267
268 Now, restart Apache::
269
270=== modified file 'docs/development/cluster-registration.rst'
271--- docs/development/cluster-registration.rst 2016-02-04 10:00:05 +0000
272+++ docs/development/cluster-registration.rst 2016-03-07 15:16:13 +0000
273@@ -23,7 +23,7 @@
274
275 The cluster obviously needs to know where the region controller is, and
276 this is configured in a file ``/etc/maas/rackd.conf``. This should
277-only ever be modified via the ``maas-provision`` command.
278+only ever be modified via the ``maas-rack`` command.
279
280 .. _first-cluster:
281
282
283=== modified file 'docs/index.rst'
284--- docs/index.rst 2015-11-10 22:30:16 +0000
285+++ docs/index.rst 2016-03-07 15:16:13 +0000
286@@ -113,7 +113,7 @@
287 .. toctree::
288 :maxdepth: 1
289
290- man/maas-region-admin.8
291+ man/maas-region.8
292 man/maas.8
293
294
295
296=== modified file 'docs/maascli.rst'
297--- docs/maascli.rst 2016-01-25 14:10:29 +0000
298+++ docs/maascli.rst 2016-03-07 15:16:13 +0000
299@@ -40,7 +40,7 @@
300 To obtain the key through the command line, run this command on the region
301 controller (it requires root access)::
302
303- $ sudo maas-region-admin apikey --username=my-username
304+ $ sudo maas-region apikey --username=my-username
305
306 (Substitute your MAAS user name for my-username).
307
308
309=== renamed file 'docs/man/maas-region-admin.8.rst' => 'docs/man/maas-region.8.rst'
310--- docs/man/maas-region-admin.8.rst 2014-05-05 16:20:18 +0000
311+++ docs/man/maas-region.8.rst 2016-03-07 15:16:13 +0000
312@@ -1,11 +1,11 @@
313-maas-region-admin
314------------------
315+maas-region
316+-----------
317
318
319 Usage
320 ^^^^^
321
322-maas-region-admin [-h, --help] createadmin | changepassword | shell
323+maas-region [-h, --help] createadmin | changepassword | shell
324
325
326 Description
327
328=== modified file 'etc/maas/templates/dhcp/dhcpd.conf.template'
329--- etc/maas/templates/dhcp/dhcpd.conf.template 2016-03-02 05:03:06 +0000
330+++ etc/maas/templates/dhcp/dhcpd.conf.template 2016-03-07 15:16:13 +0000
331@@ -89,7 +89,7 @@
332 set cllt = binary-to-ascii(10, 32, "", encode-int(lease-time, 32));
333 set clht = pick-first-value(option host-name, "(none)");
334 execute(
335- "sudo", "maas-provision", "dhcp-notify",
336+ "sudo", "maas-rack", "dhcp-notify",
337 "--action", "commit", "--mac", clhw,
338 "--ip-family", "ipv4", "--ip", clip,
339 "--lease-time", cllt, "--hostname", clht);
340@@ -98,7 +98,7 @@
341 set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
342 set clip = binary-to-ascii(10, 8, ".", leased-address);
343 execute(
344- "sudo", "maas-provision", "dhcp-notify",
345+ "sudo", "maas-rack", "dhcp-notify",
346 "--action", "expiry", "--mac", clhw,
347 "--ip-family", "ipv4", "--ip", clip);
348 }
349@@ -106,7 +106,7 @@
350 set clhw = binary-to-ascii(16, 8, ":", substring(hardware, 1, 6));
351 set clip = binary-to-ascii(10, 8, ".", leased-address);
352 execute(
353- "sudo", "maas-provision", "dhcp-notify",
354+ "sudo", "maas-rack", "dhcp-notify",
355 "--action", "release", "--mac", clhw,
356 "--ip-family", "ipv4", "--ip", clip);
357 }
358
359=== renamed file 'man/maas-region-admin.8' => 'man/maas-region.8'
360--- man/maas-region-admin.8 2015-10-15 15:17:24 +0000
361+++ man/maas-region.8 2016-03-07 15:16:13 +0000
362@@ -1,8 +1,8 @@
363 .\" Man page generated from reStructuredText.
364 .
365-.TH "MAAS-REGION-ADMIN" "8" "October 15, 2015" "dev" "MAAS"
366+.TH "MAAS-REGION" "8" "October 15, 2015" "dev" "MAAS"
367 .SH NAME
368-maas-region-admin \- MAAS administration tool
369+maas-region \- MAAS administration tool
370 .
371 .nr rst2man-indent-level 0
372 .
373
374=== modified file 'services/dns/run'
375--- services/dns/run 2015-12-11 17:13:38 +0000
376+++ services/dns/run 2016-03-07 15:16:13 +0000
377@@ -34,10 +34,10 @@
378
379 # Create MAAS' DNS config: do not overwrite an existing config file
380 # as the writing of the full configuration might have happened already.
381-bin/maas-region-admin set_up_dns --no-clobber
382+bin/maas-region set_up_dns --no-clobber
383
384 # Edit the fixture's named.conf to include MAAS' DNS config.
385-bin/maas-region-admin get_named_conf \
386+bin/maas-region get_named_conf \
387 --edit --config_path "${homedir}/named.conf"
388
389 # Run named.
390
391=== modified file 'services/rackd/run'
392--- services/rackd/run 2016-02-10 20:24:35 +0000
393+++ services/rackd/run 2016-03-07 15:16:13 +0000
394@@ -19,12 +19,12 @@
395
396 # Configure the rack's UUID to match sampledata, and also use a high
397 # port for TFTP to match this branch's etc/services.
398-bin/maas-provision config \
399+bin/maas-rack config \
400 --uuid adfd3977-f251-4f2c-8d61-745dbd690bf2 \
401 --tftp-port 5244
402
403 # Wait for the installation of the shared-secret.
404-until bin/maas-provision check-for-shared-secret; do sleep 2; done
405+until bin/maas-rack check-for-shared-secret; do sleep 2; done
406
407 # Exec the Provisioning Server.
408 script="$(readlink -f bin/twistd.rack)"
409
410=== modified file 'src/maas/demo.py'
411--- src/maas/demo.py 2016-01-20 00:07:16 +0000
412+++ src/maas/demo.py 2016-03-07 15:16:13 +0000
413@@ -27,7 +27,7 @@
414 # Connect to the DHCP server. TODO: Use the signals manager instead.
415 DHCP_CONNECT = True
416
417-MAAS_CLI = abspath("bin/maas-region-admin")
418+MAAS_CLI = abspath("bin/maas-region")
419
420 # For demo purposes, give nodes unauthenticated access to their metadata
421 # even if we can't pass boot parameters. This is not safe; do not
422
423=== modified file 'src/maas/settings.py'
424--- src/maas/settings.py 2016-01-25 14:10:29 +0000
425+++ src/maas/settings.py 2016-03-07 15:16:13 +0000
426@@ -79,7 +79,7 @@
427 DHCP_CONNECT = True
428
429 # The MAAS CLI.
430-MAAS_CLI = 'sudo maas-region-admin'
431+MAAS_CLI = 'sudo maas-region'
432
433 API_URL_REGEXP = '^/api/2[.]0/'
434 METADATA_URL_REGEXP = '^/metadata/'
435
436=== modified file 'src/maasserver/dns/zonegenerator.py'
437--- src/maasserver/dns/zonegenerator.py 2016-02-18 17:31:45 +0000
438+++ src/maasserver/dns/zonegenerator.py 2016-03-07 15:16:13 +0000
439@@ -94,7 +94,7 @@
440 "The DNS server will use the address '%s', which is inside the "
441 "loopback network. This may not be a problem if you're not using "
442 "MAAS's DNS features or if you don't rely on this information. "
443- "Consult the 'maas-region-admin local_config_set --maas-url' command "
444+ "Consult the 'maas-region local_config_set --maas-url' command "
445 "for details on how to set the MAAS URL.")
446
447
448@@ -108,7 +108,7 @@
449 """Return the DNS server's IP address.
450
451 That address is derived from the config maas_url or rack_controller.url.
452- Consult the 'maas-region-admin local_config_set --maas-url' command for
453+ Consult the 'maas-region local_config_set --maas-url' command for
454 details on how to set the MAAS URL.
455
456 :param rack_controller: Optional rack controller to which the DNS server
457@@ -127,7 +127,7 @@
458 "Unable to find MAAS server IP address: %s. MAAS's DNS server "
459 "requires this IP address for the NS records in its zone files. "
460 "Make sure that the configuration setting for the MAAS URL has "
461- "the correct hostname. Consult the 'maas-region-admin "
462+ "the correct hostname. Consult the 'maas-region "
463 "local_config_set --maas-url' command."
464 % e.strerror)
465
466
467=== modified file 'src/maasserver/management/commands/template.py'
468--- src/maasserver/management/commands/template.py 2016-03-04 05:31:08 +0000
469+++ src/maasserver/management/commands/template.py 2016-03-07 15:16:13 +0000
470@@ -40,7 +40,7 @@
471 template.delete()
472 if verbosity > 0:
473 stdout.write("It would now be wise to run:\n")
474- stdout.write(" sudo maas-region-admin template update-defaults\n")
475+ stdout.write(" sudo maas-region template update-defaults\n")
476
477
478 class Command(BaseCommand):
479
480=== modified file 'src/maasserver/server_address.py'
481--- src/maasserver/server_address.py 2016-02-02 14:20:45 +0000
482+++ src/maasserver/server_address.py 2016-03-07 15:16:13 +0000
483@@ -40,7 +40,7 @@
484 """Return address where nodes and workers can reach the MAAS server.
485
486 The address is taken from the configured MAAS URL or `controller.url`.
487- Consult the 'maas-region-admin local_config_set' command for details on
488+ Consult the 'maas-region local_config_set' command for details on
489 how to set the MAAS URL.
490
491 If there is more than one IP address for the host, the addresses
492
493=== modified file 'src/maasserver/utils/__init__.py'
494--- src/maasserver/utils/__init__.py 2016-02-02 14:20:45 +0000
495+++ src/maasserver/utils/__init__.py 2016-03-07 15:16:13 +0000
496@@ -46,7 +46,7 @@
497 calls Django's 'reverse' method and prefixes the result of that call with
498 the configured MAAS URL.
499
500- Consult the 'maas-region-admin local_config_set --default-url' command for
501+ Consult the 'maas-region local_config_set --default-url' command for
502 details on how to set the MAAS URL.
503
504 :param view_name: Django's view function name/reference or URL pattern
505
506=== modified file 'src/maastesting/tests/test_dbupgrade.py'
507--- src/maastesting/tests/test_dbupgrade.py 2015-12-01 18:12:59 +0000
508+++ src/maastesting/tests/test_dbupgrade.py 2016-03-07 15:16:13 +0000
509@@ -41,7 +41,7 @@
510 env = os.environ.copy()
511 env["DEV_DB_NAME"] = "test_maas_dbupgrade"
512 env["MAAS_PREVENT_MIGRATIONS"] = "0"
513- mra = os.path.join(root, "bin", "maas-region-admin")
514+ mra = os.path.join(root, "bin", "maas-region")
515 cmd = [mra, "dbupgrade"]
516 if always_south:
517 cmd.append("--always-south")
518
519=== modified file 'src/provisioningserver/dhcp/tests/test_notifier.py'
520--- src/provisioningserver/dhcp/tests/test_notifier.py 2016-02-17 20:26:00 +0000
521+++ src/provisioningserver/dhcp/tests/test_notifier.py 2016-03-07 15:16:13 +0000
522@@ -1,7 +1,7 @@
523 # Copyright 2014-2015 Canonical Ltd. This software is licensed under the
524 # GNU Affero General Public License version 3 (see the file LICENSE).
525
526-"""Tests for maas-provision dhcp-notify command."""
527+"""Tests for maas-rack dhcp-notify command."""
528
529 __all__ = []
530
531@@ -67,7 +67,7 @@
532 self.addCleanup(service.stopService)
533
534 call_and_check([
535- "%s/bin/maas-provision" % root,
536+ "%s/bin/maas-rack" % root,
537 "dhcp-notify",
538 '--action', action,
539 '--mac', mac,
540
541=== modified file 'src/provisioningserver/utils/fs.py'
542--- src/provisioningserver/utils/fs.py 2016-02-26 00:03:29 +0000
543+++ src/provisioningserver/utils/fs.py 2016-03-07 15:16:13 +0000
544@@ -56,9 +56,9 @@
545
546
547 def get_maas_provision_command():
548- """Return path to the maas-provision command.
549+ """Return path to the maas-rack command.
550
551- In production mode this will just return 'maas-provision', but in
552+ In production mode this will just return 'maas-rack', but in
553 development mode it will return the path for the current development
554 environment.
555 """
556@@ -66,9 +66,9 @@
557 from provisioningserver.config import is_dev_environment
558 if is_dev_environment():
559 from maastesting import root
560- return os.path.join(root, "bin", "maas-provision")
561+ return os.path.join(root, "bin", "maas-rack")
562 else:
563- return "maas-provision"
564+ return "maas-rack"
565
566
567 def _write_temp_file(content, filename):
568
569=== modified file 'src/provisioningserver/utils/tests/test_fs.py'
570--- src/provisioningserver/utils/tests/test_fs.py 2016-02-26 00:38:54 +0000
571+++ src/provisioningserver/utils/tests/test_fs.py 2016-03-07 15:16:13 +0000
572@@ -313,13 +313,13 @@
573 def test__returns_just_command_for_production(self):
574 self.patch(provisioningserver.config, "is_dev_environment")
575 provisioningserver.config.is_dev_environment.return_value = False
576- self.assertEqual("maas-provision", get_maas_provision_command())
577+ self.assertEqual("maas-rack", get_maas_provision_command())
578
579 def test__returns_full_path_for_development(self):
580 self.patch(provisioningserver.config, "is_dev_environment")
581 provisioningserver.config.is_dev_environment.return_value = True
582 self.assertEqual(
583- root.rstrip("/") + "/bin/maas-provision",
584+ root.rstrip("/") + "/bin/maas-rack",
585 get_maas_provision_command())
586
587
588
589=== modified file 'src/provisioningserver/utils/tests/test_script.py'
590--- src/provisioningserver/utils/tests/test_script.py 2015-12-03 23:28:19 +0000
591+++ src/provisioningserver/utils/tests/test_script.py 2016-03-07 15:16:13 +0000
592@@ -194,7 +194,7 @@
593
594 def test_script_executable(self):
595 content = factory.make_string()
596- script = [os.path.join(bindir, "maas-provision"), 'atomic-write']
597+ script = [os.path.join(bindir, "maas-rack"), 'atomic-write']
598 target_file = self.make_file()
599 script.extend(('--filename', target_file, '--mode', '615'))
600 cmd = Popen(script, stdin=PIPE, env=select_c_utf8_locale())
601
602=== modified file 'utilities/remote-reinstall'
603--- utilities/remote-reinstall 2016-02-26 18:41:33 +0000
604+++ utilities/remote-reinstall 2016-03-07 15:16:13 +0000
605@@ -90,7 +90,7 @@
606 $ssh_run rm -rf /usr/share/maas/web/static/*
607 $ssh_run mv /usr/lib/python3/dist-packages/maasserver/static/* /usr/share/maas/web/static/
608 $ssh_run service maas-regiond stop
609-$ssh_run maas-region-admin migrate
610+$ssh_run maas-region migrate
611 sleep 1
612 $ssh_run service maas-regiond start
613 $ssh_run service apache2 restart