Age | Commit message (Collapse) | Author | |
---|---|---|---|
2012-09-24 | DataSourceMAAS: if a oauth request fails due to 403 try updating local time | Scott 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-09 | url_helper.py, cc_rightscale_userdata.py: reduce WARN to DEBUG | Scott 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-21 | 1. 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-20 | Massive pylint + pep8 fixups! | Joshua Harlow | |
2012-06-20 | Use comparisons instead of xrange, until python 3 when it should be more ↵ | harlowja | |
efficent | |||
2012-06-19 | Cleanup pylint warning about line length. | Joshua Harlow | |
2012-06-18 | Show the timeout (useful to see this when debugging) | Joshua Harlow | |
2012-06-18 | Adjust log message to say "open" instead of 'read' since this function can ↵ | Joshua Harlow | |
also post data... | |||
2012-06-17 | 1. 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-16 | Allow url fetching to catch any other type of exceptions that occur | Joshua Harlow | |
2012-06-16 | Capture the exceptions and just re-throw the last one on errors | Joshua Harlow | |
2012-06-15 | 1. 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-11 | Logging fixups + pylint fixups. | Joshua Harlow | |
2012-06-09 | Add copyright | Joshua Harlow | |
2012-06-08 | Cleaning this up, logic should be more sound around attempts and retries now. | Joshua Harlow | |
2012-06-07 | Add a file that just deals with url like functions | Joshua Harlow | |