1. 26 Aug, 2014 1 commit
  2. 13 Feb, 2014 1 commit
    • Scott Moser's avatar
      wait less for the metadata service (by default) · 87d0fa86
      Scott Moser authored
      Waiting around for a metadata service in a given datasource means that if its
      not there all the subsequent datasources have to wait, and boot is slowed down.
      
      As it is right now, EC2 is the only one that has the right to wait.  In the
      past, we had to wait around for the EC2 metadata service.  I really do not want
      to extend that courtesy to other cloud platforms.  A network based metadata
      service should be up as soon as networking is up.
      87d0fa86
  3. 08 Feb, 2014 3 commits
  4. 02 Feb, 2014 1 commit
    • Joshua Harlow's avatar
      Add a openstack specific datasource · c104d6df
      Joshua Harlow authored
      Openstack has a unique derivative datasource
      that is gaining usage. Previously the config
      drive datasource provided part of this functionality
      as well as the ec2 datasource, but since new
      functionality is being added to openstack is
      seems benefical to combine the used parts into
      one datasource just made for handling openstack
      deployments.
      
      This patch factors out the common logic shared
      between the config drive and the openstack
      metadata datasource and places that in a shared
      helper file and then creates a new openstack
      datasource that readers from the openstack metadata
      service and refactors the config drive datasource
      to use this common logic.
      c104d6df
  5. 25 Jan, 2014 1 commit
  6. 24 Jan, 2014 1 commit
  7. 23 Jan, 2014 1 commit
    • Joshua Harlow's avatar
      Skip retry and continued fetch of userdata when NOT_FOUND · ba84f51f
      Joshua Harlow authored
      When a 404 http code comes back from the fetching of ec2
      data, instead of retrying immediatly stop the fetching process
      and in the userdata fetching function handle this case as a
      special case of no userdata being fetched (an empty string
      in this case).
      ba84f51f
  8. 03 May, 2013 1 commit
  9. 25 Apr, 2013 1 commit
  10. 19 Mar, 2013 3 commits
    • Scott Moser's avatar
      set 'allow_redirects' to True by default · 92b23e3d
      Scott Moser authored
      the previous implementation of url_helper.readurl() would default
      to allow_redirects being true.
      
      So, for backwards compat, we should keep that behavior.
      92b23e3d
    • Scott Moser's avatar
      do not bother retrying on ssl errors · fc77e3f4
      Scott Moser authored
      if the error is an ssl error, its extremely unlikely that it would be fixed by
      waiting a few seconds and trying again.
      fc77e3f4
    • Scott Moser's avatar
      appease pylint and pep8 · 8fbe9382
      Scott Moser authored
      * cloudinit/distros/parsers/resolv_conf.py
        added some pylint overrides with 'plXXXXX' syntax.
        example:  # pl51222 pylint: disable=E0102
      
        The pl51222 there means: http://www.logilab.org/ticket/51222
      
        This specific issue is present in 12.04 pylint, but not 13.04.
      
      * pylint doesn't like the requests special handling we have.
        which makes sense as it is only checking versus one specific version.
      * general pep8  and pylint cleanups.
      8fbe9382
  11. 14 Mar, 2013 2 commits
  12. 24 Feb, 2013 2 commits
  13. 20 Feb, 2013 1 commit
  14. 22 Oct, 2012 3 commits
  15. 19 Oct, 2012 1 commit
    • Joshua Harlow's avatar
      Remove the need for boto just for fetching the · 7c9bbbc9
      Joshua Harlow authored
      userdata and metadata. Add in this crawling functionality
      to the ec2_utils module that will fully crawl (not lazily)
      the ec2 metadata and parse it in the same manner as boto.
      
      1. Make the ec2 datasource + cloudstack now call into these.
      2. Fix phone_home due to urllib3 change (TBD)
      7c9bbbc9
  16. 18 Oct, 2012 1 commit
    • Joshua Harlow's avatar
      Start fixing how boto and our url fetching can not · 914c6e86
      Joshua Harlow authored
      use ssl correctly (they can not do validation due to 
      the underlying usage of urllib/httplib). Adjust to
      use urllib3 which can in cloud-init url fetching. For
      now also take the metadata/userdata extraction code
      from boto (small amount) and fix it in a new local file  
      called 'ec2_utils'.
      914c6e86
  17. 24 Sep, 2012 1 commit
    • Scott Moser's avatar
      DataSourceMAAS: if a oauth request fails due to 403 try updating local time · 70cc7536
      Scott Moser authored
      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
      70cc7536
  18. 09 Jul, 2012 1 commit
  19. 21 Jun, 2012 2 commits
  20. 20 Jun, 2012 1 commit
  21. 19 Jun, 2012 3 commits
  22. 18 Jun, 2012 1 commit
  23. 17 Jun, 2012 2 commits
  24. 16 Jun, 2012 1 commit
  25. 12 Jun, 2012 1 commit
  26. 09 Jun, 2012 2 commits
  27. 07 Jun, 2012 1 commit