Skip to content

mm 0.1.5

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 17:44
33abb05

Remote protocol: 1. Every change in this release is additive: mm 0.1.5
works with hosts on 0.1.2 through 0.1.4, and hosts on 0.1.5 keep serving
mm 0.1.2 through 0.1.4. The new commands that run on a host
(mm service recreate, pausing a remote environment) need mmd 0.1.5 there;
an older mmd refuses them and names mm target setup plan --upgrade.

Added

  • environments: on a schedule runs it in only some of its job's
    environments; mm config validate refuses a name the job does not run in.
  • mm target nodes and mm doctor warn when a node's root filesystem, mm's
    state, its commit trees, or the engine's image store is nearly full
    (MM_NODE_DISK_NEARLY_FULL, MM_NODE_DISK_FULL).
  • mm service recreate SERVICE replaces a service's containers with new ones
    from the deployed configuration without a deployment, keeping volumes: for a
    container a restart does not fix and a deployment leaves alone. On a cluster
    it goes one node at a time. Also in the terminal UI (R) and over MCP
    (mm_service_recreate_plan, mm_service_recreate_apply). Hosts need mmd
    0.1.5; an older one says to upgrade it.
  • mm job schedule disable and enable pause and resume a schedule on a
    remote environment, through mmd on the host that keeps it, at the
    operate level. The pause stays until the schedule is enabled again or a
    deployment changes its definition, and mm job schedule list (now also on
    remote environments) shows who paused it and when. Hosts need mmd 0.1.5;
    older ones refuse with mm target setup plan --upgrade.

Changed

  • A schedule paused or resumed by hand stays so through mm job schedule reconcile and deployments that leave its definition alone; they used to
    undo it.

Fixed

  • A node whose mmd restarted during a rollout step can be rolled back.
    The rollback used to fail with "environment bundle already exists for
    operation", leaving the rollout running and unfinished. Now the rollback,
    or the next deployment when no rollback came, replaces the files the
    interrupted step left.
  • A job whose environments: leaves out an environment no longer fails that
    environment's plan with "a schedule references a job fixed to a different
    environment"; the environment has neither the job nor its schedules.
  • mm env set stages a variable on a cluster whose nodes run different
    services: the nodes that run a service reading it take it, and the others
    no longer refuse the change. Nodes on this mmd keep the value too, so a
    service placed on them later reads it at that deployment; nodes on mmd
    0.1.4 or older are left out and named (#96).
  • mmd no longer keeps every deployed commit's tree under /srv/mm/projects
    until the disk fills. After each deployment and when it starts, it removes
    the trees no deployment, plan, or container needs, keeping the three most
    recent; keep-commits in /etc/mm/host.yaml changes that.
  • A host whose disk is full still answers reads (status, logs, nodes, doctor,
    MCP reads) when mmd cannot write its request journal or audit log.
  • mm target setup on a Podman host no longer fails when
    podman-restart.service cannot start one of the host's existing
    containers. Setup goes on and prints a warning naming each container
    Podman could not start and why, also under warnings in --format json.
  • Staging a secret or variable on a cluster node no longer fails with
    MM_HOST_BUSY while mmd restarts an unhealthy container or scales a
    service; it still waits for a deployment.
  • A node's restarts of a container that stays unhealthy back off (after,
    doubled after each restart, at most 30 minutes) and stop after
    max-restarts restarts in a row with MM_SERVICE_RESTART_LIMIT, even when
    they are spread wider than window.
  • A cluster rollout no longer waits until its deadline when an ingress node's
    proxy container is gone. mmd checks that the proxy and tunnel connector
    containers run, and starts them again when they do not. When that fails,
    the step stops with MM_INGRESS_PROXY_DOWN, which names the node, and the
    containers it was taking out get requests again. mm doctor reports the
    same problem.
  • A deployment creates again the containers of a service that run under
    another AppArmor profile than new ones get on the host, such as a profile
    an administrator had set before mm target setup, and the plan says so.
    Such containers failed to start after a reboot once the old profile was
    gone. mm doctor reports containers whose profile the kernel has not
    loaded (MM_APPARMOR_PROFILE).