Skip to content

Commit

Permalink
remove watchfrr debug
Browse files Browse the repository at this point in the history
Signed-off-by: karampok <karampok@gmail.com>
  • Loading branch information
karampok committed Dec 3, 2024
1 parent 0481986 commit 421159c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 56 deletions.
21 changes: 3 additions & 18 deletions config/all-in-one/frr-k8s-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1166,25 +1166,10 @@ spec:
- mountPath: /etc/frr_reloader
name: reloader
- command:
- /bin/bash
- -cx
- /bin/sh
- -c
- |
if [ -r "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
log_success_msg() {
echo "$@"
}
log_warning_msg() {
echo "$@" >&2
}
log_failure_msg() {
echo "$@" >&2
}
fi
source /usr/lib/frr/frrcommon.sh
/usr/lib/frr/watchfrr -l 7 $(daemon_list) &
/sbin/tini -- /usr/lib/frr/docker-start &
attempts=0
until [[ -f /etc/frr/frr.log || $attempts -eq 60 ]]; do
sleep 1
Expand Down
21 changes: 3 additions & 18 deletions config/all-in-one/frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1135,25 +1135,10 @@ spec:
- mountPath: /etc/frr_reloader
name: reloader
- command:
- /bin/bash
- -cx
- /bin/sh
- -c
- |
if [ -r "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
log_success_msg() {
echo "$@"
}
log_warning_msg() {
echo "$@" >&2
}
log_failure_msg() {
echo "$@" >&2
}
fi
source /usr/lib/frr/frrcommon.sh
/usr/lib/frr/watchfrr -l 7 $(daemon_list) &
/sbin/tini -- /usr/lib/frr/docker-start &
attempts=0
until [[ -f /etc/frr/frr.log || $attempts -eq 60 ]]; do
sleep 1
Expand Down
21 changes: 3 additions & 18 deletions config/frr-k8s/frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,10 @@ spec:
# If the log file isn't created in 60 seconds the tail fails and the container is restarted.
# This workaround is needed to have the frr logs as part of kubectl logs -c frr < k8s-frr-podname >.
command:
- /bin/bash
- -cx
- /bin/sh
- -c
- |
if [ -r "/lib/lsb/init-functions" ]; then
. /lib/lsb/init-functions
else
log_success_msg() {
echo "$@"
}
log_warning_msg() {
echo "$@" >&2
}
log_failure_msg() {
echo "$@" >&2
}
fi
source /usr/lib/frr/frrcommon.sh
/usr/lib/frr/watchfrr -l 7 $(daemon_list) &
/sbin/tini -- /usr/lib/frr/docker-start &
attempts=0
until [[ -f /etc/frr/frr.log || $attempts -eq 60 ]]; do
sleep 1
Expand Down
4 changes: 2 additions & 2 deletions e2etests/tests/graceful_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var _ = ginkgo.Describe("Establish BGP session with EnableGracefulRestart", func
updater *config.Updater
reporter *k8sreporter.KubernetesReporter
nodes []corev1.Node
prefixesV4 = scaleUP(200)
prefixesV4 = scaleUP(100)
)

cleanup := func(u *config.Updater) error {
Expand Down Expand Up @@ -175,7 +175,7 @@ var _ = ginkgo.Describe("Establish BGP session with EnableGracefulRestart", func
Eventually(c, time.Minute, time.Second).Should(BeClosed(), "restart FRRK8s pods are not yet ready")
},
ginkgo.Entry("IPV4", ipfamily.IPv4, prefixesV4),
// ginkgo.Entry("IPV6", ipfamily.IPv6, []string{"2001:db8:5555::5/128"}),
// ginkgo.Entry("IPV6", ipfamily.IPv6, []string{"2001:db8:5555::5/128"}),
)
})
})
Expand Down

0 comments on commit 421159c

Please sign in to comment.