BroadbandForum / obbaa

A reference implementation for standardized, automated Cloud-based Access Services.
https://obbaa.broadband-forum.org
Apache License 2.0
24 stars 12 forks source link

The configuration does not work after restarting olt. #16

Closed Bai-genew closed 2 years ago

Bai-genew commented 2 years ago

Dear @selvaitech, After the configuration file 2_grpc-settings_1.0.xml is issued, port 8433 is established. However, after restarting olt, port 8433 will disappear. The configuration file 2_grpc-settings_1.0.xml or configuration file force-align.xml was issued, but port 8433 still did not appear.

log:(before restarting olt) netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:21 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:
LISTEN
tcp 0 0 10.148.6.6:22 10.148.6.19:2107 ESTABLISHED tcp 0 0 192.168.3.9:10830 192.168.3.219:38886 ESTABLISHED tcp 0 128 10.148.6.6:22 10.148.6.19:2104 ESTABLISHED tcp 0 0 192.168.3.9:22 192.168.3.143:16556 ESTABLISHED tcp 0 0 10.148.6.6:22 10.148.6.19:2349 ESTABLISHED tcp 0 1040 192.168.3.9:22 192.168.3.143:1040 ESTABLISHED tcp 0 0 192.168.3.9:52655 192.168.3.219:8433 ESTABLISHED tcp 0 0 192.168.3.9:22 192.168.3.143:2383 ESTABLISHED tcp 0 0 192.168.3.9:22 192.168.3.143:2382 ESTABLISHED udp 0 0 0.0.0.0:50200 0.0.0.0:*
Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 894 @bcm68620_root unix 2 [ ACC ] STREAM LISTENING 4619 @bcm68620_root.log unix 3 [ ] STREAM CONNECTED 7006 @bcm68620_root unix 3 [ ] STREAM

log:(After restarting olt) netstat -an Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:10830 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:
LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN
tcp 0 0 192.168.3.9:22 192.168.3.143:13817 ESTABLISHED tcp 0 0 192.168.3.9:22 192.168.3.143:13818 ESTABLISHED tcp 0 0 192.168.3.9:10830 192.168.3.219:38918 ESTABLISHED tcp 0 144 10.148.6.6:22 10.148.6.19:13815 ESTABLISHED tcp 0 1040 192.168.3.9:22 192.168.3.143:13836 ESTABLISHED udp 0 0 0.0.0.0:50200 0.0.0.0:

Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 2138 @bcm68620_root unix 2 [ ACC ] STREAM LISTENING 2136 @bcm68620_root.log unix 3 [ ] STREAM CONNECTED 2179 unix 3 [ ] STREAM CONNECTED 4874 @bcm68620_root
CONFIG.zip

igortern commented 2 years ago

It looks like a known problem. Lets call it "a feature". OB-BAA sends an empty copy-config to the OLT immediately after "device create" request. This copy config kills all the existing OLT configuration, including ietf-netconf-server. In result, netopeer2-server stops listening for new incoming connections. If OLT device is destroyed in OB-BAA and then re-created, it doesn't work because OLT is not accepting connections. I was told that it is possible to setup OB-BAA so that it will send some initial configuration in the copy-config request. That should allow to re-instate ietf-netconf-server configuration so that it keeps listening on the port 8433. I don't know how to do it, re-assigning this ticket to the OB-BAA team

selvaitech commented 2 years ago

@Bai-genew, can you use the tag push-pma-configuration-to-device set to "false" and try the steps? If this flag is set to false, OB-BAA will not be sending the initial config(copy-config) towards the device so that the device configurations are not erased.

Sample request: image