sonic-net / sonic-net/sonic-buildimage

Z9264/201911-170/NAT is not running in the latest November image

Open
#5,259 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1k
Forks
2k
Avg merge
3d 14h
Merged PRs (30d)
237

Description

Description:
============

Nat container is not running in the latest image

root@sonic:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
28bc2fb500f3 docker-sonic-telemetry:latest "/usr/bin/supervisord" 5 hours ago Up 44 minutes telemetry
e27e5086141b docker-snmp-sv2:latest "/usr/bin/supervisord" 5 hours ago Up 44 minutes snmp
d63e7415c56a docker-lldp-sv2:latest "/usr/bin/docker-lld…" 5 hours ago Up About an hour lldp
96a4a65bfc34 docker-router-advertiser:latest "/usr/bin/docker-ini…" 5 hours ago Up About an hour radv
0f07e9f6aadc docker-sonic-mgmt-framework:latest "/usr/bin/supervisord" 5 hours ago Up About an hour mgmt-framework
955fdf680ddf docker-dhcp-relay:latest "/usr/bin/docker_ini…" 5 hours ago Up About an hour dhcp_relay
797ba772beec docker-syncd-brcm:latest "/usr/bin/supervisord" 5 hours ago Up About an hour syncd
b0387b9a1d2b docker-teamd:latest "/usr/bin/supervisord" 5 hours ago Up About an hour teamd
d2f1ecd5f4a3 docker-orchagent:latest "/usr/bin/docker-ini…" 5 hours ago Up About an hour swss
c9076d2c96da docker-fpm-frr:latest "/usr/bin/supervisord" 5 hours ago Up About an hour bgp
28cb8500068a docker-platform-monitor:latest "/usr/bin/docker_ini…" 5 hours ago Up About an hour pmon
3195be5b90ce docker-database:latest "/usr/local/bin/dock…" 5 hours ago Up About an hour database
root@sonic:~#

root@sonic:~# docker start nat
Error response from daemon: No such container: nat
Error: failed to start containers: nat

root@sonic:~# ps -ax | grep nat
8161 ttyS0 S+ 0:00 grep nat

root@sonic:~# systemctl start nat
Failed to start nat.service: Unit nat.service is masked.
root@sonic:~#

root@sonic:~# show ver

SONiC Software Version: SONiC.HEAD.170-c243b8a9
Distribution: Debian 9.13
Kernel: 4.9.0-11-2-amd64
Build commit: c243b8a9
Build date: Tue Aug 25 18:59:41 UTC 2020
Built by: johnar@jenkins-worker-7

Platform: x86_64-dellemc_z9264f_c3538-r0
HwSKU: DellEMC-Z9264f-C64
ASIC: broadcom
Serial Number: CN030K8MDND0093E0001
Uptime: 09:04:28 up 51 min, 1 user, load average: 0.81, 0.80, 0.81

Working image:
=============

root@sonic:~# ps -ax | grep nat
2797 ? Ss 0:00 /bin/bash /usr/bin/nat.sh wait
2803 ? Sl 0:04 docker wait nat
3054 ? S 0:00 python /usr/bin/supervisor-proc-exit-listener --container-name nat
3170 ? Sl 0:02 /usr/bin/natmgrd
3234 ? Sl 0:57 /usr/bin/natsyncd
7770 ttyS0 S+ 0:00 grep nat

root@sonic:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3d33718ffe73 docker-lldp-sv2:latest "/usr/bin/docker-lld…" 8 days ago Up 25 hours lldp
05f559c63a56 docker-sonic-telemetry:latest "/usr/bin/supervisord" 12 days ago Up 25 hours telemetry
b28ebb2967ca docker-snmp-sv2:latest "/usr/bin/supervisord" 12 days ago Up 25 hours snmp
ac912fc0a3cc docker-nat:latest "/usr/bin/supervisord" 12 days ago Up 25 hours nat >>>>>>>>>>>>>>>>>>>>>>
9394019bfed8 docker-dhcp-relay:latest "/usr/bin/docker_ini…" 12 days ago Up 25 hours dhcp_relay
c68a0a4efef4 docker-router-advertiser:latest "/usr/bin/supervisord" 12 days ago Up 25 hours radv
7db3c728f766 docker-sonic-mgmt-framework:latest "/usr/bin/supervisord" 12 days ago Up 25 hours mgmt-framework
3b1703a37909 docker-syncd-brcm:latest "/usr/bin/supervisord" 12 days ago Up 25 hours syncd
b7288f2f38ca docker-teamd:latest "/usr/bin/supervisord" 12 days ago Up 25 hours teamd
47707fffc9f6 docker-orchagent:latest "/usr/bin/supervisord" 12 days ago Up 25 hours swss
37560538e181 docker-fpm-frr:latest "/usr/bin/supervisord" 12 days ago Up 25 hours bgp
928ba16bfeb0 docker-platform-monitor:latest "/usr/bin/docker_ini…" 12 days ago Up 25 hours pmon
9a9517cac12b docker-database:latest "/usr/local/bin/dock…" 12 days ago Up 25 hours database
root@sonic:~#

Thanks
Mini

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with /usr/bin/nat.sh, nat.service, and the docker-nat image, comparing the failing image's container and process state with the working image. Check why nat is absent and the service is masked; done means the November image creates and runs the nat container with the expected NAT processes.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, shell
Domain
infrastructure, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.