Merge lp:~benji/lpsetup/add-hostinit into lp:lpsetup
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 31 | ||||
Proposed branch: | lp:~benji/lpsetup/add-hostinit | ||||
Merge into: | lp:lpsetup | ||||
Diff against target: | 0 lines | ||||
To merge this branch: | bzr merge lp:~benji/lpsetup/add-hostinit | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francesco Banconi (community) | Approve | ||
Gary Poster (community) | Approve | ||
Review via email: mp+111429@code.launchpad.net |
Commit message
move much of the code out of the "initialize" subcommand into an "inithost" subcommand per the lpsetup LEP
Description of the change
This branch moves much of the code out of the "initialize" subcommand
into an "inithost" subcommand per the lpsetup LEP.
The subcommand name "hostinit" was chosen as it better communicates the
function of the command but can be easily changed to the name used in
the LEP ("init") if desired.
The initialize command was refactored as a subclass of inithost that
reuses the inithost steps and adds steps. It is expected that the
remaining code included in the initialize command will eventually be
moved into another command still and only a small backward-compatible
subcommand will be left. That subcommand will be removed when the need
for backward compatibility goes away.
The existing tests continue to pass, but few of them exercised the
initialize command. Manual testing suggests that the new and
pre-existing commands continue to function.
Looks good, Benji.
As you've mentioned, the subcommands do not have a testing story, and the longer we wait the worse it will be. I'll request that we tackle that next.
Similarly, we need to consider how we upgrade existing installations when we learn that some new configuration or workaround is necessary. I think that primarily affects inithost and initlxc, so it can be a separate step. I'd feel more assured if we had a plan for that now, though, I must admit.
Thank you!