Merge lp:~javier.collado/utah/bug1050976 into lp:utah
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Javier Collado | ||||
Approved revision: | 710 | ||||
Merged at revision: | 707 | ||||
Proposed branch: | lp:~javier.collado/utah/bug1050976 | ||||
Merge into: | lp:utah | ||||
Diff against target: |
90 lines (+20/-18) 4 files modified
utah/config.py (+3/-2) utah/provisioning/provisioning.py (+14/-10) utah/provisioning/vm/libvirtvm.py (+1/-1) utah/run.py (+2/-5) |
||||
To merge this branch: | bzr merge lp:~javier.collado/utah/bug1050976 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Max Brustkern (community) | Approve | ||
Javier Collado (community) | Needs Resubmitting | ||
Review via email:
|
Description of the change
This branch moves the "apt-get install" commands in the late command to etc/rc.local
This is to workaround the networking problems when executing the late command since
"apt-get install" and "apt-install" don't seem to be working.
In addition to this, this branch:
- removes the hardcoded ssh timeout of 3 seconds (config.
- changes bootimeout and checktimeout values in config to some values that work for me
- removes the check for the utah client return code
Regarding the update to the timeout values in the configuration, I think that boottimeout
is being used for multiple things at the same time. One problem I had with the old values
once the hardcoded ssh timeout was removed, was that if checktimeout was greater than
boottimeout, no more retry attempts were made. Hence, in the new values boottimeout (90)
is greater than checktimeout (15). I'm not sure if this might have an effect on some other
use cases, but I've tested this with 64bit desktop precise and quantal images and worked fine
(with the old values I got ssh timeout).
Regarding the utah client return code. The server was not writing the yaml file because the client
returns a failure code when some test case failed. To really fix this, it should be clear
which codes returns the client on a test case failure and on an internal failure. In the meantime
is preferable to write whatever the client prints to stdout to a yaml file.
One thing that concerns me is that I think that the "apt-get install" commands in the late command install
the packages from the image itself (is that correct?), but after the move to /etc/rc.local, they need
a network connection to work fine, so this change will break the scenarios without network connection.