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

caclmgrd: KeyError in config_db_map[namespace].get_table #8

Open
bluecmd opened this issue Feb 19, 2024 · 0 comments
Open

caclmgrd: KeyError in config_db_map[namespace].get_table #8

bluecmd opened this issue Feb 19, 2024 · 0 comments

Comments

@bluecmd
Copy link
Member

bluecmd commented Feb 19, 2024

./syslog.1:Feb 19 01:16:18.759914 ixp-lab-sw2 INFO caclmgrd[404442]: Starting up ...
./syslog.1:Feb 19 01:16:18.765596 ixp-lab-sw2 INFO caclmgrd[404442]: Issuing the following iptables commands:
./syslog.1:Feb 19 01:16:18.765696 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -P INPUT ACCEPT
./syslog.1:Feb 19 01:16:18.765754 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -P FORWARD ACCEPT
./syslog.1:Feb 19 01:16:18.765808 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -P OUTPUT ACCEPT
./syslog.1:Feb 19 01:16:18.765861 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -F INPUT
./syslog.1:Feb 19 01:16:18.765914 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -F FORWARD
./syslog.1:Feb 19 01:16:18.765974 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -F OUTPUT
./syslog.1:Feb 19 01:16:18.766027 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -P INPUT ACCEPT
./syslog.1:Feb 19 01:16:18.766080 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -P FORWARD ACCEPT
./syslog.1:Feb 19 01:16:18.766137 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -P OUTPUT ACCEPT
./syslog.1:Feb 19 01:16:18.766198 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -F
./syslog.1:Feb 19 01:16:18.766267 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -X
./syslog.1:Feb 19 01:16:18.766320 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -s 127.0.0.1 -i lo -j ACCEPT
./syslog.1:Feb 19 01:16:18.766383 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -s ::1 -i lo -j ACCEPT
./syslog.1:Feb 19 01:16:18.766436 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -s 127.0.0.1 -i mgmt -j ACCEPT
./syslog.1:Feb 19 01:16:18.766488 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -s ::1 -i mgmt -j ACCEPT
./syslog.1:Feb 19 01:16:18.766544 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
./syslog.1:Feb 19 01:16:18.766600 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
./syslog.1:Feb 19 01:16:18.766656 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
./syslog.1:Feb 19 01:16:18.766716 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -p icmp --icmp-type echo-reply -j ACCEPT
./syslog.1:Feb 19 01:16:18.766768 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT
./syslog.1:Feb 19 01:16:18.766820 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT
./syslog.1:Feb 19 01:16:18.766873 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type echo-request -j ACCEPT
./syslog.1:Feb 19 01:16:18.766925 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type echo-reply -j ACCEPT
./syslog.1:Feb 19 01:16:18.766981 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type destination-unreachable -j ACCEPT
./syslog.1:Feb 19 01:16:18.767045 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type time-exceeded -j ACCEPT
./syslog.1:Feb 19 01:16:18.767101 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type neighbor-solicitation -j ACCEPT
./syslog.1:Feb 19 01:16:18.767154 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type neighbor-advertisement -j ACCEPT
./syslog.1:Feb 19 01:16:18.767207 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type router-solicitation -j ACCEPT
./syslog.1:Feb 19 01:16:18.767259 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p icmpv6 --icmpv6-type router-advertisement -j ACCEPT
./syslog.1:Feb 19 01:16:18.767311 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -p udp --dport 67:68 -j ACCEPT
./syslog.1:Feb 19 01:16:18.767363 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p udp --dport 67:68 -j ACCEPT
./syslog.1:Feb 19 01:16:18.767416 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -p udp --dport 546:547 -j ACCEPT
./syslog.1:Feb 19 01:16:18.767474 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p udp --dport 546:547 -j ACCEPT
./syslog.1:Feb 19 01:16:18.767527 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -d 10.1.0.3 -j DROP
./syslog.1:Feb 19 01:16:18.767579 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -d 10.0.0.3 -j DROP
./syslog.1:Feb 19 01:16:18.767632 ixp-lab-sw2 INFO caclmgrd[404442]:   iptables -A INPUT -p udp --dport 33434:33523 -j REJECT --reject-with icmp-port-unreachable
./syslog.1:Feb 19 01:16:18.767684 ixp-lab-sw2 INFO caclmgrd[404442]:   ip6tables -A INPUT -p udp --dport 33434:33523 -j REJECT --reject-with icmp6-port-unreachable
./syslog.1:Feb 19 01:16:18.873005 ixp-lab-sw2 INFO caclmgrd[404442]: Issuing the following iptables commands:
./syslog.1:Feb 19 01:16:18.874496 ixp-lab-sw2 INFO caclmgrd[404442]: Traceback (most recent call last):
./syslog.1:Feb 19 01:16:18.874561 ixp-lab-sw2 INFO caclmgrd[404442]:   File "/usr/local/bin/caclmgrd", line 1082, in <module>
./syslog.1:Feb 19 01:16:18.874760 ixp-lab-sw2 INFO caclmgrd[404442]:     main()
./syslog.1:Feb 19 01:16:18.874808 ixp-lab-sw2 INFO caclmgrd[404442]:   File "/usr/local/bin/caclmgrd", line 1078, in main
./syslog.1:Feb 19 01:16:18.874968 ixp-lab-sw2 INFO caclmgrd[404442]:     caclmgr.run()
./syslog.1:Feb 19 01:16:18.875015 ixp-lab-sw2 INFO caclmgrd[404442]:   File "/usr/local/bin/caclmgrd", line 1048, in run
./syslog.1:Feb 19 01:16:18.875160 ixp-lab-sw2 INFO caclmgrd[404442]:     if self.config_db_map[namespace].get_table(self.ACL_TABLE)[acl_table]["type"] == self.ACL_TABLE_TYPE_CTRLPLANE:
./syslog.1:Feb 19 01:16:18.875222 ixp-lab-sw2 INFO caclmgrd[404442]: KeyError: 'ACL-IPV4-PERMIT-ALL-EXCEPT-BGP'
./syslog.1:Feb 19 01:16:18.884916 ixp-lab-sw2 NOTICE systemd[1]: caclmgrd.service: Main process exited, code=exited, status=1/FAILURE
@bluecmd bluecmd changed the title caclmgrd: Crash caclmgrd: KeyError in elf.config_db_map[namespace].get_table Feb 19, 2024
@bluecmd bluecmd changed the title caclmgrd: KeyError in elf.config_db_map[namespace].get_table caclmgrd: KeyError in config_db_map[namespace].get_table Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant