Merge lp:~jtv/maas/bug-1363900 into lp:~maas-committers/maas/trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jeroen T. Vermeulen | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 2868 | ||||
Proposed branch: | lp:~jtv/maas/bug-1363900 | ||||
Merge into: | lp:~maas-committers/maas/trunk | ||||
Diff against target: |
381 lines (+160/-26) 12 files modified
Makefile (+4/-4) src/maasserver/bootresources.py (+2/-2) src/maasserver/tests/test_bootresources.py (+1/-1) src/provisioningserver/auth.py (+11/-4) src/provisioningserver/path.py (+45/-0) src/provisioningserver/rpc/boot_images.py (+2/-2) src/provisioningserver/rpc/tests/test_boot_images.py (+1/-1) src/provisioningserver/tasks.py (+2/-2) src/provisioningserver/tests/test_path.py (+66/-0) src/provisioningserver/tests/test_tasks.py (+2/-2) src/provisioningserver/tests/test_upgrade_cluster.py (+15/-4) src/provisioningserver/upgrade_cluster.py (+9/-4) |
||||
To merge this branch: | bzr merge lp:~jtv/maas/bug-1363900 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+232982@code.launchpad.net |
Commit message
When running a dev environment, move hard-coded "absolute" paths into the run/ directory.
This branch introduces a new way to compose such paths, which supports injection of a faux root directory through the MAAS_ROOT environment variable. It unbreaks startup of the dev server. To avoid import side effects, the setting is now wrapped in a getter function. We would like to do the migration of more of the hard-coded paths from celery configs in this way.
Description of the change
Pre-implementation call with Julian.
Also, the branch makes the upgrade/startup code skip the chmod on the GNUPGHOME if not running as root. This is not great; it might be better to try it and ignore errors if errno indicates that it's a matter of privileges. At any rate I did not want to introduce yet another way of indicating "this is just a development system."
Jeroen
Looks good. It's a bit annoying that the mechanism for overriding variables in a dev environment in pserv is so different from what we use in maasserver but I guess we will live. See my suggestions inline.