Merge lp://staging/~jkakar/landscape-client/silence-repeating-eucaconf-errors into lp://staging/~landscape/landscape-client/trunk
Proposed by
Jamu Kakar
Status: | Merged |
---|---|
Approved by: | Thomas Herve |
Approved revision: | 253 |
Merged at revision: | 251 |
Proposed branch: | lp://staging/~jkakar/landscape-client/silence-repeating-eucaconf-errors |
Merge into: | lp://staging/~landscape/landscape-client/trunk |
Diff against target: |
93 lines (+34/-3) 2 files modified
landscape/manager/eucalyptus.py (+6/-1) landscape/manager/tests/test_eucalyptus.py (+28/-2) |
To merge this branch: | bzr merge lp://staging/~jkakar/landscape-client/silence-repeating-eucaconf-errors |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thomas Herve (community) | Approve | ||
Free Ekanayaka (community) | Approve | ||
Review via email: mp+26536@code.staging.launchpad.net |
Description of the change
This branch introduces the following changes:
- If an error occurs when the Eucalyptus plugin runs, the plugin is
disabled. This will prevent it from queueing tons of error
messages to send to the server, and also from filling the client
log with repeated error messages.
To post a comment you must log in.
[1]
It's not related to this branch but I think that the "data_path =" assignment should be taken out of the try block here:
try:
data_ path = self.registry. config. data_path
service_ hub = self._service_ hub_factory( data_path)
[2]
+ self.enabled = False
I'm a bit concerned that this could catch some false positive, meaning that a random temporary failure in processing the GetEucaInfo task.