Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

fleetd: introduce Replaces option in unit files #1572

Merged
merged 4 commits into from
May 30, 2016

Commits on May 30, 2016

  1. fleetd: introduce Replaces option in unit files

    Introduce a new option 'Replaces' in X-Fleet the section, to get an
    existing unit rescheduled to another machine. This option basically
    works like an existing option 'Conflicts', except that circular replaces
    in 2 units are not allowed. Also Conflicts cannot be used together with
    Replaces, global cannot be used together with Replaces.
    
    Fixes: coreos#1394
    Dongsu Park committed May 30, 2016
    Configuration menu
    Copy the full SHA
    016ac13 View commit details
    Browse the repository at this point in the history
  2. fleetd: add unit tests for Replaces option

    Introduce necessary unit tests for testing a new unit option, Replaces.
    Not only simple replaces, but also various combinations with Conflicts
    or Global should be tested.
    Dongsu Park committed May 30, 2016
    Configuration menu
    Copy the full SHA
    fc814ac View commit details
    Browse the repository at this point in the history
  3. Documentation: add a description about Replaces option

    Add a short description about a new option Replaces.
    Dongsu Park committed May 30, 2016
    Configuration menu
    Copy the full SHA
    fb6041b View commit details
    Browse the repository at this point in the history
  4. functional: a new test TestScheduleReplace

    TestScheduleReplace starts 1 unit, followed by starting another unit
    that replaces the 1st unit. Then it verifies that the 2 units are
    started on different machines.
    Also check that circular replaces result in 1 launched unit.
    Dongsu Park committed May 30, 2016
    Configuration menu
    Copy the full SHA
    b58c637 View commit details
    Browse the repository at this point in the history