CiscoDevNet / learning-labs-issues

Defects and bugs in learning lab content and project management
4 stars 0 forks source link

Cannot verify Port forwarding to the gRPC server in IOS XR Telemetry Learning Lab #335

Open annegentle opened 2 years ago

annegentle commented 2 years ago

In this Learning Lab step, the Sandbox isn't doing a telnet step here: https://developer.cisco.com/learning/modules/iosxr-streaming-telemetry/03-iosxr-02-telemetry-python/step/2

Last login: Fri Oct 11 19:36:14 2019 from 192.168.122.1
admin@devbox:~$ ls
bigmuddy-network-telemetry-proto  iosxr-programmability-devnet-labs-code  telemetry
bootstrap-salt.sh                 README.md                               telemetry-grpc-collectors
hello-ydk.py                      service-layer-objmodel                  yang
admin@devbox:~$ python hello-ydk.py ssh://admin:admin@10.10.20.70:8321
System uptime is 0:13:29
admin@devbox:~$ python hello-ydk.py ssh://admin:admin@10.10.20.70:8331
System uptime is 0:13:17
admin@devbox:~$ telnet 192.168.122.21 57777
Trying 192.168.122.21...
telnet: Unable to connect to remote host: Connection refused

I'm not sure if this is a Sandbox problem or a Learning Lab problem.

bigevilbeard commented 2 years ago

Hey @annegentle i look at this of comment data, i got the same output as yourself. The reason why i think telnet fails is due to the grpc being configured for only IPv6

RP/0/RP0/CPU0:r1#sh run grpc
Wed Mar  9 11:37:47.733 UTC
grpc
 port 57777
 no-tls
 address-family ipv6

When you change this to IPv4 this works

RP/0/RP0/CPU0:r1#sh run grpc
Wed Mar  9 11:43:15.806 UTC
grpc
 port 57777
 no-tls
 address-family ipv4
!
admin@devbox:~$ telnet 192.168.122.21 57777
Trying 192.168.122.21...
Connected to 192.168.122.21.
Escape character is '^]'.
telnet> q
Connection closed.
admin@devbox:~$ telnet 10.10.20.70 57021
Trying 10.10.20.70...
Connected to 10.10.20.70.
Escape character is '^]'.
telnet> q
Connection closed.

I made the mistake in the LL by adding the config with IPv6

By default, the gRPC server is set up for the IPv4 address family only. If you'd like to enable the gRPC port for IPv6 client connections, then use the following configuration snippet

Did you add the IPv6 configuration also?

As far as i see this is working correctly. Hope this helps