Bug 50040 - Недоступно выполнение команд от пользователя etcd
Summary: Недоступно выполнение команд от пользователя etcd
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: etcd (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-16 10:25 MSK by Alexander Makeenkov
Modified: 2024-04-16 10:25 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2024-04-16 10:25:01 MSK
Версия пакета:

etcd-3.5.12-alt1

Шаги воспроизведения:

# apt-get install etcd
# systemctl start etcd
# stat /var/lib/etcd/default.etcd/member/snap/db
# systemctl stop etcd
# su - etcd -c "etcdutl defrag --data-dir /var/lib/etcd/default.etcd"

Получаемый результат:

/dev/null not available; exiting

Ожидаемый результат:

Возможность выполнить команду от пользователя etcd, потому что, если выполнить etcdutl defrag от root, то права на файл /var/lib/etcd/default.etcd/member/snap/db изменятся на root, и в дальнейшем нельзя будет запустить сервис etcd из-за ошибки:

"msg":"failed to open database","path":"/var/lib/etcd/default.etcd/member/snap/db","error":"open /var/lib/etcd/default.etcd/member/snap/db: permission denied"