lp:~chad.smith/landscape-client/avoid-metadata-pycurl-traceback

Created by Chad Smith and last modified
Get this branch:
bzr branch lp:~chad.smith/landscape-client/avoid-metadata-pycurl-traceback
Only Chad Smith can upload to this branch. If you are Chad Smith please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Chad Smith
Project:
Landscape Client
Status:
Merged

Recent revisions

728. By Chad Smith

shuffle METADATA_RETRY_MAX logic and fetch_ec2_metadata from send_computer_message and into _create_computer_message

727. By Chad Smith

fetch_cloud_meta_data -> fetch_ec2_meta_data

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

725. By Chad Smith

lints

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 fixes

Decided to drop generic error strings and instead let the error content passthrough to logs by using error.getErrorMessage(). 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

720. By Chad Smith

lints

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
This branch contains Public information 
Everyone can see this information.

Subscribers