Skip to content
Snippets Groups Projects
  1. Aug 09, 2019
  2. Nov 18, 2017
  3. Jun 14, 2016
  4. Aug 22, 2015
  5. Aug 20, 2015
  6. Aug 13, 2015
  7. May 02, 2015
  8. May 01, 2015
  9. Apr 27, 2015
  10. Apr 11, 2015
  11. Apr 10, 2015
    • Claudiu Popa's avatar
      Escape the password for WinRM certificate XML · 917fef98
      Claudiu Popa authored
      This patch escapes the password formatted into a hand-crafted
      XML for the WinRM certificate mapping. Without it, using passwords
      such as 'P@ssw&d' will make the WinRM certificate auth plugin to
      fail with a "The WS-Management service cannot process the request
      because the XML is invalid.", which is actually true, since the resulting
      XML is not valid, due to the unescaped and sign.
      
      Change-Id: Ia93ab13a4ae5783c1fed5fbb748902bda84e9b65
      Closes-Bug: #1441884
      917fef98
  12. Apr 08, 2015
    • Jenkins's avatar
    • Claudiu Popa's avatar
      Get credentials from metadata for WinRM auth plugin · affb4fec
      Claudiu Popa authored
      ConfigWinRMCertificateAuthPlugin plugin depends on SetUserPasswordPlugin
      and CreateUserPlugin in order to retrieve the credentials which will
      be used for setting up the WinRM authentication. This is not desirable,
      since ConfigWinRMCertificateAuthPlugin can't run independently
      of the other two. This patch obtains the username from the config file,
      if it is not found in the shared data dictionary and it retrieves
      the password using get_admin_password from the metadata service, if it
      is not found in the shared data dictionary.
      
      Change-Id: I587782ff9cb8989bf01f6d86dbdbd1fa6ec53d1b
      Closes-Bug: #1433174
      affb4fec
  13. Apr 06, 2015
  14. Apr 01, 2015
  15. Mar 30, 2015
  16. Mar 27, 2015
    • Claudiu Popa's avatar
      Provide more debugging info for obtaining the VFAT drive label · df70ae91
      Claudiu Popa authored
      This patch logs whatever mlabel returns. This can help us to debug
      situations where the output is actually different that what it is
      expected, which can lead to a is_vfat_drive to fail on a real
      VFAT Config Drive.
      
      Change-Id: I9fe6c19995b30335aeea2471164434b10626b004
      df70ae91
  17. Mar 26, 2015
  18. Mar 25, 2015
    • Jenkins's avatar
      54b18ca6
    • Claudiu Popa's avatar
      Improve the test coverage by a couple of percents · db69c622
      Claudiu Popa authored
      This patch adds some missing tests for a couple of edge cases.
      
      Change-Id: I3929595fddca0628269af6235bbb0fca853ae3eb
      db69c622
    • Cosmin Poieana's avatar
      Fix DHCP options querying issues · e33e9bcd
      Cosmin Poieana authored
      Sometimes, the acquired pair of host and port is stuck
      into TIME_WAIT status and for reassigning a socket on it,
      the resources must be freed, which is not immediately possible
      even after closing the socket. So a reuse address options set
      on it solves the problem.
      
      Change-Id: I1801433b93a4fcd48cd65d047719127f12f1e4e3
      e33e9bcd
    • Claudiu Popa's avatar
      Add a new cloud-config plugin for setting the timezone · b10917f9
      Claudiu Popa authored
      cloud-config supports a new plugin, called 'set-timezone', which
      can be used to change the timezone on the underlying instance.
      The patch adds a new method in the osutils abstraction, called `set_timezone`,
      which should be implemented  by each separated OS. The abstraction calls
      into cloudbaseinit.utils.windows.timezone, another layer of abstraction
      over two API methods, SetTimeZoneInformation for Windows 2003 and older
      and SetDynamicTimeZoneInformation, for newer versions of Windows,
      which also handles Daylight Saving Time.
      The plugin supports standard IANA timezone names, which are then translated
      to the Windows-specific timezone names, using tzlocal library.
      
      Change-Id: I18674e1ae078fc69f3fb938065ba01a4de5464a1
      b10917f9
  19. Mar 24, 2015
    • Claudiu Popa's avatar
      Fix the names of assert methods belonging to a mock · 0073c7b8
      Claudiu Popa authored
      Due to mock.Mock's nature, using an undefined method will not result
      in an AttributeError, since the object will be created silently. This
      changed in Python 3.5, where accessing a member which doesn't exist
      will raise an AttributeError explicitly. This uncovered a couple of bugs
      in the test suite.
      
      Change-Id: Idbfa92d82b01ff4710dfdd4556500b5c61d20db6
      0073c7b8
  20. Mar 23, 2015
    • Cosmin Poieana's avatar
      Refactor variable for processed network details · 6d69d8a8
      Cosmin Poieana authored
      * `_network_details` -> `refined_network_details`
      
      Change-Id: I7338324896987c572e26998e12d45801a6822e1b
      6d69d8a8
    • Cosmin Poieana's avatar
      Better static network configuration support · 9319d741
      Cosmin Poieana authored
      When matching metadata network interface details with
      the actual existing instance network adapters, keep
      a valid alignment between their names by using their indexes.
      This will be used if and only if the hardware address
      is missing and the trivial name matching will fail.
      
      Change-Id: I32b1efece3eb0a43432315ac6516561ef6ccbe37
      9319d741
    • Claudiu Popa's avatar
      Move remaining cloudconfigplugins test files to plugins.common · 0ccea78d
      Claudiu Popa authored
      There were some files which weren't moved in the proper location
      when the dichotomy between common and Windows-specific plugins was
      established. This patch moves the test_write_files in the proper
      location and updates the paths from the code.
      
      Change-Id: I7aa314b849eda192eedbd4988b83342bf2c1c5c0
      0ccea78d
  21. Mar 17, 2015
  22. Mar 16, 2015
    • Claudiu Popa's avatar
      Provide the error code in the Windows exception messages · 0b40f636
      Claudiu Popa authored
      This patch adds a type of exception for the Windows code, which interpolates
      the given exception message with the last Windows API error, retrieved with
      ctypes.GetLastError. This is useful in the case where we have only the log
      at our disposal for debugging and some API method failed with reasons unknown.
      Since we can't replicate what the user does everytime, having some additional
      clue why an API failed could improve our bug detection workflow.
      
      Change-Id: I364324ad5a8529b5363be3a7c6dc03ca52eb637c
      0b40f636