Page MenuHomeVyOS Platform

Unable to delete container image in 1.4 nightly build "Error: `podman ps` takes no arguments"
Closed, ResolvedPublicBUG

Description

vyos@vyos:~$ delete container image 84f7fe4db64b
Error: `podman ps` takes no arguments
/bin/sh: line 2: 84f7fe4db64b27fdc663001bf5d0fb486939520242b704e79c07135f0fb975f7: command not found

The call to rc_cmd('podman inspect ...') determines whether a container image scheduled for deletion has any ancestor containers still using it. Previously, if the podman command wrote output to stderr, rc_cmd() would return that error
message alongside or instead of the ancestor container ID.

This caused subsequent podman calls to fail, as the error string was incorrectly treated as a valid command argument. This change ensures only valid ancestor IDs are returned.

This is a fix for commit a99ca6d11b5 ("op-mode: T7403: add option for forcefully remove a container image")

Details

Version
1.4-stable-202510222107
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Revisions and Commits

Event Timeline

c-po changed the task status from Open to In progress.
c-po claimed this task.
c-po triaged this task as Normal priority.
c-po edited projects, added VyOS 1.4 Sagitta (1.4.4); removed VyOS 1.4 Sagitta.
Restricted Repository Identity added a commit: Restricted Diffusion Commit.
c-po reopened this task as In progress.Oct 29 2025, 7:17 AM
c-po moved this task from Need Triage to Completed on the VyOS Rolling board.
c-po moved this task from Backlog to Finished on the VyOS 1.4 Sagitta (1.4.4) board.
c-po moved this task from Open to Finished on the VyOS 1.5 Circinus (1.5-stream-2025-Q3) board.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.