worker/uniter: fix upgrade handling #3105

Merged
merged 9 commits into from Aug 27, 2015
Commits on Aug 27, 2015
  1. worker/uniter: handle upgrades

    axw committed Aug 23, 2015
  2. Remove debugging

    axw committed Aug 26, 2015
  3. worker/uniter/resolver: add tests

    axw committed Aug 26, 2015
  4. more testing

    axw committed Aug 26, 2015
  5. Fix storage tests

    axw committed Aug 26, 2015
  6. Address review comments

    axw committed Aug 27, 2015
  7. worker/uniter/resolver: fix tests

    axw committed Aug 27, 2015
  8. worker/uniter: fix various resolver bugs

    axw committed Aug 27, 2015
    leadership: don't run hooks unless we're in the Continue
    state, and not Stopped. Leave queued leader-elected hooks
    to the top-level resolver.
    
    relations: don't run hooks unless we're in the Continue
    state, and not Stopped.
    
    storage: don't run hooks unless we're in the Continue
    state, and not Stopped; or if we're not yet installed,
    and there's a queued install hook. Don't issue storage-
    attached hooks for Alive but unprovisioned attachments.
    
    uniter: don't run install hook if the uniter is Dying.
    
    tests: eliminate error log message from upgrade test.
    Update TestUniterConfigChangedHook to not expect a
    config-changed after resolving a failed config-changed.