1. 14 Oct, 2015 1 commit
  2. 08 Sep, 2015 2 commits
    • Scott Moser's avatar
      power_state: support 'condition' argument · ba3e59cb
      Scott Moser authored
        if 'condition' is provided to config in power_state, then
        consult it before powering off.
        This allows the user to shut down only if a condition is met, and
        leave the system in a debuggable state otherwise.
        An example is as simple as:
           mode: poweroff
           condition: ['sh', '-c', '[ -f /disable-poweroff ]']
    • Scott Moser's avatar
      NoCloud: fix consumption of vendor-data · 3c39c3f7
      Scott Moser authored
      the content of vendordata was was being assigned to vendordata, 
      rather than vendordata_raw.  The result was that it is not processed
      for includes or part handlers or other things as it is in other
      LP: #1493453
  3. 02 Sep, 2015 1 commit
  4. 31 Aug, 2015 2 commits
    • Scott Moser's avatar
      events: add timestamp and origin, support file posting · 7820a43b
      Scott Moser authored
      This adds 'timestamp' and 'origin' to events.
      The timestamp is simply that, a floating point timestamp of when
      the event occurred.
      The origin indicates the source / reporter of this.  It is useful
      to have a single endpoint with multiple different things reporting
      to it.  For example, MAAS will configure cloud-init and curtin
      to report to the same endpoint and then it can differenciate who
      made the post.  Admittedly, they could use multiple endpoints, but
      this this seems sane.
      Also, add support for posting files at the close of an event.
      This is utilized in curtin to post a log file when the install is
      done.  files are posted on success or fail of the event.
    • Scott Moser's avatar
      split 'events' portion of reporting into separate file · 50bcb0f7
      Scott Moser authored
      this just separates events from other things that could conceivably
      be reported.
  5. 07 Aug, 2015 2 commits
  6. 06 Aug, 2015 1 commit
  7. 05 Aug, 2015 2 commits
  8. 02 Aug, 2015 1 commit
    • Scott Moser's avatar
      fix tests from sync · 89c564a6
      Scott Moser authored
      change ReportStack to ReportEventStack
      change default ReportEventStack to be status.SUCCESS instead of None
  9. 30 Jul, 2015 1 commit
  10. 28 Jul, 2015 7 commits
  11. 27 Jul, 2015 1 commit
  12. 24 Jul, 2015 1 commit
  13. 22 Jul, 2015 1 commit
  14. 21 Jul, 2015 4 commits
    • Scott Moser's avatar
      fix 'make pyflakes' · b5230bc3
      Scott Moser authored
    • Scott Moser's avatar
      tests: fix TestHandlerHandlePart tests · 0db6078c
      Scott Moser authored
      these tests were previously passing, but doing so erroneously.
      I believe that an update to mock caused them to start failing.
      I've updated the tests now.  The simple change is
      replacing 'assert_called_with_once' with 'assert_called_once_with'.
      The second set of changes is seemingly a correction of the following tests
       test_normal_version_2 : was not expecting to get frequency passed into
          handle_part, but should have been.
       test_no_handle_when_modfreq_once: was expecting to have handle_part
          called even though the test implies otherwise.
       test_exception_is_caught: this test just looked broken.
          Now, we're testing that the part handler is called and that no
          exception is raised past handle_part
    • Daniel Watkins's avatar
      Use /dev/disk devices for Azure ephemeral disk. · 9461b123
      Daniel Watkins authored
      The ephemeral disk will not necessarily be assigned the same name at
      each boot (LP: #1411582), so we use some udev rules to ensure we always
      get the right one.
    • Daniel Watkins's avatar
  15. 06 Jul, 2015 2 commits
  16. 16 Jun, 2015 1 commit
  17. 03 Jun, 2015 2 commits
    • Lars Kellogg-Stedman's avatar
      add tests for systemd detection · 8db399f9
      Lars Kellogg-Stedman authored
      This adds the following tests in test_distros.test_generic:
      - test_systemd_in_use
        Test the situation in which /run/systemd/system exists.
      - test_systemd_not_in_use
        Test the situation in which /run/systemd/system does not exists.
      - test_systemd_symlink
        This tests the situation in which /run/systemd/system exists but is a
        *symlink* to a directory, which according to sd_booted() should return
    • Lars Kellogg-Stedman's avatar
      transform paths in functions taking more than a single argument · 2a955375
      Lars Kellogg-Stedman authored
      Patch FilesystemMockingTestcase.patchOS to support methods taking more
      than a single path argument.  This is required in order to properly mock
      `os.symlink`, which takes two path arguments.
  18. 29 May, 2015 1 commit
  19. 27 May, 2015 1 commit
  20. 22 May, 2015 1 commit
  21. 21 May, 2015 1 commit
    • Brent Baude's avatar
      This commit consists of three things based on feedback from smosher: · cf2b017c
      Brent Baude authored
      cc_rh_subscription: Use of self.log.info limited, uses the util.subp for subprocesses, removed full path for subscription-manager
      cloud-config-rh_subscription.txt: A heavily commented example file on how to use rh_subscription and its main keys
      test_rh_subscription.py: a set of unittests for rh_subscription
  22. 15 May, 2015 2 commits
  23. 14 May, 2015 1 commit
    • Scott Moser's avatar
      read_seeded: fix reed_seeded after regression · 74023961
      Scott Moser authored
      read_seeded was assuming a Response object back from load_tfile_or_url
      but load_tfile_or_url was returning string.
      since the only other user of this was a test, move load_tfile_or_url to
      a test, and just do the right thing in read_seeded.
      LP: #1455233
  24. 08 May, 2015 1 commit