lp:~chad.smith/landscape-client/avoid-metadata-pycurl-traceback
- Get this branch:
- bzr branch lp:~chad.smith/landscape-client/avoid-metadata-pycurl-traceback
Branch merges
- Chris Glass (community): Approve
- Free Ekanayaka (community): Approve
-
Diff: 446 lines (+258/-92)4 files modifiedlandscape/lib/cloud.py (+45/-0)
landscape/lib/tests/test_cloud.py (+107/-0)
landscape/monitor/computerinfo.py (+28/-51)
landscape/monitor/tests/test_computerinfo.py (+78/-41)
Related bugs
Bug #1216689: Monitor logs full of cloud meta-data connection errors | Low | Fix Released |
Related blueprints
Branch information
Recent revisions
- 728. By Chad Smith
-
shuffle METADATA_RETRY_MAX logic and fetch_ec2_metadata from send_computer_
message and into _create_ computer_ message - 726. By Chad Smith
-
address free's remaining comments:
- fetch_ec2_item made private
- METADATA_RETRY_MAX moved from lib/cloud into computerinfo.py
- drop retry logging message and handle all logging on computerinfo
- metadata query failure is not a real failure, just info message for non-cloud computers - 724. By Chad Smith
-
shuffle ec2 metadata calls out into their own library landscape/lib/cloud and associated unit tests. clean up excess add_query_results from test_computerinfo which are already handled by setUp.
- 723. By Chad Smith
-
handle review comments:
- use 3 retries for all error types (don't bail on 1st PyCurl error)
- lint fixesDecided to drop generic error strings and instead let the error content passthrough to logs by using error.getErrorM
essage( ). This cleans PyCurl stack trace error messages. - 722. By Chad Smith
-
one more test to assert fetch_cloud_
meta_data is not called when _check_cloud = False - 721. By Chad Smith
-
set _check_cloud to False when we have valid cloud data to prevent unneeded additional queries on next message exchange
- 719. By Chad Smith
-
- reduce amount of logging noise during EC2 metadata queries on client
- avoid printing pycurl tracebacks for "couldn't connect to host" messages
- add a metadata retry of 3 in case of spurious EC2 404s
- unit tests
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~landscape/landscape-client/trunk