Merge lp:~javier.collado/utah/bug1037056 into lp:utah
Status: | Merged |
---|---|
Merged at revision: | 639 |
Proposed branch: | lp:~javier.collado/utah/bug1037056 |
Merge into: | lp:utah |
Diff against target: |
112 lines (+26/-15) 3 files modified
utah/provisioning/baremetal/cobbler.py (+3/-3) utah/provisioning/provisioning.py (+21/-10) utah/run.py (+2/-2) |
To merge this branch: | bzr merge lp:~javier.collado/utah/bug1037056 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Max Brustkern (community) | Approve | ||
Review via email: mp+119861@code.launchpad.net |
Description of the change
- Updated Machine.run and SSHMixin.run to return (returncode, stdout, stderr) instead of just returncode.
- Added parsing of stderr output from gdebi to be able to detect a postinstall script failure
- Code will exit if that happens
After testing the code the output when a postinstall script error happens is:
INFO: Uploading /usr/share/
INFO: Running command through SSH: DEBIAN_
Exception: Failed to install client
The only thing that I don't really like yet is that the exception text is not written to the log file. I think that aside from the logger object in the machine we should have another logger object for the cases in which the machine might not exist so that every error message is written to the logs. Let me know if you agree and I'll open a bug for that.
I think that's a good idea. More logging at this point is almost always going to be helpful.