Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary Only Docker Image #3987

Closed
wants to merge 4 commits into from
Closed

Conversation

robgil
Copy link
Contributor

@robgil robgil commented Mar 21, 2019

Summary

WIP
This is a build as well as docker image for FRR on top of a Debian base image.

Related Issue

TODO

Components

Docker

@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 21, 2019

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/3987 8f5d15a
Date 03/20/2019
Start 21:20:14
Finish 21:44:05
Run-Time 23:51
Total 1816
Pass 1816
Fail 0
Valgrind-Errors
Valgrind-Loss
Details vncregress-2019-03-20-21:20:14.txt
Log autoscript-2019-03-20-21:20:59.log.bz2
Memory 497 497 429

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6978/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Ubuntu 18.04 amd64 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 18.04 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6978/artifact/U1804AMD64/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 72 (81) > 80
Ubuntu 14.04 amd64 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 14.04 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6978/artifact/CI001BUILD/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 72 (81) > 80
Debian 9 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 9 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6978/artifact/CI021BUILD/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib-dbgsym: package-has-long-file-name 72 (81) > 80
Ubuntu 16.04 amd64 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 16.04 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6978/artifact/CI014BUILD/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 72 (81) > 80
Ubuntu 16.04 i386 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 16.04 i386 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6978/artifact/U1604I386/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 71 (81) > 80

CLANG Static Analyzer Summary

  • Github Pull Request 3987, comparing to Git base SHA a6170d8

No Changes in Static Analysis warnings compared to base

1 Static Analyzer issues remaining.

See details at
https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6978/artifact/shared/static_analysis/index.html

robgil added 2 commits March 21, 2019 02:23
- Adds yang models
- Updates yang paths
- Adds /var/run path for docker
@robgil
Copy link
Contributor Author

robgil commented Mar 21, 2019

Seems to start up, but never exits cleanly on start. Sending to the background to test

root@9c47c97f9f97:/# /usr/sbin/docker-start &
root@9c47c97f9f97:/# ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 02:12 pts/0    00:00:00 bash
root       287     0  0 02:27 pts/2    00:00:00 /bin/bash
root       295   287  0 02:28 pts/2    00:00:00 /bin/sh /usr/sbin/docker-start
root       297   295  0 02:28 pts/2    00:00:00 /bin/bash /etc/init.d/frr start
frr        310   297  1 02:28 pts/2    00:00:00 /usr/sbin/bgpd -A 127.0.0.1
root       313   287  0 02:28 pts/2    00:00:00 ps -ef

## This should be starting bgpd and bfdd but only bgpd is starting

## vtysh is working and connecting to the bgpd daemon
root@9c47c97f9f97:/# vtysh 

Hello, this is FRRouting (version 7.1-dev-MyOwnFRRVersion-g5d15abb-dirty).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

This is a git build of frr-7.1-dev-157-g8f5d15abb-dirty
Associated branch(es):
	local:docker-debian-source
	git@github.com:robgil/frr.git/docker-debian-source

## Neighbors are showing
9c47c97f9f97# show bgp sum

IPv4 Unicast Summary:
BGP router identifier 0.0.0.0, local AS number 65000 vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 2, using 41 KiB of memory

Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
10.10.10.1      4      65001       0       0        0    0    0    never       Active
10.10.10.2      4      65002       0       0        0    0    0    never       Active

Total number of neighbors 2

## bfdd doesn't seem to work
9c47c97f9f97# show bfd peers
bfdd is not running

daemons

bgpd=yes
ospfd=no
ospf6d=no
ripd=no
ripngd=no
isisd=no
pimd=no
ldpd=no
nhrpd=no
eigrpd=no
babeld=no
sharpd=no
pbrd=no
bfdd=yes
fabricd=no

#
# If this option is set the /etc/init.d/frr script automatically loads
# the config via "vtysh -b" when the servers are started.
# Check /etc/pam.d/frr if you intend to use "vtysh"!
#
vtysh_enable=yes
zebra_options="  -A 127.0.0.1 -s 90000000"
bgpd_options="   -A 127.0.0.1"
ospfd_options="  -A 127.0.0.1"
ospf6d_options=" -A ::1"
ripd_options="   -A 127.0.0.1"
ripngd_options=" -A ::1"
isisd_options="  -A 127.0.0.1"
pimd_options="   -A 127.0.0.1"
ldpd_options="   -A 127.0.0.1"
nhrpd_options="  -A 127.0.0.1"
eigrpd_options=" -A 127.0.0.1"
babeld_options=" -A 127.0.0.1"
sharpd_options=" -A 127.0.0.1"
pbrd_options="   -A 127.0.0.1"
staticd_options="-A 127.0.0.1"
bfdd_options="   -A 127.0.0.1"
fabricd_options="-A 127.0.0.1"

@LabN-CI
Copy link
Collaborator

LabN-CI commented Mar 21, 2019

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/3987 1abeae0
Date 03/20/2019
Start 22:30:14
Finish 22:53:59
Run-Time 23:45
Total 1813
Pass 1813
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2019-03-20-22:30:14.txt
Log autoscript-2019-03-20-22:30:56.log.bz2
Memory 502 501 429

For details, please contact louberger

@NetDEF-CI
Copy link
Collaborator

Continuous Integration Result: SUCCESSFUL

Congratulations, this patch passed basic tests

Tested-by: NetDEF / OpenSourceRouting.org CI System

CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6979/

This is a comment from an automated CI system.
For questions and feedback in regards to this CI system, please feel free to email
Martin Winter - mwinter (at) opensourcerouting.org.

Warnings Generated during build:

Ubuntu 18.04 amd64 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 18.04 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6979/artifact/U1804AMD64/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 72 (81) > 80
Ubuntu 14.04 amd64 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 14.04 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6979/artifact/CI001BUILD/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 72 (81) > 80
Debian 9 amd64 build: Successful with additional warnings

Debian Package lintian failed for Debian 9 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6979/artifact/CI021BUILD/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib-dbgsym: package-has-long-file-name 72 (81) > 80
Ubuntu 16.04 amd64 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 16.04 amd64 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6979/artifact/CI014BUILD/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 72 (81) > 80
Ubuntu 16.04 i386 build: Successful with additional warnings

Debian Package lintian failed for Ubuntu 16.04 i386 build:
(see full package build log at https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6979/artifact/U1604I386/ErrorLog/log_lintian.txt)

W: frr-rpki-rtrlib: package-has-long-file-name 71 (81) > 80

CLANG Static Analyzer Summary

  • Github Pull Request 3987, comparing to Git base SHA a6170d8

No Changes in Static Analysis warnings compared to base

1 Static Analyzer issues remaining.

See details at
https://ci1.netdef.org/browse/FRR-FRRPULLREQ-6979/artifact/shared/static_analysis/index.html

@qlyoung qlyoung self-assigned this Mar 21, 2019
@eqvinox
Copy link
Contributor

eqvinox commented Mar 23, 2019

This is using the old init script (and I rather not create another copy of it in the repo :/)

@robgil
Copy link
Contributor Author

robgil commented Mar 23, 2019

@eqvinox no worries, which init script should I use?

Also in terms of copying things around, i'll update the build.sh to copy the file andd make the relevant path changes.

@eqvinox
Copy link
Contributor

eqvinox commented Mar 23, 2019

@robgil tools/{frrinit,frrcommon,watchfrr}.sh

Also I think we should use integrated config since that's the default if no config exists. (I.e. don't create the per-daemon config files.) Also-also, /usr/local/lib/libyang isn't needed with the libyang version that is in debian buster, we could just use that (it can be installed on debian stretch without problems).

@qlyoung
Copy link
Member

qlyoung commented Mar 25, 2019

+1 for integrated config.

@qlyoung qlyoung added the docker label Mar 26, 2019
@qlyoung
Copy link
Member

qlyoung commented Apr 21, 2019

@robgil any progress on this?

@robgil
Copy link
Contributor Author

robgil commented Apr 21, 2019 via email

@LabN-CI
Copy link
Collaborator

LabN-CI commented May 25, 2019

💚 Basic BGPD CI results: SUCCESS, 0 tests failed

Results table
_ _
Result SUCCESS git merge/3987 1abeae0
Date 05/24/2019
Start 22:11:09
Finish 22:33:56
Run-Time 22:47
Total 1813
Pass 1813
Fail 0
Valgrind-Errors 0
Valgrind-Loss 0
Details vncregress-2019-05-24-22:11:09.txt
Log autoscript-2019-05-24-22:12:13.log.bz2
Memory 432 436 360

For details, please contact louberger

@robgil
Copy link
Contributor Author

robgil commented Jun 11, 2019

Closing this out in favor of a simpler binary only PR based on Debian buster.

@robgil robgil closed this Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants