Merge lp:~bac/lpsetup/fix-inithost-install-lxc into lp:lpsetup
| Status: | Merged |
|---|---|
| Approved by: | Gary Poster on 2012-07-13 |
| Approved revision: | 60 |
| Merged at revision: | 52 |
| Proposed branch: | lp:~bac/lpsetup/fix-inithost-install-lxc |
| Merge into: | lp:lpsetup |
| Diff against target: |
941 lines (+224/-301) 17 files modified
README.rst (+11/-3) lplxcip/tests/utils.py (+1/-1) lpsetup/handlers.py (+7/-4) lpsetup/settings.py (+3/-1) lpsetup/subcommands/finish_inithost.py (+48/-94) lpsetup/subcommands/inithost.py (+15/-4) lpsetup/subcommands/initlxc.py (+7/-2) lpsetup/subcommands/initrepo.py (+16/-3) lpsetup/subcommands/install_lxc.py (+54/-116) lpsetup/subcommands/update.py (+17/-13) lpsetup/tests/subcommands/test_finish_inithost.py (+8/-22) lpsetup/tests/subcommands/test_inithost.py (+1/-1) lpsetup/tests/subcommands/test_initlxc.py (+2/-2) lpsetup/tests/subcommands/test_install_lxc.py (+26/-27) lpsetup/tests/subcommands/test_update.py (+2/-1) pre-commit.sh (+1/-1) setup.cfg (+5/-6) |
| To merge this branch: | bzr merge lp:~bac/lpsetup/fix-inithost-install-lxc |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Gary Poster (community) | 2012-07-11 | Approve on 2012-07-13 | |
|
Review via email:
|
|||
Commit Message
Fix install-lxc and finish-init-host.
Description of the Change
A previous branch refactored away some methods that install-lxc and finish-init-host needed. Those commands were neutered and their tests disabled.
This branch fixes them properly. Some stuff from finish-init-host was moved to init-host so that everything in the latter stage all depend upon a Launchpad tree existing.
I poked and prodded setup.cfg and with Francesco's help got a work-around that seems to appease nose.
| Brad Crittenden (bac) wrote : | # |
- 54. By Brad Crittenden on 2012-07-11
-
Fix fatal typo
- 55. By Brad Crittenden on 2012-07-11
-
Don't error if launchpad repo already exists
- 56. By Brad Crittenden on 2012-07-11
-
Fix typo
| Gary Poster (gary) wrote : | # |
Hi Brad. Thank you, this looks very good.
I believe the make_launchpad is called only once, with install=True. This suggests that we could remove that argument from the signature; and it further suggests that we could maybe collapse it into setup_launchpad. Take that as far as you feel comfortable.
I think it would be nice if finish-inithost had a docstring (and help text?) that indicated that it was slated for eventual removal.
The only "must-have" change I have is that install_lxc should not include inithost.
Thanks again!
Gary
| Gary Poster (gary) wrote : | # |
Brad and I talked further. install-lxc still needs some more refactoring. he'll circle around and finish that up.
- 57. By Brad Crittenden on 2012-07-12
-
Added notes on broken install-lxc
- 58. By Brad Crittenden on 2012-07-12
-
checkpoint
- 59. By Brad Crittenden on 2012-07-12
-
Fixes to install_lxc.
- 60. By Brad Crittenden on 2012-07-12
-
Finish up install-lxc and make changes due to testing. Made command-line options unique.
| Brad Crittenden (bac) wrote : | # |
Gary please look at this again.
| Gary Poster (gary) wrote : | # |
Wow, thank you Brad. This is great. Everything from the code cleanup, to the code reduction, to the help & doc text improvements are really wonderful.
Could you please make a card, or a quick branch, to have handle_directories use os.path.abspath so we can pass directories like '.'?
The help for the user argument of finish-init-host does not make sense right now. Could you arrange for it to be adjusted to remove references to creating a user, unless you disagree?
| Francesco Banconi (frankban) wrote : | # |
Gary wrote:
> Could you please make a card, or a quick branch, to have handle_directories use os.path.abspath
> so we can pass directories like '.'?
Yesterday I made this change in the branch I am currently working on: I thought that being able to pass relative paths (e.g. to init-repo) is a really nice thing to have.
| Brad Crittenden (bac) wrote : | # |
Thanks Gary.
Changes being made in a different branch and merge proposal.

A run of install-lxc is currently under test in a clean precise VM.