These are chat archives for Exa-Networks/exabgp

9th
Nov 2016
Ben Agricola
@benagricola
Nov 09 2016 17:03
hmm... weird
I'm running the following config.. and it appears exabgp is at some point echoing 'done\n' to stdin of the healthcheck processes... it then seems to get stuck on the write() call since healthcheck isn't reading from stdin - any ideas how to make sure exabgp doesnt echo anything to the healthcheck process?
template border-routers {
  api {
    processes ["hc-a", "hc-b"];

  }
  capability {
    graceful-restart 1200;
    route-refresh enable;

  }
  group-updates true;
  hold-time 10;
  local-as 65454;

}
process hc-a {
  encoder json;
  run /usr/bin/python -m exabgp.__main__ healthcheck ...;

}
process hc-b {
  encoder json;
  run /usr/bin/python -m exabgp.__main__ healthcheck ...;

}
neighbor 1.2.3.4 {
  description bdr1.sac1;
  inherit border-routers;
  local-address 1.2.3.5;
  local-as 65454;
  md5-password blah;
  peer-as 1234;
  router-id 1.2.3.5;

}
Thomas Mangin
@thomas-mangin
Nov 09 2016 17:46
every command is now ack’ed with a done message
Ben Agricola
@benagricola
Nov 09 2016 17:46
so 'announce' causes a 'done'?
Thomas Mangin
@thomas-mangin
Nov 09 2016 17:47
yes
Ben Agricola
@benagricola
Nov 09 2016 17:47
i see... so all processes need to read stdin otherwise in theory they can lock up exabgp
Thomas Mangin
@thomas-mangin
Nov 09 2016 17:49
correct
Ben Agricola
@benagricola
Nov 09 2016 17:50
kk. I'll see if i can write a patch for healthcheck.py tomorrow