opencord / voltha

Virtual OLT Hardware Abstraction
Apache License 2.0
82 stars 169 forks source link

In RG docker, can not run dhclient #2

Open hongshengzhang opened 7 years ago

hongshengzhang commented 7 years ago

I can't run dhclient in RG docker container, "it shows dhclient: error while loading shared libraries: libdns-export.so.162: cannot open shared object file: No such file or directory", however the so locates in the dir "/lib/x86_64-linux-gnu/" , and the path is include by /etc/ld.so.conf. Log show below

docker run --net=host --privileged --name RG -it cord/tester bash root@ubuntu-x64:/lib/x86_64-linux-gnu# dhclient pon1_128 dhclient: error while loading shared libraries: libdns-export.so.162: cannot open shared object file: No such file or directory root@ubuntu-x64:/lib/x86_64-linux-gnu# ls -l /lib/x86_64-linux-gnu/libdns-export.so.162* lrwxrwxrwx 1 root root 24 Apr 12 09:23 /lib/x86_64-linux-gnu/libdns-export.so.162 -> libdns-export.so.162.1.3 -rw-r--r-- 1 root root 1937280 Apr 12 09:23 /lib/x86_64-linux-gnu/libdns-export.so.162.1.3

hongshengzhang commented 7 years ago

when I use command docker cp /sbin/dhclient RG:/usr/sbin/dhclient, the cp dhclient can work success, but there is another issue , interface pon1_128 can not get ipaddr from dhcp. From ponsim log, I can see ponsim olt has send out dhcp discovery after add double tag(4000, 128), the logs:

20170511T172015.259 DEBUG realio.ingress {frame: ffffffffffffde60fc525485080045100148000000008011399600000000ffffffff0044004301343e6301010600a14416140122000000000000000000000000000000000000de60fc52548500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000638253633501010c0a7562756e74752d783634370d011c02030f06770c2c2f1a792aff0000000000000000000000000000000000000000000000000000000000, port: 128, iface_name: pon1_128sim, event: ingress, instance_id: pon1} 20170511T172015.260 DEBUG ponsim.ingress {logical_port_no: 128, name: onu0, ingress_port: 2, event: ingress, instance_id: pon1} 20170511T172015.260 INFO ponsim.count_rx_frame {port: 2, size: 328, event: counting-rx-frame, instance_id: pon1} 20170511T172015.262 DEBUG ponsim.ingress {logical_port_no: 128, name: onu0, egress_port: 1, event: forwarding, instance_id: pon1} 20170511T172015.262 DEBUG ponsim.ingress {logical_port_no: 0, name: olt, ingress_port: 1, event: ingress, instance_id: pon1} 20170511T172015.263 INFO ponsim.count_rx_frame {port: 1, size: 332, event: counting-rx-frame, instance_id: pon1} 20170511T172015.266 DEBUG ponsim.ingress {logical_port_no: 0, name: olt, egress_port: 2, event: forwarding, instance_id: pon1} 20170511T172015.270 DEBUG realio.egress {frame: ffffffffffffde60fc52548581000fa081000080080045100148000000008011399600000000ffffffff0044004301343e6301010600a14416140122000000000000000000000000000000000000de60fc52548500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000638253633501010c0a7562756e74752d783634370d011c02030f06770c2c2f1a792aff0000000000000000000000000000000000000000000000000000000000, port: 0, event: sending, instance_id: pon1}