You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PMM-15923: Operations quick fixes from testing - #6364
Feature build: SUBMODULES-4729 (the UI; PMM Extensions is not in the image)
Five fixes from testing, in the Operations UI (ui/packages/plugins/om), one commit per item. Item 6 of the ticket, the apt cache, is in percona/pmm-extensions#1810.
Search on Nodes and Fleet > Services returned wrong rows.
Cause: both tables used material-react-table's default fuzzy filter over every column, hidden ones included, so "shard01" also matched sharded-cluster-cfg01 and "9" matched nearly every row.
Fix: search is now a plain substring over the named columns: Node and Address on Nodes; Service, Node and Endpoint on Services.
A new helper, substringSearch, holds the setup Fleet > Clusters already had, and all three tables use it. Its match highlighting is off; on Clusters this changes nothing visible, since the one column it searches renders its own cell.
The bulk actions on Nodes take only the selected rows the search shows, as they already did for the filter chips.
Scanning one node disabled Scan on every node.
Every Scan was disabled while any scan ran, the scheduled one included.
PMM Extensions refuses only an overlapping scan, so the buttons now follow that rule:
A row's Scan is disabled only while a running scan holds its node.
Scan selected is disabled while a running scan holds any selected node.
Scan all is disabled while any scan runs, since a full scan is refused then.
While a scan request is being sent, every Scan waits for it, and says so: the buttons share one mutation, whose error would otherwise follow only the last request.
A request settles only once the scan history has been read again, so the buttons and the 409 notice never act on a history without the scan just started.
A 409 now links the running scan that holds the nodes asked for.
A failed install did not say why.
The reason comes from each failed step's stored detail: the tasks service's reason, the end of the output, then (task history N). It leads with the output's last line, where mongod, apt and dnf say what broke, cut at a word to about 200 characters.
It shows:
under the summary, from the first failed attempt and during the rollback
on the row's status chip, which resolves node names only when hovered
on the step's cell in the matrix
in place of the raw run error once the run ends, as one line per reason naming its nodes
The run's own error leads on an abort, or when no forward step says why.
The stored detail and the task history id of every failed step are behind "Show failure details", and so is the run's error when the reasons replace it.
Finalize steps count, since enable_auth out of retries rolls the run back. confirm_monitoring does not, since it runs once the install has succeeded. A compact OmError now wraps within the page.
The status chip takes keyboard focus, and its hover describes the status rather than renaming it. It stops saying "Rolling back" once a rollback step is out of retries.
A new scan collapsed an expanded scan group.
Cause: a group's id was its newest scan's id, so every new identical scan made it a new row, every 10 minutes on the default schedule.
A group now keeps the id of the earlier group it shares most scans with.
The scans a reader has open are kept by run id, and a row holding one is open too. So an opened scan survives the row remounting while a running scan sits above it, and a scan open as a row of its own, a linked running one for example, stays open when it finishes and joins an older group.
A ?expand= link opens its scan whenever it is followed, also once a later fetch brings it. Folding a row closes the scans in it.
Hover texts.
The UI makes the automation reasons sentences: capitalized, ending in a period, joined with a space, on Nodes and in the install wizard. pmm-managed keeps sending clauses, because it also embeds them mid-sentence in its install refusals.
The PMM Server checkbox shows the same text as its Automation hover. It is still the only row that reason makes unselectable, so a node on an unsupported OS stays selectable.
Age shows its time in an MUI tooltip that describes the age rather than replacing it as the accessible name, and takes keyboard focus. The Collected cells say "Last collected".
The Scan lock reads the newest 25 runs, as the lock it replaces did. A scan still running after 25 newer ones would no longer lock its nodes; one that stops reporting is marked failed after 2 minutes.
Item 3 parses the detail text. Only its (task history N) suffix has a fixed form. Separate reason and task history fields belong with PMM-15667.
Tested
cd ui && make lint && make format-check && make test pass (om: 617 tests), and each commit type-checks and passes on its own.
New tests:
The searches above, which fail on the old filter, and a selected node the search hides.
The Scan rule for one, two and full running scans, a mixed selection, and a request in flight, which settles only after the history is read again.
The failure reason from a multi-line mongod failure: a first attempt, a retry on two nodes, the rollback, a failed rollback, an abort, a cut long line, a failed enable_auth, a detail with no reason, a reason only from the rollback, and a succeeded run with a failed confirm_monitoring.
Groups that stay open as scans join and push old ones out, with a running scan above them, after Expand all, for a deep link whose scan arrives later, for a linked running scan that joins an older group, and for a link followed again.
The sentence join, checkbox parity, the tooltip, and keyboard focus on the status chip and the age.
the 2 shard01 data members / the 3 config servers (endpoint port 27019)
2
Scan on node00, then node01, from the UI
only those rows disabled, side by side; Scan all "Scanning…"
2
Scan all
every row disabled
3
install with bind address 10.99.99.99, first failure
chip hover "Attempt 1 failed: Error setting up listener: setup bind :: caused by :: Cannot assign requested address (on pmm-client-node03)"
3
during the rollback
"Rolling back, step 1 of 5" with the Why line under it; chip "Rolling back. Why: …"
3
rolled back
one Why line in place of the raw error, 864 px wide in a 1440 px window; details show the stored output with its line breaks
4
group expanded, a scan opened inside it, two new scans
both stay open as the group grows to 3, and when a skipped scan adds a row above
5
PMM Server chip and checkbox
the same sentence
5
Collected
"Last collected 11/18/2026, 10:44:59 AM (Europe/Warsaw)"; the age keeps its accessible name
The live check above ran on the first push. The fixes from the bot reviews, below, are covered by unit tests and were not re-run live.
Reviewed with /simplify, /code-review, and read-only by GPT-5.6 and Grok 4.7 through cursor-agent.
Copilot and CodeRabbit reviewed the first push: 16 of their 18 threads are fixed, each amended into the commit it belongs to, and 2 are declined with the reason in the thread.
Applied from those reviews: the shared search helper, stable group ids, the one Scan rule, failures computed once per render, the hover reading node names only when open, an abort's error shown first, the multi-node retry line, and the tie-break toward the older group.
Declined: deriving group lineage across a refetch that shares no scan with the previous one, and reading every active run beyond the newest 25.
If this PR adds, removes or alters one or more API endpoints, please review and update the relevant API documentation as well:
API Docs updated (no API change)
Related work: #6359 (PMM-15921, overlapping file), #6329 and #6339 (the backend strings follow them), PMM-15667 (structured failure detail).
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Installation finalize failures are omitted from failure reporting, run-level diagnostics can become inaccessible, and deep-linked scan receipts can close when scans regroup.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The changes add scope-aware scan holds, controlled scan-history expansion, and structured failure summaries in run views. They also add shared substring search, timestamp tooltips, sentence-formatted automation-block reasons, and shared focus styling. Tests and documentation cover these changes.
Sequence Diagram(s)
sequenceDiagram
participant NodesPage
participant useIsScanHeld
participant InventoryRunHistory
participant refreshHosts
NodesPage->>useIsScanHeld: Check requested node IDs
useIsScanHeld->>InventoryRunHistory: Check loaded runs for scope overlap
InventoryRunHistory-->>useIsScanHeld: Return active overlapping runs
useIsScanHeld-->>NodesPage: Return whether the scope is held
NodesPage->>refreshHosts: Submit scan when the scope is not held
Loading
Possibly related PRs
percona/pmm#6339: Defines backend install-precondition message strings used by the UI.
Merge Risk: Low · previous review e3207
This change improves MongoDB Operations search, scan controls, install-failure reporting and scan-history expansion. A few small gaps remain. A failed history refresh can briefly let an overlapping scan be sent and return a conflict error. The failure-details doc overstates what the control shows. The release note mentions an Ubuntu cleanup fix that may not ship in this release. None of these should block the merge, but they are worth tidying up.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "PMM-15923: Operations quick fixes from testing" names the ticket and says the PR contains fixes from testing in the Operations UI. The changeset covers five such fixes: search on Nodes and …
Description check
The description follows the repository template. It includes the ticket number (PMM-15923), a feature build reference, and the API documentation checklist item, marked as no API change. It also adds a…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "PMM-15923: Operations quick fixes from testing" names the ticket and says the PR contains fixes from testing in the Operations UI. The changeset covers five such fixes: search on Nodes and Services, scan locking, failed-install reasons, scan-group stability, and hover texts. The title is accurate but broad. It does not name the main change, so it is partially related rather than fully related. It is not vague or generic enough to be inconclusive, and it does not describe anything absent from the changeset.
Full details: Description check
Explanation
The description follows the repository template. It includes the ticket number (PMM-15923), a feature build reference, and the API documentation checklist item, marked as no API change. It also adds a related-work section with #6359, #6329, #6339, and PMM-15667. The template's ticket and feature build fields are filled in, and the description explains the five fixes, the tests run, and the live verification in detail. The one gap is the template's 'Related work' item, which is filled in rather than left as a placeholder. The description is complete and specific.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Files skipped from review as they are similar to previous changes: 1
documentation/docs/release-notes/next.md
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 15
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
⚠️ Outside diff range comments (1)
Minor · Document id as the row key, not the newest scan ID. · inventory.ts:424
ui/packages/plugins/om/src/inventory.ts:424 Minor · Data Integrity & Integration · Quick win
Document id as the row key, not the newest scan ID.
keepGroupIds can return [d,c,b] with ID c. Update the type comment so callers use group.id for row identity and group.runs[0].run_id for the newest scan.
This mock verifies that ['n2'] reaches the lookup. It still passes if the lookup ignores that argument. Add a test with the real lookup and two running scans: a newer one for n1 and an older one for n2. Assert that a 409 for n2 returns the older scan as runningScan.
If a retry clears the first failure, React reuses that row for the next failure. Use a key built from the source host ID, phase kind, step name and attempt. Do not use the resolved node name, which can change when inventory loads. Based on learnings, use a unique, stable key for list entries that can be removed or reordered.
The fixture puts shard01 in the service name, host, and default endpoint. The assertion still passes if either the Service or Node opt-in is removed. Give each field a distinct token and search for each token separately. Keep the 9 case to check that version and free connections are excluded.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 049a9585-fd55-44a4-a545-b45c35cc1513
Commits
Reviewing files that changed from the base of the PR and between ba6b74a and 13ff44a.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
The search on Nodes and on Fleet > Services used material-react-table's
default fuzzy filter over every column, hidden ones included. "shard01"
also matched sharded-cluster-cfg01 and -mongos01, and "9" matched nearly
every row through node IDs, versions and counters.
Search only the named columns, by plain substring: Node and Address on
Nodes; Service, Node and Endpoint on Services. One helper now carries
the setup Fleet > Clusters had, and all three tables use it. The
placeholder says what is searched, and match highlighting is off, since
only some of the searched columns could show it.
The bulk actions on Nodes take only the selected rows the search shows,
as they already did for the filter chips, so a node selected and then
searched away is not scanned, installed on or removed unseen.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
Every Scan button on Nodes was disabled while any scan ran, the
scheduled one included, so a node's Scan came back well after its own
scan had finished whenever another one was still running.
PMM Extensions refuses only a scan that overlaps a running one: a full
scan overlaps everything, and a scoped one overlaps the scans that share
a node with it. Disable a row's Scan only while a running scan holds its
node, and Scan selected while one holds any selected node; the disabled
row Scan says why. Scan all keeps its any-scan rule, since a full scan
is refused while any scan runs. While a scan request is being sent,
every Scan still waits for it, and says so: the buttons share one
mutation, whose error would otherwise follow only the last request. A
409 now links the running scan that holds the nodes asked for, not just
the first one running.
A scan request settles only once the scan history has been read again,
so the Scan buttons and the 409 notice never act on a history that does
not hold the scan just started yet.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
On Automations > Scans an expanded group collapsed whenever another
identical scan joined it, every 10 minutes on the default schedule: a
group's row id is its newest scan's id, so a new scan made it a new row.
Keep a group's id across refreshes: each group takes the id of the
earlier group it shares most scans with. The row stays the same row as
scans join it and older ones leave the 25 or 100 scans the tab fetches,
so it stays expanded.
The scans a reader has open are kept by their own ids, and a row that
holds one is open too. So a scan opened inside a group stays open while
a running scan's row moves the group, and a scan open as a row of its
own, such as a running one a ?expand= link opened, stays open when it
finishes and joins an older group. A link opens its scan whenever it is
followed, also once a later fetch brings that scan, and folding a row
closes the scans in it.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
A failed install did not say why. The row's status chip had no tooltip,
the summary named the step and node but no reason, and nothing said why
while the automatic rollback ran. Once it ended, a red box printed the
raw end of the job's output, often starting mid-word and running past
the page's right edge, with the real cause on its last line.
Read each failed step's detail as PMM Extensions writes it: a reason,
the end of the output, then the task history id. Lead with the output's
last line, where mongod, apt and dnf say what broke, cut at a word to
about 200 characters, as one line per reason naming the nodes it holds
on, a failed rollback first:
- under the summary from the moment a step fails, retried or not, and
during the rollback
- in place of the raw run error once the run ends
- on the row's status chip, which reads node names only once hovered,
and on the step's cell in the matrix
Each failed step's stored detail, the reason and the end of its output
as PMM Extensions keeps them, and its task history id are behind "Show
failure details", and so is the run's own error when the reasons
replace it. That error leads when an operator aborted the run or no
forward step says why. Finalize steps count too, since one out of
retries rolls the run back; the monitoring confirmation does not, since
it runs once the install has succeeded. A compact error now wraps
within the page.
The status chip takes keyboard focus, and its hover describes the
status rather than renaming it. It stops saying "Rolling back" once a
rollback step is out of retries and waits on an operator. The tooltip
anchors made focusable now share one focus ring style.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
The reasons a node cannot be automated reached the UI as lowercase
clauses joined with "; ": the PMM Server node's Automation hover read
"this is the node PMM Server itself runs on, which Operations never
installs onto". Its disabled checkbox gave a different text for the
same fact, from a UI constant.
pmm-managed keeps sending clauses, since it also embeds them mid-
sentence in its install refusals. The UI makes each one a sentence,
capitalized and ended with a period, joined with a space, on Nodes and
in the install wizard. The PMM Server checkbox shows the same text as
its Automation hover, while still being the only node the checkbox
refuses for that reason, so a node on an unsupported OS stays
selectable.
Age shows its time in an MUI tooltip, like every other time hover in
Operations, rather than a native title, and takes keyboard focus so the
tooltip opens from the keyboard too. The Collected cells say "Last
collected" before it.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
Add the release-note entry for the ticket, say when the Scan buttons
are unavailable now that the rule is per node, and say where a failed
install shows its reason.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.
- [PMM-18742](https://perconadev.atlassian.net/browse/PMM-18742): Updated [Nomad](../reference/nomad.md) to 2.1.1, which fixes [CVE-2026-78669](https://nvd.nist.gov/vuln/detail/CVE-2026-78669) and the `go-jose/v4` finding for [CVE-2026-116587](https://nvd.nist.gov/vuln/detail/CVE-2026-116587). Security scanners still report CVE-2026-116587 for Nomad's `go-jose/v3`, which has no fixed release.
- [PMM-15772](https://perconadev.atlassian.net/browse/PMM-15772): Fixed an issue where you couldn't turn on Operations for MongoDB until you connected PMM Server to PMM Extensions manually. PMM Server now connects to PMM Extensions automatically. If you set `PMM_EXTENSIONS_URL`, `PMM_EXTENSIONS_TOKEN` and `EXTENSIONS_INTERNAL_TOKEN` for PMM 3.10.0, they keep working. If PMM still can't use PMM Extensions, turning on Operations for MongoDB now says why, for example that PMM Extensions is unreachable or rejects PMM's token. For details, see [Operations for MongoDB](../use/mongodb-operations.md#prepare-pmm-server).
- [PMM-15860](https://perconadev.atlassian.net/browse/PMM-15860): Fixed **Automatic node scans** in **MongoDB > Operations > Settings** blocking **Scan** and **Scan all** on the **Nodes** page, and PMM turning automatic scans back on when it restarted. Turning off **Automatic node scans** now stops only the scans PMM starts on its own: the scheduled scans, the scan after each restart, and the scan when Operations for MongoDB is turned on. The setting stays off until you turn it back on. For details, see [Operations for MongoDB](../use/mongodb-operations.md#stop-automatic-scans).
- [PMM-15923](https://perconadev.atlassian.net/browse/PMM-15923): Fixed several issues in **MongoDB > Operations**. Search on **Nodes** and on the **Services** tab of **Fleet** now matches only the names, addresses and endpoints shown, so a search no longer returns unrelated rows. Scanning one node no longer disables **Scan** on every other node. A failed install now says why, under the install summary and when you hover over its status. A new scan no longer collapses a scan group that you have expanded on the **Scans** tab. An install on an Ubuntu node no longer leaves the downloaded packages on the node. For details, see [Operations for MongoDB](../use/mongodb-operations.md).
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Keep the Ubuntu cleanup claim only when the release includes its fix.
The entry says Ubuntu installs no longer leave downloaded packages. That behavior comes from percona/pmm-extensions#1810, which is still open and unmerged. The feature build also excludes PMM Extensions. If this release ships without a PMM Extensions release that contains #1810, users will not get the behavior the note describes.
Confirm that #1810 is merged into the PMM Extensions release that this PMM release uses. If it is not, remove the sentence from this entry and list it under the release that includes the fix. Each release-note entry belongs on the page for the version it ships in.
The reason will be displayed to describe this comment to others. Learn more.
Both changes are under PMM-15923 and are meant to ship in the same release: this PR for the PMM side and percona/pmm-extensions#1810 for the Ubuntu package cleanup. I'm keeping the sentence. If #1810 misses the release, I'll take the sentence out of the entry before this PR merges.
The reason will be displayed to describe this comment to others. Learn more.
@plebioda Thanks for clarifying the release plan. Inclusion of percona/pmm-extensions#1810 in the PMM Extensions release remains unverified. Before merging, please confirm that the planned release includes the fix.
I’m not marking this finding as addressed yet.
Learnings used
Learnt from: travagliad
Repo: percona/pmm PR: 5987
File: .github/workflows/docs-coverage.yml:89-90
Timestamp: 2026-10-21T22:37:08.111Z
Learning: In percona/pmm, the release-note process introduced by PR #6181 puts next-release entries in documentation/docs/release-notes/next.md on main. The RC job converts next.md to X.Y.Z.md when it creates the release branch. documentation/AGENTS.md is updated to describe this process.
Learnt from: travagliad
Repo: percona/pmm PR: 5986
File: .github/workflows/documentation.yml:75-75
Timestamp: 2026-10-19T19:36:41.287Z
Learning: In percona/pmm, from version 3.11 onward, documentation and release notes merge to main alongside each change. Release branches inherit those pages when cut. Reviews of .github/workflows/documentation.yml should account for this release-process invariant rather than assume release branches lack their GA release-notes pages.
A group took over an older group's id even when a later group still had
that id as its own. Showing a cached older page of the Scans tab, where
a scan that has since finished was still running, gave both rows the
same id. A group now takes over an id only when no other group has it
as its own.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
Show failure details lists each failed step's reason, the end of its
output and its task history ID, not the full output or the task
history itself.
Signed-off-by: Pawel Lebioda <pawel.lebioda@percona.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket number: PMM-15923
Feature build: SUBMODULES-4729 (the UI; PMM Extensions is not in the image)
Five fixes from testing, in the Operations UI (
ui/packages/plugins/om), one commit per item. Item 6 of the ticket, the apt cache, is in percona/pmm-extensions#1810.sharded-cluster-cfg01and "9" matched nearly every row.substringSearch, holds the setup Fleet > Clusters already had, and all three tables use it. Its match highlighting is off; on Clusters this changes nothing visible, since the one column it searches renders its own cell.(task history N). It leads with the output's last line, where mongod, apt and dnf say what broke, cut at a word to about 200 characters.enable_authout of retries rolls the run back.confirm_monitoringdoes not, since it runs once the install has succeeded. A compactOmErrornow wraps within the page.?expand=link opens its scan whenever it is followed, also once a later fetch brings it. Folding a row closes the scans in it.Ageshows its time in an MUI tooltip that describes the age rather than replacing it as the accessible name, and takes keyboard focus. The Collected cells say "Last collected".Worth a reviewer's eye:
RunProgress.tsxaround the error box and the import block ofrunSummary.ts. Whichever merges second resolves the conflict, and PMM-15921: Stop installs from reading as running forever #6359's "Clean up the nodes named in the error" should then read "named above".(task history N)suffix has a fixed form. Separate reason and task history fields belong with PMM-15667.Tested
cd ui && make lint && make format-check && make testpass (om: 617 tests), and each commit type-checks and passes on its own.enable_auth, a detail with no reason, a reason only from the rollback, and a succeeded run with a failedconfirm_monitoring.sharded-clustersandbox, and PMM Extensions with percona/pmm-extensionsPMM-10974 PGSM as default query source for PG. #1810:If this PR adds, removes or alters one or more API endpoints, please review and update the relevant API documentation as well:
Related work: #6359 (PMM-15921, overlapping file), #6329 and #6339 (the backend strings follow them), PMM-15667 (structured failure detail).
🤖 Generated with Claude Code