Page MenuHomeVyOS Platform

Incorrect warning when poweroff command executed from configure mode.
Closed, ResolvedPublicBUG

Description

vyos@vyos# poweroff
Failed to execute operation: The name org.freedesktop.PolicyKit1 was not provided by any .service files
Must be root.

"Poweroff " is an operational command and execution from the config mode is not allowed. The existing error message is kind of misguiding.
A better message is needed i.e. Exit from configure mode before shutting down.

Details

Difficulty level
Easy (less than an hour)
Version
1.4-rolling-202109250602
Why the issue appeared?
Design mistake
Is it a breaking change?
Perfectly compatible
Issue type
Cosmetic issue (typos etc.)

Event Timeline

c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus (1.3.0-epa2) board.
c-po moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta board.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po changed Why the issue appeared? from Will be filled on close to Design mistake.
c-po changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
c-po changed Issue type from Unspecified (please specify) to Cosmetic issue (typos etc.).