cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
714
Views
0
Helpful
2
Replies

NSO Docker

jeyriku
Level 1
Level 1

Hi Devnet team,

 

Thanks to the following great article, https://developer.cisco.com/codeexchange/github/repo/NSO-developer/nso-docker

i was able to deploy an instance of NSO using a docker container.

However, as soon as i expose & publish some ports i can not access NSO webui:

 

Capture d’écran 2022-05-02 à 14.13.07.png

 

d64c559c9e15   cisco-nso-dev:5.5.3      "/enter-shell.sh"   9 minutes ago   Up 9 minutes   0.0.0.0:222->22/tcp, 0.0.0.0:82->80/tcp, :::82->80/tcp, 0.0.0.0:4443->443/tcp, :::4443->443/tcp, 0.0.0.0:8082->8080/tcp, :::8082->8080/tcp   nsojey

Can you please lead me to the correct direction ?

 

Thanks in advance,

 

Jerems,

1 Accepted Solution

Accepted Solutions

u.avsec
Spotlight
Spotlight

Hey.

I would troubleshoot like this:

  1. Try another browser (so if Firefox is not opening it, try Chrome and vice versa
  2. Go to container and:
    1. Make sure NSO is actually up and running
    2. Issue:
      curl -k -X GET https://localhost:443/restconf/data -H 'Accept: application/yang-data+json' -u admin:admin -v
    3. Check ncs.conf if RESTCONF or webui is 'false'
  3. On docker host issue
    curl -k -X GET https://localhost:4443/restconf/data -H 'Accept: application/yang-data+json' -u admin:admin -v
  4. Try telneting from your PC to X.X.X.X 4443 (here I suppose you use windows PC, if you have mac or linux pc, try curl like above)

If 3. is fine but 4. fails then you need to have a word with whoever is doing firewalls.

View solution in original post

2 Replies 2

u.avsec
Spotlight
Spotlight

Hey.

I would troubleshoot like this:

  1. Try another browser (so if Firefox is not opening it, try Chrome and vice versa
  2. Go to container and:
    1. Make sure NSO is actually up and running
    2. Issue:
      curl -k -X GET https://localhost:443/restconf/data -H 'Accept: application/yang-data+json' -u admin:admin -v
    3. Check ncs.conf if RESTCONF or webui is 'false'
  3. On docker host issue
    curl -k -X GET https://localhost:4443/restconf/data -H 'Accept: application/yang-data+json' -u admin:admin -v
  4. Try telneting from your PC to X.X.X.X 4443 (here I suppose you use windows PC, if you have mac or linux pc, try curl like above)

If 3. is fine but 4. fails then you need to have a word with whoever is doing firewalls.

Hi @u.avsec,

 

First of all, thank you for reverting to me. I finally found my way in this "maze" but i keep your tshoot steps for sure !

As you mentioned it, the webui is in the "false" boolean state by default. I solved my issue by putting it into "true".

Now i'm struggling with ADMIN_PASSWORD which seems to not apply the password i want to set.

I'm going to cretate another topic about what should be the step from moving to a basic development install to a docker base install of NSO.

Thank you again for your help.

 

Jerems