Skip to content

v3.11.0

Latest

Choose a tag to compare

@yyyyyyyan yyyyyyyan released this 26 Nov 14:09
· 12 commits to main since this release

3.11.0 is the percona/pmm-extensions side-car for PMM 3.11.0. MySQL restores now apply the full incremental chain and report a failed restore as failed, MongoDB Operations checks a node before it installs anything, and the side-car starts cleanly when PMM is not ready yet. It also narrows what PMM's internal token may do and locks the image's code against change at runtime.

Image: percona/pmm-extensions:3.11.0 (also :3.11, :3, :latest)

Try it

With Docker, from PMM's own docker-compose.yml:

git clone --depth 1 https://github.com/percona/pmm.git && cd pmm
cp .env.example .env
printf 'PMM_ENABLE_EXTENSIONS=1\nPMM_ENABLE_NOMAD=1\n' >> .env
docker compose --profile pmm --profile extensions pull
docker compose --profile pmm --profile extensions up -d

Then open https://localhost and sign in as admin / admin. If the last command stops because pmm-server is not healthy yet, run it again.

Highlights

💾 MySQL Backups and Restores

Restores you can rely on: the whole incremental chain is applied, and a failure reads as one.

  • SEP-2180 — XtraBackup restores from S3, GCS, local and SSH sources apply the incremental chain, not only the full backup.
  • SEP-2184 — A failed XtraBackup or binlog restore ends the task as failed, so its failure alert fires.
  • SEP-2187 — A backup on a host whose disk is over 80% full records its location and size, so the Restore form lists it.
  • SEP-2169 — Restore my.cnf writes each config file back to where it was captured, and XtraBackup uploads to S3 no longer fail.
  • SEP-2188 — The Restores form says that an XtraBackup restore stops MySQL on the host, and what the port is for.

🍃 MongoDB Operations

An install is checked before anything on the node changes, and scans keep running through restarts.

  • PMM-15797 — MongoDB installs only onto OS releases Percona supports for the chosen version; anything else fails its pre-check first.
  • PMM-15796 — The pre-check also refuses a node that cannot resolve every replica set member, or an Ubuntu node without curl.
  • PMM-15860 — "Automatic node scans" turns off every scan the app starts on its own; scans started on request still run.
  • PMM-15775 — Restarting PMM or PMM Extensions during a scan no longer blocks every scan for 4 hours.
  • PMM-15880 — An arbiter no longer fails every inventory scan with "Database authentication failed".

📦 The side-car

It starts in any order next to PMM and keeps its scheduled work going while PMM restarts.

  • SEP-2185 — Started before PMM is ready, as a plain depends_on does, the side-car waits for PMM instead of exiting.
  • SEP-2197 — A first start no longer exits when PMM's PostgreSQL takes more than 60 seconds to answer.
  • PMM-15831 — Scheduled tasks keep running while PMM Server restarts.
  • SEP-2142 — The image runs Python 3.14; scripts sent to executor hosts still run on Python 3.9 and later.

🔐 Security

Less that a leaked credential or a compromised process can reach.

  • PMM-15861 — PMM's internal token is admitted only on the writes background work makes; a leaked token can no longer delete hosts or start installs.
  • SEP-2192 — The image's start scripts, settings and code can no longer be changed by the user the side-car runs as.
  • SEP-1962 — A diagnostics delivery step can no longer send its request and credentials to a host other than the plan's endpoint.
  • SEP-2109 — The settings admin no longer shows the PMM password inside the PMM frontend URL.
  • SEP-2064 — Grafana sign-in traffic and PagerDuty alert events no longer log the tokens and keys in their bodies.
  • The published v3.11.0 image passes a HIGH/CRITICAL Trivy scan; the nine advisories it suppresses are each documented as not affecting PMM Extensions. (scan report)

Good to know

  • PMM-15698 — Run it with PMM Server 3.11.0. An older PMM Server cannot switch MongoDB Operations on or off, or change its settings, against this release.
  • PMM-15861 — With an older PMM Server, deleting an Operations host or service and starting an install from PMM fail until PMM Server is upgraded to 3.11.0.
  • SEP-2189 — Scripts calling the task APIs directly now get HTTP 422 for a field the call does not declare; PMM's UI is not affected.
  • SEP-2110 — MongoDB Operations refuses probe-timing settings that contradict each other; check them before upgrading if you changed them.
  • SEP-2183 — Coming from standalone v0.13.1, scripts/migrate_standalone_schedules.py recreates your MySQL backup schedules, paused.

Every change in PMM, by area

All 50 CHANGELOG entries that affect PMM Extensions inside PMM, breaking and configuration changes first in each area. Each shows its first sentence; the ticket and the CHANGELOG have the rest.

The side-car (6)

Configuration

  • SEP-2185 — EXTENSIONS_GRAFANA_MINT_TIMEOUT is no longer read.
  • SEP-2197 — EXTENSIONS_ENCRYPTION_PROBE_TIMEOUT is no longer read.

Changed

  • SEP-2142 — The side-car image now runs Python 3.14 instead of 3.11; the change reaches an installation when its side-car image is upgraded.

Fixed

  • PMM-15831 — Celery beat no longer exits when its database stops answering, for example while PMM Server restarts: it logs the error, keeps sending tasks on the schedule it already has, and picks up schedule changes once the database is back.
  • SEP-2185 — The side-car now starts correctly when its container starts before PMM is ready, which is what a Compose file with a plain depends_on: pmm-server produces.
  • SEP-2197 — A first start of the sidecar no longer exits when PMM's PostgreSQL does not answer within 60 seconds.
Support diagnostics (6)

Breaking

  • SEP-1962 — A DIAGNOSTICS_DELIVERY plan whose resolution or upload step path carries a scheme or host, or whose step path of any kind resolves to another host or scheme through its . or .. segments, is now rejected when settings load, so PMM Extensions refuses to start, naming the step kind and its path field.
  • SEP-1984 — A DIAGNOSTICS_DELIVERY plan carrying a key that its plan, step or value does not declare is now rejected when settings load, so PMM Extensions refuses to start and names the key and where it sits in the plan.

Changed

  • SEP-1959 — Support diagnostics no longer shows its setup screen to an administrator when diagnostics delivery is already usable, for example when the delivery plan's credentials come from settings.yaml or the environment rather than a DIAGNOSTICS_DELIVERY_INPUTS override saved through Settings.

Fixed

  • SEP-1958 — Pushing alert templates and running a batch of ATW snippets no longer fail with a 500 when an upstream service answers with a structured error body; each affected item now reports the upstream error as text.

Security

  • SEP-1962 — A diagnostics delivery plan resolution step or upload step whose path carried a scheme or host, such as https://other-host/x or //other-host/x, sent the request and the credentials in its headers to that host instead of the plan's endpoint.
  • SEP-1984 — A settings-load error for ExtensionsSettings, including one in the DIAGNOSTICS_DELIVERY plan, and a delivery plan that fails to rebuild from its runtime inputs no longer print the submitted value, so a credential under a misspelled or misplaced key, or inside a malformed URL, stays out of the startup output and the logs.
MySQL Backups and Restores (9)

Breaking

  • SEP-2189 — The task create and update calls now answer HTTP 422 for a request body that holds a key the call does not declare, and create or change nothing; the error names the key.

Added

  • SEP-2183 — A script, scripts/migrate_standalone_schedules.py, recreates the MySQL backup schedules of a standalone v0.13.1 instance in PMM Extensions, and docs/how-to/migrate-from-standalone-sep.md gives the steps.

Changed

  • SEP-2188 — The MySQL Restores form now says that an XtraBackup restore stops MySQL on the execution host, which command it runs to do so, and that MySQL stays stopped if the restore fails after the stop.

Fixed

  • SEP-2164 — A failed my.cnf or TLS certs copy after a successful localhost XtraBackup is logged as a warning, no longer aborts the run before post-run encryption or upload, and finishes the run as a warning rather than OK so operators can see the missing artifacts.
  • SEP-2169 — MySQL Restores: an XtraBackup restore with Restore my.cnf now writes each config file back to the path it was captured from, including paths that contain an underscore, instead of failing with "no destination encoded".
  • SEP-2169 — MySQL Backups: an XtraBackup backup with S3 upload no longer fails at the upload step with "unsupported operand type(s) for /".
  • SEP-2180 — XtraBackup restores now apply the incremental chain: S3 (s3cmd and awscli) and GCS sources no longer restore only the full backup, local and SSH sources no longer fail with a TypeError when incrementals exist, and picking an incremental run as the source restores the full backup plus the chain up to that run.
  • SEP-2184 — A MySQL Restores task now ends failed when an XtraBackup or binlog restore failed for its host; it used to end success, with the failure only in the run output.
  • SEP-2187 — A MySQL backup on a host whose Nomad data directory is on a disk more than 80% full now records its location and size, so the Restore form lists it.
MongoDB Operations (11)

Breaking

  • PMM-15698 — The Operations Inventory app no longer serves PATCH /api/apps/om_inventory/config or DELETE /api/apps/om_inventory/config/{key}: an admin changes its settings through /api/extensions/admin/settings/OmInventorySettings, and PMM sets ENABLED through the new PUT /api/apps/om_inventory/enabled, which only PMM's service token may call.
  • PMM-15698 — Starting an Operations Inventory scan through POST /api/apps/om_inventory/runs now requires an admin; an editor gets 403.
  • SEP-2110 — Operations for MongoDB now refuses probe-timing settings that contradict each other: POLL_INTERVAL must not exceed TASK_TIMEOUT, and STALE_RUN_AFTER must exceed TASK_TIMEOUT in whole seconds, so a margin under one second is refused.

Configuration

  • PMM-15698 — EXTENSIONS__AMBIENT_SESSION_SSO_ENABLED must stay on in a PMM deployment: PMM's Operations for MongoDB now signs PMM users in to PMM Extensions through /api/oauth/session/exchange, which answers 401 while it is off.

Added

  • PMM-15860 — Operations Inventory has a new AUTO_SCAN setting (OmInventorySettings.AUTO_SCAN, on by default): turning it off stops every sweep the app starts on its own, on its schedule and when PMM switches Operations on or restarts, while scans started on request keep running.

Changed

  • PMM-15796 — The Operations install pre-check now also refuses a node that cannot resolve the host name of every member of the replica set, including its own, to an IPv4 address, and an Ubuntu node without curl.
  • PMM-15796 — GET /api/apps/om_bootstrap/runs accepts replica_set_name, returning only the runs that create that replica set.
  • PMM-15797 — Operations installs MongoDB only onto OS releases Percona supports for the chosen version: MongoDB 7.0 onto Ubuntu 22.04 and 24.04 and Rocky Linux 8 and 9, and MongoDB 8.0 onto those and Rocky Linux 10.

Fixed

  • PMM-15775 — A restart of PMM Extensions or of PMM Server during an Operations inventory scan no longer blocks every scan for 4 hours: once the interrupted scan has gone 2 minutes without reporting (15 if the scan had not started yet), the next scan records it as failed and runs.
  • PMM-15880 — An arbiter added to PMM no longer fails every Operations inventory scan with "Database authentication failed" when its host has a .mongodb_uri with credentials.
  • SEP-2175 — Two admins saving related Operations for MongoDB probe-timing settings (POLL_INTERVAL, TASK_TIMEOUT, STALE_RUN_AFTER) at the same moment no longer both get a success while neither change takes effect.
Inventory from PMM (1)

Fixed

  • SEP-1898 — Limit inventory sync status history to inventory-wide runs.
Runs and logs (8)

Added

  • SEP-223 — Added a list form for meta.requirements on task executions: "requirements": ["PyMySQL", "filelock"] is accepted alongside the newline-separated string that run-python installs, and is joined into that string before the run is stored and dispatched.

Changed

  • SEP-2156 — A running task whose Celery sync fails, for example while Nomad is unreachable, now releases its sync lock, so the next sweep retries it instead of waiting for SYNC_LOCK_TTL to expire.

Fixed

  • SEP-1879 — An inventory sync, a scheduled health report, an Operations Inventory sweep or an ATW send, reconcile or proxy-task resolution no longer fails part-way when an endpoint, credential or SSL setting changes while it runs.
  • SEP-1960 — A healthy Celery worker cold start no longer logs a settings-override seed-budget error: each worker resolves its settings once before starting its child processes, so the children's initial override read finishes within its budget.
  • SEP-2177 — After Nomad deletes an older rotated log file, a viewer of a running task's live log no longer receives output twice, or misses retained output, when it joins or falls behind, or when the log follow it shares with other viewers reconnects to Nomad.
  • SEP-2186 — Creating a schedule that a task already has, or renaming a schedule to a name another schedule has, now answers HTTP 409 when the schedule store is PostgreSQL, as it already did on SQLite.
  • SEP-2191 — Saving a schedule or a snippet that the database rejects for a reason other than a duplicate now answers HTTP 400 as intended.
  • SEP-2196 — Creating or renaming a schedule with a name longer than 255 characters now answers HTTP 422 naming the field, before anything is written.
Access and security (6)

Breaking

  • PMM-15861 — A caller using EXTENSIONS_INTERNAL_TOKEN now gets 403 on any write that PMM Extensions' background work or PMM Server's bootstrap stepper and Operations switch do not make with it.
  • SEP-2064 — Setting AUTH__PROVIDER__CASDOOR__WITHHOLD_BODY_LOG, the deprecated CASDOOR__WITHHOLD_BODY_LOG, or AUTH__PROVIDER__GRAFANA__WITHHOLD_BODY_LOG to false now stops PMM Extensions at startup with a validation error, because the Casdoor and Grafana clients always keep their request and response bodies out of the log.

Security

  • PMM-15861 — EXTENSIONS_INTERNAL_TOKEN no longer passes the role check on every write.
  • SEP-2064 — Casdoor and Grafana sign-in traffic, PMM alert contact-point calls and PagerDuty alert events no longer log the tokens, client secrets, user records, integration keys or routing keys carried in their request and response bodies.
  • SEP-2109 — The settings admin and its YAML export no longer show the PMM password through PMM.frontend when the frontend URL defaults from the endpoint; the default now omits the endpoint credentials.
  • SEP-2192 — The sidecar image's start scripts, settings profile and application code can no longer be renamed, replaced or written by the extensions user every process runs as, also when the container is started with the supplementary group 0 as PMM's compose file starts it.
Settings and configuration (3)

Added

  • SEP-2174 — The settings API now reports an override that is stored but ignored because it breaks a cross-field rule: the field carries override_ignored_reason, naming the rule(s), on the admin settings list and detail reads and on Operations for MongoDB's /api/apps/om_inventory/config.

Fixed

  • SEP-2104 — Standalone Tasks and Inventory processes, which the PMM side-car runs as programs of their own, now apply a stored Settings.LOGGING override at boot and pick up a change to it within one settings-override refresh interval, without a restart.
  • SEP-2116 — Setting an optional setting to null through an environment variable or the dotenv file now clears it instead of restoring its default, and wins over a value for the same setting in settings.yaml.

The CHANGELOG's other 4 entries cover apps the side-car does not run, this repository's own UI and the app framework. CHANGELOG.md has every entry.

Full Changelog: v3.10.0...v3.11.0