Commit 845ff8b
committed
fix(sudoers): grant lvremove of regular (non-migrate) snapshot LVs
delete-snapshot-vm and terminate's snapshot cleanup remove the snapshot LV with
'lvremove -f atlas/atlas-snap-<name>', but the name is a random Frappe doc id, not
a UUID, so it can't be spelled out — and the allow-list only granted the
'-migrate'-suffixed migration snapshots and the wildcard lvcreate. So terminating a
VM that still has a snapshot failed with 'sudo: command not allowed'. Grant the
wildcard lvremove for atlas-snap-* / atlas-datasnap-*, matching the wildcard the
lvcreate already uses (bounded to the snapshot prefix; base images and VM disks
have different prefixes).1 parent 1eca5a8 commit 845ff8b
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
| 814 | + | |
813 | 815 | | |
814 | 816 | | |
815 | 817 | | |
| |||
0 commit comments