Merge lp:~javier.collado/utah/bug1101189-2 into lp:utah
Proposed by
Javier Collado
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 806 | ||||
Proposed branch: | lp:~javier.collado/utah/bug1101189-2 | ||||
Merge into: | lp:utah | ||||
Diff against target: |
123 lines (+18/-12) 4 files modified
utah/provisioning/baremetal/bamboofeeder.py (+1/-1) utah/provisioning/baremetal/cobbler.py (+9/-8) utah/provisioning/provisioning.py (+7/-2) utah/provisioning/vm/vm.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~javier.collado/utah/bug1101189-2 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Max Brustkern (community) | Approve | ||
Review via email:
|
Description of the change
This branch is a follow up on the changes from:
lp:~javier.collado/utah/bug1095669
The previous branch updated `_cobble` method to gather cobbler logs. However, a
cobbler command was using `subprocess.
that command weren't captured.
In this branch, `_cobble` and `_runargs` methods signature is updated
to have both the return code and the output (stdout and stderr combined)
so that `_cobble` can be used for the command above.
Note that it's assumed that `cobbler system find` doesn't print anything to
stderr. This is true in my tests, but I'd like someone else to confirm that to
be 100% sure.
To post a comment you must log in.
If line 21 is changing to use _cobble, you should omit the 'sudo' 'cobbler' or else you'll have that twice. I don't see any stderr from cobbler system find.
While we're doing this, would it make any sense to separate stdout and stderr the way SSHMachine.run currently does? We could also do that later, and I think updating SSHMachine to return a dict, like you did with these methods, is a good idea.
I like the rest of it. I think your method of improving these is better than what we've got in other places right now.