Closed f0 closed 10 years ago
I am sorry, I don't understand; can you elaborate a bit? Thank you!
Hi,
this code:
elif $(which ovs-vsctl >/dev/null) && $(ovs-vsctl list-br|grep -q ^$IFNAME$)
then
IFTYPE=bridge
BRTYPE=openvswitch
else IFTYPE=phys
fi
checks if ovs-vctl is installed , if i run this via systemd on my coreos system, the systemd fails because the return code from which ovs-vsctl >/dev/null is 1.
If i comment out this, it works without problems
regards f0
So you're presumably specifying on a physical interface with the intention of pipework creating a virtual subinterface? Can you post what's in your .service file where you're using it?
this for e.g
[Unit]
Description = Jenkins Instance
After= network.service
[Service]
ExecStart=/bin/bash -c '/usr/bin/docker run --rm --net=none --name jenkins-test index.dvag.com:5000/jenkins:1.532.3-1'
ExecStartPost=/bin/bash -c '/srv/tools/pipework enp16s0f0 -i eth0 jenkins-test 10.61.12.133/32@10.61.12.1'
ExecStop=/usr/bin/docker stop jenkins-test
Restart=always
MemoryLimit=8G
[Install]
WantedBy=local.target
Do you still have this problem? Were you able to work around it, per chance?
i can check this next week
ok i have checked this, i can not reproduce with the latest pipework, whyever the code for this does not have changed.
Hi, when ovs-vsctl tools are not installed, using pipework with systemd fails, as systemd exists if some commad coms back with $?=1
regards f0