Page MenuHomeVyOS Platform

salt-minion: Throws KeyError on commit
Closed, ResolvedPublicBUG

Description

set service salt-minion master 1.1.1.1
set service salt-minion id foo
commit
[ service salt-minion ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/salt-minion.py", line 131, in <module>
    generate(c)
  File "/usr/libexec/vyos/conf_mode/salt-minion.py", line 84, in generate
    uid = getpwnam(salt['user']).pw_uid
KeyError: "getpwnam(): name not found: 'minion'"

[[service salt-minion]] failed
Commit failed

Details

Difficulty level
Easy (less than an hour)
Version
1.3-rolling-202004201924
Why the issue appeared?
Implementation mistake
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)