perfsonar-user - [perfsonar-user] Running pscheduler inside a linux namespace
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: Murilo Vetter <>
- To: perfsonar-user <>
- Subject: [perfsonar-user] Running pscheduler inside a linux namespace
- Date: Wed, 6 Jun 2018 08:39:21 -0300 (BRT)
- Ironport-phdr: 9a23:nBIQkxEg9wQnGlTz9GTcD51GYnF86YWxBRYc798ds5kLTJ7zoc+wAkXT6L1XgUPTWs2DsrQY07eQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDqwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KOTA5/mHNlMJ+j79Vrx29qBx+xIDUfJqYO+BicqzBZtwXX3ZNU8RXWidcAo28dYwPD+8ZMOhfson9vVoOrR+5BQKxC+zg1CNIhmPo0q0gzu8sFgTG3BE6H9IPtHTUq8/5NLkMXuCp0KnH0y/DYuhO2Tf68IjEawshru2WUbJqd8rR0VMjGBjfjliJr4HuIj2b1uMIs2eB7upgU/qii3QhqwFpuDSg3d0sh4/UjYwW0lDJ7Tt1zJopKdGiVkJ2b9ypHIFNuyyeKYd6WMMvTmd1sygg0LIGo4S0fC0SxZQn2RHfb/uHfpCJ4xLiUeaeOi14i2h/dLKngBay6VGsyvbgWcWuylZKqDJFnsPXuXAXzxDT686HReVh/kq5xzqDyxzf5vtaLU06l6fXMYMtz7oumpYJsUnPBir2l1/3jK+SeEUk4O+o6+H/b7Xju5+cLY50igX5Mqg0hMywH/g4MhQQUGiB4um8zLrj/VXgTLVRkvI6iLPZsJbCJcgBvaG5GRdZ0pw/5BanEzemzNMYkGEfLF1bYhKHgZPpO1bIIP/iF/ezmkmskCx1yPDcJbDhBpTNLmPfkLf6Y7px8U9cyAwvzd9B/ZJUDK8OIO7tVkPrqtPXEwI5YESIxLP/Bc9zzYQYUHjKH7SUKuuGqVKS6PkoJeCWIZIOtSzVKv456uTogGNj31IRYP/655YPbGGEGaFDPl+YZX2kvNodDWoQ9l47UfbrjFrETzNPe3uod7o7/nQgA8S8C5+FTJr705Kb2yLuO4BMZ2RBQm6BDWvlbc3QXuoWaSaVZNFsjiAJT5C5TJdkzhrorgnijbB9eLmHshYEvI7ugYAmr9bYkgs/oGR5
Hi list,
We are evaluating the use of pscheduler in an atypical scenario. The scenario is described bellow and we already use it to homologate IP network circuits, but we are just using iperf and ping directly. We are wondering if it is possible to use pscheduler to schedule and run the tests inside the Linux namespaces.
SCENARIO DESCRIPTION:
- 1 LINUX HOST configure with:
+ 3 network interfaces:
+-- ens192 (no namepace configure)
+-- ens224 (namepace configure - ns-ens224)
+-- ens256 (namepace configure - ns-ens256)
WHAT I AM TRYING TO DO:
* Run pscheduler (IPERF3) between both interfaces configure in the namespace
NODE CONFIGURATION:
Configure namespace to ens224 and ens256:
---
ip netns add ns-ens256
ip link set ens256 netns ns-ens256
ip netns exec ns-ens256 iptables -A INPUT -p icmp --icmp-type 5 -j DROP
ip netns exec ns-ens256 ifconfig ens256 mtu 9000
ip netns exec ns-ens256 ifconfig ens256 up
ip netns exec ns-ens256 ifconfig ens256 192.168.0.39 netmask 255.255.255.240 mtu 9000
ip netns exec ns-ens256 ifconfig ens256 up
ip netns exec ns-ens256 ifconfig lo up
ip netns exec ns-ens256 ip route add default via 192.168.0.33
ip netns add ns-ens224
ip link set ens224 netns ns-ens224
ip netns exec ns-ens224 iptables -A INPUT -p icmp --icmp-type 5 -j DROP
ip netns exec ns-ens224 ifconfig ens224 mtu 9000
ip netns exec ns-ens224 ifconfig ens224 up
ip netns exec ns-ens224 ifconfig ens224 192.168.0.45 netmask 255.255.255.240 mtu 9000
ip netns exec ns-ens224 ifconfig ens224 up
ip netns exec ns-ens224 ifconfig lo up
ip netns exec ns-ens224 ip route add default via 192.168.0.33
ip link set ens256 netns ns-ens256
ip netns exec ns-ens256 iptables -A INPUT -p icmp --icmp-type 5 -j DROP
ip netns exec ns-ens256 ifconfig ens256 mtu 9000
ip netns exec ns-ens256 ifconfig ens256 up
ip netns exec ns-ens256 ifconfig ens256 192.168.0.39 netmask 255.255.255.240 mtu 9000
ip netns exec ns-ens256 ifconfig ens256 up
ip netns exec ns-ens256 ifconfig lo up
ip netns exec ns-ens256 ip route add default via 192.168.0.33
ip netns add ns-ens224
ip link set ens224 netns ns-ens224
ip netns exec ns-ens224 iptables -A INPUT -p icmp --icmp-type 5 -j DROP
ip netns exec ns-ens224 ifconfig ens224 mtu 9000
ip netns exec ns-ens224 ifconfig ens224 up
ip netns exec ns-ens224 ifconfig ens224 192.168.0.45 netmask 255.255.255.240 mtu 9000
ip netns exec ns-ens224 ifconfig ens224 up
ip netns exec ns-ens224 ifconfig lo up
ip netns exec ns-ens224 ip route add default via 192.168.0.33
---
I checked if pscheduler is running of all interfaces independently if it is configure with namespace or not. I didn't change any configuration, just tried to restart service. But when I run:
# pscheduler ping <IP>
The only address that is up is from the Linux context, not the others 2 from the namespace.
Is there a way to run pscheduler in this scenario?
Other thing that I was trying to undestand is how linux context works in pscheduler task call. Does it just run the tool defining the namespace that it should run?
Regards,
--
Murilo Vetter
Analista REMEP-FLN/PoP-SC
PoP-SC - Ponto de Presença da RNP em Santa Catarina
REMEP-FLN - Rede Metropolitana de Educação e Pesquisa da Região de Florianópolis
RNP - Rede Nacional de Ensino e Pesquisa
UFSC - Universidade Federal de Santa Catarina
SETIC - Superintendência de Governança Eletrônica e Tecnologia da Informação e Comunicação
Fundações de Apoio FEESC e FEPESE
--/--
www.pop-sc.rnp.br
remep.pop-sc.rnp.br
CHAMADOS:
+55(48)3721-3000
INOC: 11242*100
- [perfsonar-user] Running pscheduler inside a linux namespace, Murilo Vetter, 06/06/2018
- [perfsonar-user] RE: Running pscheduler inside a linux namespace, Garnizov, Ivan (RRZE), 06/06/2018
- [perfsonar-user] Re: Running pscheduler inside a linux namespace, Murilo Vetter, 06/06/2018
- [perfsonar-user] RE: Running pscheduler inside a linux namespace, Garnizov, Ivan (RRZE), 06/06/2018
Archive powered by MHonArc 2.6.19.