Bug 49733 - Нет плагина "flannel" для проверки /etc/cni/net.d/10-flannel.conflist
Summary: Нет плагина "flannel" для проверки /etc/cni/net.d/10-flannel.conflist
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: podsec-inotify (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: kaf@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-19 14:37 MSK by Artem Varaksa
Modified: 2024-03-19 14:37 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2024-03-19 14:37:34 MSK
Шаги
====

Подготовить kubernetes:

# uname -r | grep un-def >/dev/null || update-kernel -t un-def -y
# sed -i '/swap/d' /etc/fstab
# hostnamectl set-hostname podsec-master
# echo "<ip> podsec-master" >> /etc/hosts
# reboot
# apt-get install -y podsec-k8s
# export PATH=/usr/libexec/podsec/u7s/bin/:$PATH
# kubeadm init

Будет создан файл:

# stat /etc/cni/net.d/10-flannel.conflist

Затем:

1. # apt-get install -y podsec-inotify
2. # systemctl enable --now trivy
3. # podsec-inotify-check-vuln

Фактический результат
=====================

> WARN[0001] Error validating CNI config file /etc/cni/net.d/10-flannel.conflist: [failed to find plugin "flannel" in path [/usr/local/libexec/cni /usr/libexec/cni /usr/local/lib/cni /usr/lib/cni /opt/cni/bin]]

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

Нет предупреждения. Файл /etc/cni/net.d/10-flannel.conflist проверяется.

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Server 10.1 x86_64
podsec-inotify-1.0.10-alt5.noarch

Не воспроизводится (нет предупреждения) на виртуальных машинах:

[p10] ALT Server 10.1 x86_64
podsec-inotify-1.0.8-alt1.noarch