Dear Sir:
Can someone show me how to run ovs-tcpdump in StarlingX 4.0? Or it doesn’t support ovs-tcpdump, yet.
1.
In activate controller with error
[sysadmin@controller-1 ~(keystone_admin)]$ sudo find / -name ovs-tcpdump
/run/containerd/io.containerd.runtime.v2.task/k8s.io/c14cfcb3b83856841fcf5e6fc797648286fcef7e3345ac5fe7fc40b53f0c81c2/rootfs/usr/bin/ovs-tcpdump
/run/containerd/io.containerd.runtime.v2.task/k8s.io/a996ab0c567e0e80554cf1c1fab7c982c8450746bb5f38bc565a387eccf44308/rootfs/usr/bin/ovs-tcpdump
/var/lib/docker/io.containerd.snapshotter.v1.overlayfs/snapshots/344/fs/usr/bin/ovs-tcpdump
[sysadmin@controller-1 ~(keystone_admin)]$ sudo /run/containerd/io.containerd.runtime.v2.task/k8s.io/c14cfcb3b83856841fcf5e6fc797648286fcef7e3345ac5fe7fc40b53f0c81c2/rootfs/usr/bin/ovs-tcpdump
ERROR: Please install the correct Open vSwitch python support
libraries (version 2.11.0).
Alternatively, check that your PYTHONPATH is pointing to
the correct location.
2.
Run in neutron-ovs-agent with error
[sysadmin@controller-1 ~(keystone_admin)]$ kubectl get pods -A | grep ovs
openstack neutron-ovs-agent-controller-0-937646f6-7cgrn 1/1 Running 0 22d
openstack neutron-ovs-agent-controller-1-cab72f56-8f5zl 1/1 Running 0 22d
[sysadmin@controller-1 ~(keystone_admin)]$ kubectl exec -it neutron-ovs-agent-controller-0-937646f6-7cgrn -n openstack -- /bin/bash
[root@controller-0 /]# sudo find / -name ovs-tcpdump
find: File system loop detected; '/run/containerd/io.containerd.runtime.v2.task/k8s.io/ce212ae2c14881b52cae720f682c584e68bf1855bb59156c9795ffc0fd4e7940/rootfs' is part of
the same file system loop as '/'.
/run/containerd/io.containerd.runtime.v2.task/k8s.io/3c2f65fae028b7432d0759ede3d6a1b6c633ca9e2886a72ab26526d8cf8dbce8/rootfs/usr/bin/ovs-tcpdump
[root@controller-0 /]# /run/containerd/io.containerd.runtime.v2.task/k8s.io/3c2f65fae028b7432d0759ede3d6a1b6c633ca9e2886a72ab26526d8cf8dbce8/rootfs/usr/bin/ovs-tcpdump
Traceback (most recent call last):
File "/run/containerd/io.containerd.runtime.v2.task/k8s.io/3c2f65fae028b7432d0759ede3d6a1b6c633ca9e2886a72ab26526d8cf8dbce8/rootfs/usr/bin/ovs-tcpdump", line 27, in <module>
import netifaces
ImportError: No module named netifaces
3.
Install netifaces in neutron-ovs-agent with error:
[root@controller-0 /]# yum install netifaces
Loaded plugins: fastestmirror, ovl
Cannot open logfile /var/log/yum.log
ovl: Error while doing RPMdb copy-up:
[Errno 30] Read-only file system: '/var/lib/rpm/.dbenv.lock'
[Errno 30] Read-only file system: '/var/cache/yum/x86_64/7/base/mirrorlist.txt'
Regards,
C.H. Huang