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

[FRR]: Update frr to frr-7.0.1 #2899

Merged
merged 7 commits into from
May 16, 2019
Merged

[FRR]: Update frr to frr-7.0.1 #2899

merged 7 commits into from
May 16, 2019

Conversation

pavel-shirshov
Copy link
Contributor

@pavel-shirshov pavel-shirshov commented May 14, 2019

- What I did

  1. Updated FRR to version FRR 7.0.1.
  2. Enabled staticd, which controls static routes since FRR 6.x
  3. Disabled installation of FRR-pythontools, which contains only one python tool, which makes semantic diffs of quagga configs, but requires python3 to run
  4. Fixed some issues in Makefiles

- How I did it
Added necessary dependency + updated FRR repository

- How to verify it
Build an image and run it.

- Description for the changelog

Update FRR to FRR 7.0.1. staticd was enabled.

** - What must be completed until the PR is ready for merging: **

  1. Convert all Debian related downloads to azure cloud related downloads [DONE]
  2. Decide what to do with frr.conf vs bgpd.conf,zebra.conf,staticd.conf [DONE]
  3. Update permissions for /etc/frr. Currently it's impossible for frr create a new file [DONE]
# wr mem
Note: this version of vtysh never writes vtysh.conf

Warning: attempting direct configuration write without watchfrr.
File permissions and ownership may be incorrect, or write may fail.

Building Configuration...
Warning: /etc/frr/frr.conf.sav unlink failed
Integrated configuration saved to /etc/frr/frr.conf
[OK]

@lguohan
Copy link
Collaborator

lguohan commented May 14, 2019

you need to modify the start.sh to start staticd

@lguohan
Copy link
Collaborator

lguohan commented May 14, 2019

both model are supported, if it is unified configuration model, then use frr.conf. if it is separated configuration model, then use zebra.conf, bgpd.conf, and staticd.conf.

@lguohan
Copy link
Collaborator

lguohan commented May 14, 2019

about FRR-pythontools, don't we have python3 installed in the frr docker?

src/python3/Makefile Outdated Show resolved Hide resolved
@qiluo-msft
Copy link
Collaborator

qiluo-msft commented May 14, 2019

After this PR #2807, python3 is only available in snmp docker image (3.6). What is the motivate of using FRR-pythontools? If really needed, I propose 2 options:

  1. install python3.6 into docker-base image
  2. install Debian vanilla python3.5.3-1 in Stretch docker-base.

In reply to: 492426979 [](ancestors = 492426979)

@pavel-shirshov
Copy link
Contributor Author

you need to modify the start.sh to start staticd

I think I've it here: https://github.com/Azure/sonic-buildimage/pull/2899/files#diff-2faaa492fd949e4b9f384eb592a81bcbR35

@sonic-net sonic-net deleted a comment from paulnice May 14, 2019
@pavel-shirshov
Copy link
Contributor Author

After this PR #2807, python3 is only available in snmp docker image (3.6). What is the motivate of using FRR-pythontools? If really needed, I propose 2 options:

install python3.6 into docker-base image
install Debian vanilla python3.5.3-1 in Stretch docker-base.

In reply to: 492426979 [](ancestors = 492426979)

I don't think we need frr-pythontools.
Currently it's contains only https://github.com/Azure/sonic-frr/blob/88351c8f6df5450e9098f773813738f62abb2f5e/tools/frr-reload.py
I think we can run in on python2.7 and we can install it inside of dockerfile if we need it.

@pavel-shirshov
Copy link
Contributor Author

We need more free space for our Jenkins

@pavel-shirshov
Copy link
Contributor Author

both model are supported, if it is unified configuration model, then use frr.conf. if it is separated configuration model, then use zebra.conf, bgpd.conf, and staticd.conf.

Currently frr.conf has preference over bgpd.conf/zebra.com/staticd.conf

src/libyang/Makefile Outdated Show resolved Hide resolved
rules/libyang.mk Outdated Show resolved Hide resolved
autorestart=false
startsecs=0
stdout_logfile=syslog
stderr_logfile=syslog
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lguohan @pavel-shirshov can we force this fix with a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Collaborator

@nazariig nazariig May 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavel-shirshov our regression fails because frr is missing staticd which is essential part of this suite, so i would like to ask you to force this fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nazarii-gnydyn
Can you please share some output?
On our side I see:

# ps ax
  PID TTY      STAT   TIME COMMAND
    1 pts/0    Ss+    0:01 /usr/bin/python /usr/bin/supervisord
   25 pts/0    Sl     0:00 /usr/sbin/rsyslogd -n
   30 pts/0    S      0:00 python /usr/bin/bgpcfgd
   33 pts/0    Sl     0:08 /usr/lib/frr/zebra -A 127.0.0.1 -s 90000000 -M fpm
   36 pts/0    S      0:00 /usr/lib/frr/staticd -A 127.0.0.1
   39 pts/0    Sl     0:02 /usr/lib/frr/bgpd -A 127.0.0.1
   47 pts/0    Sl     0:27 fpmsyncd
   49 pts/1    Ss     0:00 bash
   65 pts/1    R+     0:00 ps ax

Copy link
Collaborator

@nazariig nazariig May 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pavel-shirshov On our side (without this fix):

root@sonic:/home/admin# docker exec -ti bgp bash
root@sonic:/# ps -aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.5  0.2  58600 20444 pts/0    Ss+  13:03   0:00 /usr/bin/python /usr/bin/supervisord
root        29  0.0  0.0 250136  2860 pts/0    Sl   13:03   0:00 /usr/sbin/rsyslogd -n
root        34  0.0  0.1  45556 13788 pts/0    S    13:03   0:00 python /usr/bin/bgpcfgd
frr         37  0.1  0.0 298552  5884 pts/0    Sl   13:03   0:00 /usr/lib/frr/zebra -A 127.0.0.1 -s 90000000 -M fpm
frr         39  0.1  0.1 299900  8964 pts/0    Sl   13:03   0:00 /usr/lib/frr/bgpd -A 127.0.0.1
root        45  0.5  0.0 101356  4096 pts/0    Sl   13:03   0:00 fpmsyncd
root        47  2.5  0.0  18184  3152 pts/1    Ss   13:05   0:00 bash
root        53  0.0  0.0  36632  2748 pts/1    R+   13:05   0:00 ps -aux
root@sonic:/# supervisorctl status
bgpcfgd                          RUNNING   pid 34, uptime 0:02:00
bgpd                             RUNNING   pid 39, uptime 0:01:59
fpmsyncd                         RUNNING   pid 45, uptime 0:01:59
rsyslogd                         RUNNING   pid 29, uptime 0:02:00
start.sh                         EXITED    May 17 01:03 PM
vtysh_b                          STOPPED   Not started
zebra                            RUNNING   pid 37, uptime 0:01:59

@lguohan
Copy link
Collaborator

lguohan commented May 16, 2019

retest this please

@pavel-shirshov pavel-shirshov merged commit 1e3b62f into master May 16, 2019
@pavel-shirshov pavel-shirshov deleted the pavelsh/frr branch May 16, 2019 17:59
@nazariig
Copy link
Collaborator

#2914

@pavel-shirshov
Copy link
Contributor Author

@nazariig So it wasn't about staticd, but about swig. I have approved your PR. I'll push it as soon as mellonox build is done.

MichelMoriniaux pushed a commit to criteo-forks/sonic-buildimage that referenced this pull request May 28, 2019
* Update frr to frr-7.0.1

* Fix a typo

* Set right permissions on /etc/frr

* Convert external file links from debian to Azure

* Revert python3 fix

* Build frr using more than 1 job

* Add SWIG as dependency for libswss-common
mssonicbld added a commit that referenced this pull request Jul 14, 2023
…atically (#15812)

#### Why I did it
src/sonic-utilities
```
* 51c7a43c - (HEAD -> master, origin/master, origin/HEAD) [show][muxcable] update `show mux config` to print out `soc_ipv6` as well  (#2909) (6 hours ago) [Jing Zhang]
* fd497755 - [route_check][dualtor] Ignore vlan neighbor route miss (#2888) (18 hours ago) [Longxiang Lyu]
* 81c0ed4e - [show][muxcable] update `show mux tunnel-route` to check soc_ipv6 as well (33 hours ago) [Jing Zhang]
* 1ee73668 - [db_migrator] Migrate DNS configuratuion (#2893) (2 days ago) [ganglv]
* 553a3432 - [dualtor][route_check] filter out `soc_ipv6`  (#2899) (2 days ago) [Jing Zhang]
```
#### How I did it
#### How to verify it
#### Description for the changelog
yxieca pushed a commit that referenced this pull request Jul 14, 2023
…atically (#15835)

src/sonic-utilities

* bc7c7929 - (HEAD -> 202205, origin/202205) Add FEC correctable and uncorrectable port stats (#2027) (10 hours ago) [Prince George]
* 58db48ad - [show][muxcable] update `show mux tunnel-route` to check soc_ipv6 as well (10 hours ago) [Jing Zhang]
* 24fc1db8 - [dualtor][route_check] filter out `soc_ipv6`  (#2899) (10 hours ago) [Jing Zhang]
* d89d4832 - [route_check][dualtor] Ignore vlan neighbor route miss (#2888) (10 hours ago) [Longxiang Lyu]
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
…atically (sonic-net#15812)

#### Why I did it
src/sonic-utilities
```
* 51c7a43c - (HEAD -> master, origin/master, origin/HEAD) [show][muxcable] update `show mux config` to print out `soc_ipv6` as well  (sonic-net#2909) (6 hours ago) [Jing Zhang]
* fd497755 - [route_check][dualtor] Ignore vlan neighbor route miss (sonic-net#2888) (18 hours ago) [Longxiang Lyu]
* 81c0ed4e - [show][muxcable] update `show mux tunnel-route` to check soc_ipv6 as well (33 hours ago) [Jing Zhang]
* 1ee73668 - [db_migrator] Migrate DNS configuratuion (sonic-net#2893) (2 days ago) [ganglv]
* 553a3432 - [dualtor][route_check] filter out `soc_ipv6`  (sonic-net#2899) (2 days ago) [Jing Zhang]
```
#### How I did it
#### How to verify it
#### Description for the changelog
mlok-nokia pushed a commit to mlok-nokia/sonic-buildimage that referenced this pull request Jun 5, 2024
…t to verify consistency between kernel and ASIC (sonic-net#2840)

   * za32ddc1 [show][muxcable] update  to print out  as well  (sonic-net#2909)
   * 0c6d0c5 [202205] Flush RESTAPI db in fast-reboot shutdown path (sonic-net#2921)
   * bc7c792 Add FEC correctable and uncorrectable port stats (sonic-net#2027)
   * 58db48a [show][muxcable] update  to check soc_ipv6 as well
   * 24fc1db [dualtor][route_check] filter out   (sonic-net#2899)
   * d89d483 [route_check][dualtor] Ignore vlan neighbor route miss (sonic-net#2888)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants