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

"systemctl restart swss" causes PORT_TABLE ConfigDone set prematurely #295

Closed
jipanyang opened this issue Aug 25, 2017 · 1 comment
Closed
Labels

Comments

@jipanyang
Copy link
Contributor

Since all Ethernet ports have been created with previous swss instance, upon portsyncd netlink registration, kernel will send RTM_NEWLINK notification for all ports to portsyncd. Portsyncd set PORT_TABLE ConfigDone after seeing all the physical ports.

Orchagent deletes and recreates those Ethernet port later, and that will cause issue on configurations which have dependency on the existence of Ethernet ports.

Aug 24 23:27:57.0 sonic INFO supervisord: portsyncd Read port configuration file...
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet44 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:768 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet19 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:769 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet10 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:770 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet31 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:771 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet38 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:772 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet45 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:773 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet23 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:774 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet34 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:775 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet6 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:776 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet18 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:777 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet0 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:778 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet39 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:779 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet35 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:780 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet1 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:781 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet5 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:782 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet17 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:783 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet12 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:784 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet25 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:785 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet22 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:786 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet41 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:787 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet32 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:788 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet2 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:789 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet4 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:790 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet24 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:791 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet14 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:792 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet26 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:793 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet16 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:794 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet40 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:795 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet60 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:796 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet36 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:797 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet42 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:798 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet29 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:799 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet64 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:800 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet15 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:801 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet47 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:802 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet11 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:803 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:PortChannel46 admin:1 oper:1 addr:00:05:64:30:73:c0 ifindex:693 master:0 type:team
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet68 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:750 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet27 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:751 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet46 admin:1 oper:1 addr:00:05:64:30:73:c0 ifindex:752 master:693
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet20 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:753 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet43 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:754 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet8 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:755 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet3 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:756 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet9 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:757 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet33 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:758 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet30 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:759 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet37 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:760 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet7 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:761 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet56 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:762 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet13 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:763 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet48 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:764 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet21 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:765 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet28 admin:0 oper:0 addr:00:05:64:30:73:c0 ifindex:766 master:0
Aug 24 23:27:57.0 sonic INFO portsyncd: :- onMsg: nlmsg type:16 key:Ethernet52 admin:1 oper:1 addr:00:05:64:30:73:c0 ifindex:767 master:0

@jipanyang
Copy link
Contributor Author

Fixed with #389

EdenGri pushed a commit to EdenGri/sonic-swss that referenced this issue Feb 28, 2022
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this issue Mar 1, 2023
…et#295)

* Add packaging for syncd-rpc

* Remove old counter thread interval command line options

* fix syncd test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants