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)

Event Timeline

c-po changed the task status from Open to In progress.Apr 26 2020, 8:27 AM
c-po claimed this task.
c-po changed Why the issue appeared? from Will be filled on close to Implementation mistake.
erkin set Issue type to Bug (incorrect behavior).Aug 30 2021, 6:33 AM
erkin removed a subscriber: Active contributors.