summaryrefslogtreecommitdiff
path: root/cloudinit/url_helper.py
AgeCommit message (Collapse)Author
2012-09-24DataSourceMAAS: if a oauth request fails due to 403 try updating local timeScott Moser
In the event of a 403 (Unauthorized) in oauth, try set a 'oauth_clockskew' variable. In future headers, use a time created by 'time.time() + self.oauth_clockskew'. The idea here is that if the local time is bad (or even if the server time is bad) we will essentially use something that should be similar to the remote clock. This fixes LP: #978127. LP: #978127
2012-07-09url_helper.py, cc_rightscale_userdata.py: reduce WARN to DEBUGScott Moser
cc_rightscale_userdata.py is likely to not be found, so its WARN was annoying in that it got to console output. The same is true of url_helper. Not all uses of readurl were fatal or justified to warn if the content was not there.
2012-06-211. Move all info() logging methods to debug() harlowja
2. Adjust comment on sources list from depends 3. For the /etc/timezone 'writing', add a header that says created by cloud-init
2012-06-20Massive pylint + pep8 fixups!Joshua Harlow
2012-06-20Use comparisons instead of xrange, until python 3 when it should be more ↵harlowja
efficent
2012-06-19Cleanup pylint warning about line length.Joshua Harlow
2012-06-18Show the timeout (useful to see this when debugging)Joshua Harlow
2012-06-18Adjust log message to say "open" instead of 'read' since this function can ↵Joshua Harlow
also post data...
2012-06-171. Add a url response class that urlreading now returns (instead of a tuple). harlowja
a. This allows for more properties to be added as needed in the future, instead of being very restrictive. 2. Fix up all uses of the url reading to now use this new response object. 3. Also fixup user data including, such that if no response actual occurs the url content is not further processed.
2012-06-16Allow url fetching to catch any other type of exceptions that occurJoshua Harlow
2012-06-16Capture the exceptions and just re-throw the last one on errorsJoshua Harlow
2012-06-151. Modify the check http code function to allow or not allow redirect status ↵Joshua Harlow
from being valid codes. 2. Log how much we will sleep for 3. If not headers are provided, add a set which will have a cloud init user agent + version
2012-06-11Logging fixups + pylint fixups.Joshua Harlow
2012-06-09Add copyrightJoshua Harlow
2012-06-08Cleaning this up, logic should be more sound around attempts and retries now.Joshua Harlow
2012-06-07Add a file that just deals with url like functionsJoshua Harlow