srl-labs / containerlab

container-based networking labs
https://containerlab.dev
BSD 3-Clause "New" or "Revised" License
1.54k stars 263 forks source link

mysocketctl not working, authentication token seems not able to passed to docker, tested in both windows 10 wsl2 and macos #1086

Closed hyson007 closed 2 years ago

hyson007 commented 2 years ago

[windows10] environment: wsl2 debug logs:

pi-user@DESKTOP-6JI791B:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab$ sudo containerlab deploy -d
DEBU[0000] trying to find topology files automatically
DEBU[0000] topology file found: ceos01.clab.yml
INFO[0000] Containerlab v0.32.3 started
DEBU[0000] template variables: <nil>
DEBU[0000] topology:
# topology documentation: http://containerlab.dev/lab-examples/srl-ceos/
name: ceos01

topology:
  nodes:
    site1-r1:
      kind: ceos
      image: ceos:4.29.02F
      publish:
        - http/443
    site1-r2:
      kind: ceos
      image: ceos:4.29.02F
      publish:
        - http/443
    site2-r1:
      kind: ceos
      image: ceos:4.29.02F
      publish:
        - http/443
    site3-r1:
      kind: ceos
      image: ceos:4.29.02F
      publish:
        - http/443
    mysocketio:
      kind: mysocketio
      image: ghcr.io/hellt/mysocketctl:0.5.0
      binds:
        - .mysocketio_token:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/.mysocketio_token

  links:
    - endpoints: ["site1-r1:eth1", "site1-r2:eth1"]
    - endpoints: ["site1-r2:eth2", "site2-r1:eth1"]
    - endpoints: ["site2-r1:eth2", "site3-r1:eth2"]
    - endpoints: ["site3-r1:eth3", "site1-r1:eth3"]

DEBU[0000] method initMgmtNetwork was called mgmt params &{Network: Bridge: IPv4Subnet: IPv4Gw: IPv6Subnet: IPv6Gw: MTU: ExternalAccess:<nil>}
DEBU[0000] New mgmt params are &{Network:clab Bridge: IPv4Subnet:172.20.20.0/24 IPv4Gw: IPv6Subnet:2001:172:20:20::/64 IPv6Gw: MTU: ExternalAccess:0xc000ca591a}
DEBU[0000] envN runtime var value is
DEBU[0000] Running runtime.Init with params &{Timeout:2m0s GracefulShutdown:false Debug:false KeepMgmtNet:false} and &{Network:clab Bridge: IPv4Subnet:172.20.20.0/24 IPv4Gw: IPv6Subnet:2001:172:20:20::/64 IPv6Gw: MTU: ExternalAccess:0xc000ca591a}
DEBU[0000] Runtime: Docker
DEBU[0000] detected docker network mtu value - 1500
DEBU[0000] initialized a runtime with params &{config:{Timeout:120000000000 GracefulShutdown:false Debug:false KeepMgmtNet:false} Client:0xc00051b500 mgmt:0xc0000ae180}
INFO[0000] Parsing & checking topology file: ceos01.clab.yml
DEBU[0000] node config: &{ShortName:mysocketio LongName:clab-ceos01-mysocketio Fqdn:mysocketio.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/mysocketio Index:0 Group: Kind:mysocketio StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc0007460fb ResStartupConfig: Config:<nil> ResConfig: NodeType: Position: License: Image:ghcr.io/hellt/mysocketctl:0.5.0 Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[] Binds:[] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[] ExtraHosts:[] Labels:map[] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] node config: &{ShortName:site1-r1 LongName:clab-ceos01-site1-r1 Fqdn:site1-r1.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r1 Index:1 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc00074666f ResStartupConfig: Config:<nil> ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[] Binds:[] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] node config: &{ShortName:site1-r2 LongName:clab-ceos01-site1-r2 Fqdn:site1-r2.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r2 Index:2 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc000746c0e ResStartupConfig: Config:<nil> ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[] Binds:[] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] node config: &{ShortName:site2-r1 LongName:clab-ceos01-site2-r1 Fqdn:site2-r1.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site2-r1 Index:3 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc0007471ae ResStartupConfig: Config:<nil> ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[] Binds:[] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] node config: &{ShortName:site3-r1 LongName:clab-ceos01-site3-r1 Fqdn:site3-r1.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site3-r1 Index:4 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc000747738 ResStartupConfig: Config:<nil> ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[] Binds:[] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] lab Conf: &{Name:ceos01 Prefix:0xc000758130 Mgmt:0xc0000ae180 Topology:0xc000cf0a50}
DEBU[0000] Env: CLAB_VERSION_CHECK=
DEBU[0000] proc/2/status file was not found. This means we run in a container and no virt checks are possible
DEBU[0000] Looking up ghcr.io/hellt/mysocketctl:0.5.0 Docker image
DEBU[0000] Image ghcr.io/hellt/mysocketctl:0.5.0 present, skip pulling
DEBU[0000] Looking up ceos:4.29.02F Docker image
DEBU[0000] Image ceos:4.29.02F present, skip pulling
DEBU[0000] Number of vcpu: 8
INFO[0000] Creating lab directory: /mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01
DEBU[0000] error while trying to access file /root/.ssh/authorized_keys: stat /root/.ssh/authorized_keys: no such file or directory
DEBU[0000] no public keys found
DEBU[0000] Checking if docker network "clab" exists
DEBU[0000] Network "clab" does not exist
INFO[0000] Creating docker network: Name="clab", IPv4Subnet="172.20.20.0/24", IPv6Subnet="2001:172:20:20::/64", MTU="1500"
DEBU[0000] Docker network "clab", bridge name "br-f764c39be51c"
DEBU[0000] Disable RPF check on the docker host
DEBU[0000] Enable LLDP on the linux bridge br-f764c39be51c
DEBU[0000] Disabling TX checksum offloading for the br-f764c39be51c bridge interface...
DEBU[0000] Installing iptables rules for bridge "br-f764c39be51c"
DEBU[0000] Dependencies:
site1-r1 -> [  ]
site1-r2 -> [  ]
site2-r1 -> [  ]
site3-r1 -> [  ]
mysocketio -> [  ]
DEBU[0000] - cycle check round 1 -
site1-r2 <- [  ]
site2-r1 <- [  ]
site3-r1 <- [  ]
mysocketio <- [  ]
site1-r1 <- [  ]
DEBU[0000] node creation graph is successfully validated as being acyclic
DEBU[0000] Worker 0 received node: &{ShortName:site3-r1 LongName:clab-ceos01-site3-r1 Fqdn:site3-r1.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site3-r1 Index:4 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc000747738 ResStartupConfig: Config:0xc000288398 ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd:bash -c '/mnt/flash/if-wait.sh ; exec /sbin/init systemd.setenv=MAPETH0=1 systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=INTFTYPE=eth ' Exec:[] Env:map[CEOS:1 CLAB_INTFS:2 CLAB_LABEL_CLAB_NODE_GROUP: CLAB_LABEL_CLAB_NODE_KIND:ceos CLAB_LABEL_CLAB_NODE_LAB_DIR:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site3-r1 CLAB_LABEL_CLAB_NODE_NAME:site3-r1 CLAB_LABEL_CLAB_NODE_TYPE: CLAB_LABEL_CLAB_TOPO_FILE:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml CLAB_LABEL_CONTAINERLAB:ceos01 EOS_PLATFORM:ceoslab ETBA:1 INTFTYPE:eth MAPETH0:1 MGMT_INTF:eth0 SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT:1 container:docker] Binds:[/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site3-r1/flash:/mnt/flash/] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress:00:1c:73:ff:07:19 ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[clab-mgmt-net-bridge:br-f764c39be51c clab-node-group: clab-node-kind:ceos clab-node-lab-dir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site3-r1 clab-node-name:site3-r1 clab-node-type: clab-topo-file:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml containerlab:ceos01] Endpoints:[{Node:0xc000e1c000 EndpointName:eth2 MAC:aa:c1:ab:83:f5:34} {Node:0xc000e1c000 EndpointName:eth3 MAC:aa:c1:ab:c3:c3:9b}] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] Worker 3 received node: &{ShortName:site1-r2 LongName:clab-ceos01-site1-r2 Fqdn:site1-r2.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r2 Index:2 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc000746c0e ResStartupConfig: Config:0xc000288118 ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd:bash -c '/mnt/flash/if-wait.sh ; exec /sbin/init systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=INTFTYPE=eth systemd.setenv=MAPETH0=1 ' Exec:[] Env:map[CEOS:1 CLAB_INTFS:2 CLAB_LABEL_CLAB_NODE_GROUP: CLAB_LABEL_CLAB_NODE_KIND:ceos CLAB_LABEL_CLAB_NODE_LAB_DIR:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r2 CLAB_LABEL_CLAB_NODE_NAME:site1-r2 CLAB_LABEL_CLAB_NODE_TYPE: CLAB_LABEL_CLAB_TOPO_FILE:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml CLAB_LABEL_CONTAINERLAB:ceos01 EOS_PLATFORM:ceoslab ETBA:1 INTFTYPE:eth MAPETH0:1 MGMT_INTF:eth0 SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT:1 container:docker] Binds:[/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r2/flash:/mnt/flash/] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress:00:1c:73:7d:3e:71 ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[clab-mgmt-net-bridge:br-f764c39be51c clab-node-group: clab-node-kind:ceos clab-node-lab-dir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r2 clab-node-name:site1-r2 clab-node-type: clab-topo-file:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml containerlab:ceos01] Endpoints:[{Node:0xc000769180 EndpointName:eth1 MAC:aa:c1:ab:f4:9e:1e} {Node:0xc000769180 EndpointName:eth2 MAC:aa:c1:ab:cc:44:38}] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] Worker 2 received node: &{ShortName:site1-r1 LongName:clab-ceos01-site1-r1 Fqdn:site1-r1.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r1 Index:1 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc00074666f ResStartupConfig: Config:0xc0002880a0 ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd:bash -c '/mnt/flash/if-wait.sh ; exec /sbin/init systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=INTFTYPE=eth systemd.setenv=MAPETH0=1 systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker ' Exec:[] Env:map[CEOS:1 CLAB_INTFS:2 CLAB_LABEL_CLAB_NODE_GROUP: CLAB_LABEL_CLAB_NODE_KIND:ceos CLAB_LABEL_CLAB_NODE_LAB_DIR:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r1 CLAB_LABEL_CLAB_NODE_NAME:site1-r1 CLAB_LABEL_CLAB_NODE_TYPE: CLAB_LABEL_CLAB_TOPO_FILE:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml CLAB_LABEL_CONTAINERLAB:ceos01 EOS_PLATFORM:ceoslab ETBA:1 INTFTYPE:eth MAPETH0:1 MGMT_INTF:eth0 SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT:1 container:docker] Binds:[/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r1/flash:/mnt/flash/] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress:00:1c:73:69:26:ae ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[clab-mgmt-net-bridge:br-f764c39be51c clab-node-group: clab-node-kind:ceos clab-node-lab-dir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r1 clab-node-name:site1-r1 clab-node-type: clab-topo-file:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml containerlab:ceos01] Endpoints:[{Node:0xc000768a80 EndpointName:eth1 MAC:aa:c1:ab:ba:b8:83} {Node:0xc000768a80 EndpointName:eth3 MAC:aa:c1:ab:c7:40:e2}] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] Worker 4 received node: &{ShortName:site2-r1 LongName:clab-ceos01-site2-r1 Fqdn:site2-r1.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site2-r1 Index:3 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc0007471ae ResStartupConfig: Config:0xc0002882f0 ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd:bash -c '/mnt/flash/if-wait.sh ; exec /sbin/init systemd.setenv=INTFTYPE=eth systemd.setenv=MAPETH0=1 systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab systemd.setenv=container=docker systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 ' Exec:[] Env:map[CEOS:1 CLAB_INTFS:2 CLAB_LABEL_CLAB_NODE_GROUP: CLAB_LABEL_CLAB_NODE_KIND:ceos CLAB_LABEL_CLAB_NODE_LAB_DIR:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site2-r1 CLAB_LABEL_CLAB_NODE_NAME:site2-r1 CLAB_LABEL_CLAB_NODE_TYPE: CLAB_LABEL_CLAB_TOPO_FILE:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml CLAB_LABEL_CONTAINERLAB:ceos01 EOS_PLATFORM:ceoslab ETBA:1 INTFTYPE:eth MAPETH0:1 MGMT_INTF:eth0 SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT:1 container:docker] Binds:[/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site2-r1/flash:/mnt/flash/] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress:00:1c:73:f9:d5:a2 ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[http/443] ExtraHosts:[] Labels:map[clab-mgmt-net-bridge:br-f764c39be51c clab-node-group: clab-node-kind:ceos clab-node-lab-dir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site2-r1 clab-node-name:site2-r1 clab-node-type: clab-topo-file:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml containerlab:ceos01] Endpoints:[{Node:0xc000769880 EndpointName:eth1 MAC:aa:c1:ab:ad:6c:4e} {Node:0xc000769880 EndpointName:eth2 MAC:aa:c1:ab:4a:ef:5f}] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] Worker 1 received node: &{ShortName:mysocketio LongName:clab-ceos01-mysocketio Fqdn:mysocketio.ceos01.io LabDir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/mysocketio Index:0 Group: Kind:mysocketio StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc0007460fb ResStartupConfig: Config:0xc000288028 ResConfig: NodeType: Position: License: Image:ghcr.io/hellt/mysocketctl:0.5.0 Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[CLAB_INTFS:0 CLAB_LABEL_CLAB_NODE_GROUP: CLAB_LABEL_CLAB_NODE_KIND:mysocketio CLAB_LABEL_CLAB_NODE_LAB_DIR:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/mysocketio CLAB_LABEL_CLAB_NODE_NAME:mysocketio CLAB_LABEL_CLAB_NODE_TYPE: CLAB_LABEL_CLAB_TOPO_FILE:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml CLAB_LABEL_CONTAINERLAB:ceos01] Binds:[/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/.mysocketio_token:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/.mysocketio_token] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[] ExtraHosts:[] Labels:map[clab-mgmt-net-bridge:br-f764c39be51c clab-node-group: clab-node-kind:mysocketio clab-node-lab-dir:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/mysocketio clab-node-name:mysocketio clab-node-type: clab-topo-file:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml containerlab:ceos01] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] creating links...
INFO[0000] Creating container: "mysocketio"
DEBU[0000] Management interface for 'site1-r2' node is set to Management0.
DEBU[0000] Management interface for 'site2-r1' node is set to Management0.
DEBU[0000] Management interface for 'site1-r1' node is set to Management0.
DEBU[0000] Management interface for 'site3-r1' node is set to Management0.
INFO[0000] config file '/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r2/flash/startup-config' for node 'site1-r2' already exists and will not be generated/reset
INFO[0000] config file '/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site2-r1/flash/startup-config' for node 'site2-r1' already exists and will not be generated/reset
INFO[0000] config file '/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site1-r1/flash/startup-config' for node 'site1-r1' already exists and will not be generated/reset
INFO[0000] config file '/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/site3-r1/flash/startup-config' for node 'site3-r1' already exists and will not be generated/reset
INFO[0000] Creating container: "site1-r2"
INFO[0000] Creating container: "site2-r1"
INFO[0000] Creating container: "site1-r1"
INFO[0000] Creating container: "site3-r1"
DEBU[0000] Container "mysocketio" create response: {ID:f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6 Warnings:[]}
DEBU[0000] Start container: "clab-ceos01-mysocketio"
DEBU[0000] Container "site1-r2" create response: {ID:927b6aa9f2bf989c45ca8a57b8961bd12261575540e39d3da0795d51238ef509 Warnings:[]}
DEBU[0000] Start container: "clab-ceos01-site1-r2"
DEBU[0000] Container "site2-r1" create response: {ID:923a0494d22548489fa23c2245c9c3250ad465c4456c397a7be5674b5447f13a Warnings:[]}
DEBU[0000] Start container: "clab-ceos01-site2-r1"
DEBU[0000] Container "site1-r1" create response: {ID:795f83c501f569cc7f69e56237d7335880661d13c50cd39a8c740c63dcd286eb Warnings:[]}
DEBU[0000] Start container: "clab-ceos01-site1-r1"
DEBU[0000] Container "site3-r1" create response: {ID:fe79b9bb2b0ff19a092da4a517a785b205e6f86afc439b6e02e4abda550237de Warnings:[]}
DEBU[0000] Start container: "clab-ceos01-site3-r1"
DEBU[0003] Container started: "clab-ceos01-mysocketio"
DEBU[0003] Worker 1 terminating...
DEBU[0004] Container started: "clab-ceos01-site1-r2"
DEBU[0004] Worker 3 terminating...
DEBU[0004] Container started: "clab-ceos01-site3-r1"
DEBU[0004] Worker 0 terminating...
DEBU[0004] Container started: "clab-ceos01-site2-r1"
DEBU[0004] Worker 4 terminating...
DEBU[0004] Link worker 1 received link: link [site2-r1:eth2, site3-r1:eth2]
INFO[0004] Creating virtual wire: site2-r1:eth2 <--> site3-r1:eth2
DEBU[0004] Link worker 0 received link: link [site1-r2:eth2, site2-r1:eth1]
INFO[0004] Creating virtual wire: site1-r2:eth2 <--> site2-r1:eth1
DEBU[0004] Container started: "clab-ceos01-site1-r1"
DEBU[0004] Worker 2 terminating...
DEBU[0004] Link worker 2 received link: link [site3-r1:eth3, site1-r1:eth3]
INFO[0004] Creating virtual wire: site3-r1:eth3 <--> site1-r1:eth3
DEBU[0004] Link worker 3 received link: link [site1-r1:eth1, site1-r2:eth1]
INFO[0004] Creating virtual wire: site1-r1:eth1 <--> site1-r2:eth1
DEBU[0004] Link worker 1 terminating...
DEBU[0005] Link worker 3 terminating...
DEBU[0005] Link worker 0 terminating...
DEBU[0005] Link worker 2 terminating...
DEBU[0005] containers created, retrieving state and IP addresses...
DEBU[0005] Filter key: label, filter value: containerlab=ceos01
DEBU[0005] enriching nodes with IP information...
DEBU[0005] Exported topology data using /etc/containerlab/templates/export/auto.tmpl template
INFO[0005] Running postdeploy actions for Arista cEOS 'site3-r1' node
INFO[0005] Running postdeploy actions for Arista cEOS 'site2-r1' node
INFO[0005] Running postdeploy actions for Arista cEOS 'site1-r1' node
DEBU[0005] Running postdeploy actions for mysocketio 'mysocketio' node
INFO[0005] Running postdeploy actions for Arista cEOS 'site1-r2' node
INFO[0005] Creating mysocketio tunnels...
DEBU[0005] Running postdeploy mysocketio command ["/bin/sh" "-c" "mysocketctl socket ls | awk '/clab/ {print $2}' | xargs -n1 mysocketctl socket delete -s"]
DEBU[0005] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0005] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0005] Running mysocketio command ["/bin/sh" "-c" "mysocketctl socket create -t http -n clab-clab-ceos01-site1-r1-http-443 | awk 'NR==4 {print $2}'"]
DEBU[0005] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0005] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] clab-ceos01-site2-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0006] clab-ceos01-site1-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0006] clab-ceos01-site1-r2 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0006] clab-ceos01-site3-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0006] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel create -s  | awk 'NR==4 {print $4}'"]
DEBU[0006] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel connect --host clab-ceos01-site1-r1 -p 443 -s  -t   > socket-site1-r1-http-443.log"]
DEBU[0006] Running mysocketio command ["/bin/sh" "-c" "mysocketctl socket create -t http -n clab-clab-ceos01-site1-r2-http-443 | awk 'NR==4 {print $2}'"]
DEBU[0006] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel create -s  | awk 'NR==4 {print $4}'"]
DEBU[0006] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel connect --host clab-ceos01-site1-r2 -p 443 -s  -t   > socket-site1-r2-http-443.log"]
DEBU[0006] Running mysocketio command ["/bin/sh" "-c" "mysocketctl socket create -t http -n clab-clab-ceos01-site2-r1-http-443 | awk 'NR==4 {print $2}'"]
DEBU[0006] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel create -s  | awk 'NR==4 {print $4}'"]
DEBU[0006] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0006] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0007] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel connect --host clab-ceos01-site2-r1 -p 443 -s  -t   > socket-site2-r1-http-443.log"]
DEBU[0007] Running mysocketio command ["/bin/sh" "-c" "mysocketctl socket create -t http -n clab-clab-ceos01-site3-r1-http-443 | awk 'NR==4 {print $2}'"]
DEBU[0007] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0007] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0007] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel create -s  | awk 'NR==4 {print $4}'"]
DEBU[0007] /clab-ceos01-mysocketio exec created f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0007] /clab-ceos01-mysocketio exec attached f389a10ecc1a63831f4a6508307ae13a66b1bdfe1549becc417cbcf9ca92eef6
DEBU[0007] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel connect --host clab-ceos01-site3-r1 -p 443 -s  -t   > socket-site3-r1-http-443.log"]
DEBU[0008] clab-ceos01-site2-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0008] clab-ceos01-site1-r2 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0008] clab-ceos01-site1-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0008] clab-ceos01-site3-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0010] clab-ceos01-site2-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0010] clab-ceos01-site3-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0010] clab-ceos01-site1-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0010] clab-ceos01-site1-r2 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0013] clab-ceos01-site1-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0013] clab-ceos01-site1-r2 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0037] clab-ceos01-site3-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0037] clab-ceos01-site1-r2 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0039] clab-ceos01-site2-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0040] clab-ceos01-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0040] clab-ceos01-site3-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0040] clab-ceos01-site1-r2 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0042] clab-ceos01-site2-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0043] clab-ceos01-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0043] clab-ceos01-site3-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0043] clab-ceos01-site1-r2 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0044] clab-ceos01-site2-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0047] clab-ceos01-site1-r2 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0047] clab-ceos01-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0048] clab-ceos01-site3-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0048] clab-ceos01-site2-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0050] clab-ceos01-site1-r2 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0051] clab-ceos01-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0052] clab-ceos01-site2-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0052] clab-ceos01-site3-r1 - Cli ready.
DEBU[0055] clab-ceos01-site1-r2 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0055] clab-ceos01-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0056] clab-ceos01-site2-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0058] clab-ceos01-site1-r2 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0059] clab-ceos01-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0059] clab-ceos01-site2-r1 - Cli ready.
DEBU[0063] clab-ceos01-site1-r2 - Cli ready.
DEBU[0063] clab-ceos01-site1-r1 - Cli ready.
DEBU[0066] Filter key: label, filter value: containerlab=ceos01
INFO[0066] Adding containerlab host entries to /etc/hosts file
+---+------------------------+--------------+---------------------------------+------------+---------+----------------+----------------------+
| # |          Name          | Container ID |              Image              |    Kind    |  State  |  IPv4 Address  |     IPv6 Address     |
+---+------------------------+--------------+---------------------------------+------------+---------+----------------+----------------------+
| 1 | clab-ceos01-mysocketio | f389a10ecc1a | ghcr.io/hellt/mysocketctl:0.5.0 | mysocketio | running | 172.20.20.2/24 | 2001:172:20:20::2/64 |
| 2 | clab-ceos01-site1-r1   | 795f83c501f5 | ceos:4.29.02F                   | ceos       | running | 172.20.20.5/24 | 2001:172:20:20::5/64 |
| 3 | clab-ceos01-site1-r2   | 927b6aa9f2bf | ceos:4.29.02F                   | ceos       | running | 172.20.20.3/24 | 2001:172:20:20::3/64 |
| 4 | clab-ceos01-site2-r1   | 923a0494d225 | ceos:4.29.02F                   | ceos       | running | 172.20.20.6/24 | 2001:172:20:20::6/64 |
| 5 | clab-ceos01-site3-r1   | fe79b9bb2b0f | ceos:4.29.02F                   | ceos       | running | 172.20.20.4/24 | 2001:172:20:20::4/64 |
+---+------------------------+--------------+---------------------------------+------------+---------+----------------+----------------------+
Published ports:
+----------+------+-----------+----------+-------+------+------------+
| Lab Name | Name | Socket ID | DNS Name | Ports | Type | Cloud Auth |
+----------+------+-----------+----------+-------+------+------------+
+----------+------+-----------+----------+-------+------+------------+

on mysocketio container,

/ # mysocketctl account show
2022/11/04 03:10:21 error: Please login first (no token found)

/ # env
CLAB_LABEL_CLAB_NODE_GROUP=
CLAB_LABEL_CONTAINERLAB=ceos01
HOSTNAME=mysocketio
CLAB_LABEL_CLAB_NODE_TYPE=
SHLVL=1
HOME=/root
CLAB_LABEL_CLAB_NODE_NAME=mysocketio
CLAB_LABEL_CLAB_NODE_LAB_DIR=/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/clab-ceos01/mysocketio
CLAB_LABEL_CLAB_NODE_KIND=mysocketio
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/
CLAB_INTFS=0
CLAB_LABEL_CLAB_TOPO_FILE=/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/ceos01.clab.yml

[macOS]

getting Error: error when processing mysocketio data: please login first (no token found) error, even though I've specify the exact path for the .mysocketio_token

bash-5.1# clab dep -t ceos.clab.yml --reconfigure -d
INFO[0000] Containerlab v0.32.3 started
DEBU[0000] template variables: <nil>
DEBU[0000] topology:
name: arista-ceoslab

topology:
  nodes:
    site1-r1:
      kind: ceos
      image: ceos:4.29.02F
      publish:
        - tcp/443

    mysocketio:
      kind: mysocketio
      image: ghcr.io/hellt/mysocketctl:0.5.0
      binds:
        - .mysocketio_token:/Users/jackyao/clab/test/.mysocketio_token

DEBU[0000] method initMgmtNetwork was called mgmt params &{Network: Bridge: IPv4Subnet: IPv4Gw: IPv6Subnet: IPv6Gw: MTU: ExternalAccess:<nil>}
DEBU[0000] New mgmt params are &{Network:clab Bridge: IPv4Subnet:172.20.20.0/24 IPv4Gw: IPv6Subnet:2001:172:20:20::/64 IPv6Gw: MTU: ExternalAccess:0xc00053fbaa}
DEBU[0000] envN runtime var value is
DEBU[0000] Running runtime.Init with params &{Timeout:2m0s GracefulShutdown:false Debug:false KeepMgmtNet:false} and &{Network:clab Bridge: IPv4Subnet:172.20.20.0/24 IPv4Gw: IPv6Subnet:2001:172:20:20::/64 IPv6Gw: MTU: ExternalAccess:0xc00053fbaa}
DEBU[0000] Runtime: Docker
DEBU[0000] detected docker network mtu value - 1500
DEBU[0000] detected network name in use: clab, backed by a bridge br-0b22a1b26722
DEBU[0000] initialized a runtime with params &{config:{Timeout:120000000000 GracefulShutdown:false Debug:false KeepMgmtNet:false} Client:0xc000c28780 mgmt:0xc000c28500}
INFO[0000] Parsing & checking topology file: ceos.clab.yml
DEBU[0000] node config: &{ShortName:mysocketio LongName:clab-arista-ceoslab-mysocketio Fqdn:mysocketio.arista-ceoslab.io LabDir:/Users/jackyao/clab/test/clab-arista-ceoslab/mysocketio Index:0 Group: Kind:mysocketio StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc000596238 ResStartupConfig: Config:<nil> ResConfig: NodeType: Position: License: Image:ghcr.io/hellt/mysocketctl:0.5.0 Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[] Binds:[] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[] ExtraHosts:[] Labels:map[] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] node config: &{ShortName:site1-r1 LongName:clab-arista-ceoslab-site1-r1 Fqdn:site1-r1.arista-ceoslab.io LabDir:/Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1 Index:1 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc0005968ac ResStartupConfig: Config:<nil> ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[] Binds:[] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[tcp/443] ExtraHosts:[] Labels:map[] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] lab Conf: &{Name:arista-ceoslab Prefix:0xc000b581c0 Mgmt:0xc000c28500 Topology:0xc0008cb590}
DEBU[0000] Env: CLAB_VERSION_CHECK=
DEBU[0000] Filter key: label, filter value: containerlab=arista-ceoslab
INFO[0000] Destroying lab: arista-ceoslab
DEBU[0000] Removing container: clab-arista-ceoslab-site1-r1
DEBU[0000] Removing container: clab-arista-ceoslab-mysocketio
INFO[0000] Removed container: clab-arista-ceoslab-mysocketio
DEBU[0000] Worker 0 terminating...
INFO[0000] Removed container: clab-arista-ceoslab-site1-r1
DEBU[0000] Worker 1 terminating...
INFO[0000] Removing containerlab host entries from /etc/hosts file
DEBU[0000] Calling DeleteNet method. *CLab.Config.Mgmt value is: &{Network:clab Bridge:br-0b22a1b26722 IPv4Subnet:172.20.20.0/24 IPv4Gw: IPv6Subnet:2001:172:20:20::/64 IPv6Gw: MTU:1500 ExternalAccess:0xc00053fbaa}
DEBU[0000] external access iptables rule doesn't exist. Skipping deletion
DEBU[0000] Deleting clab-arista-ceoslab-site1-r1 network namespace
DEBU[0000] Deleting netns symlink: clab-arista-ceoslab-site1-r1
DEBU[0000] Deleting clab-arista-ceoslab-mysocketio network namespace
DEBU[0000] Deleting netns symlink: clab-arista-ceoslab-mysocketio
INFO[0000] Removing /Users/jackyao/clab/test/clab-arista-ceoslab directory...
DEBU[0000] Looking up ghcr.io/hellt/mysocketctl:0.5.0 Docker image
DEBU[0000] Image ghcr.io/hellt/mysocketctl:0.5.0 present, skip pulling
DEBU[0000] Looking up ceos:4.29.02F Docker image
DEBU[0000] Image ceos:4.29.02F present, skip pulling
DEBU[0000] Number of vcpu: 4
WARN[0000] it appears that container host has low memory available: ~0Gi. This might lead to runtime errors. Consider freeing up more memory.
INFO[0000] Creating lab directory: /Users/jackyao/clab/test/clab-arista-ceoslab
DEBU[0000] error while trying to access file /root/.ssh/authorized_keys: stat /root/.ssh/authorized_keys: no such file or directory
DEBU[0000] no public keys found
DEBU[0000] Checking if docker network "clab" exists
DEBU[0000] Network "clab" does not exist
INFO[0000] Creating docker network: Name="clab", IPv4Subnet="172.20.20.0/24", IPv6Subnet="2001:172:20:20::/64", MTU="1500"
DEBU[0000] bridge "br-0b22a1b26722" has ipv4 adrr of "" and ipv6 addr of ""
DEBU[0000] Docker network "clab", bridge name "br-0b22a1b26722"
DEBU[0000] Disable RPF check on the docker host
DEBU[0000] Enable LLDP on the linux bridge br-0b22a1b26722
DEBU[0000] Disabling TX checksum offloading for the br-0b22a1b26722 bridge interface...
DEBU[0000] Installing iptables rules for bridge "br-0b22a1b26722"
DEBU[0000] Dependencies:
mysocketio -> [  ]
site1-r1 -> [  ]
DEBU[0000] - cycle check round 1 -
mysocketio <- [  ]
site1-r1 <- [  ]
DEBU[0000] node creation graph is successfully validated as being acyclic
DEBU[0000] Worker 1 received node: &{ShortName:mysocketio LongName:clab-arista-ceoslab-mysocketio Fqdn:mysocketio.arista-ceoslab.io LabDir:/Users/jackyao/clab/test/clab-arista-ceoslab/mysocketio Index:0 Group: Kind:mysocketio StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc000596238 ResStartupConfig: Config:0xc00000e068 ResConfig: NodeType: Position: License: Image:ghcr.io/hellt/mysocketctl:0.5.0 Sysctls:map[] User: Entrypoint: Cmd: Exec:[] Env:map[CLAB_INTFS:0 CLAB_LABEL_CLAB_NODE_GROUP: CLAB_LABEL_CLAB_NODE_KIND:mysocketio CLAB_LABEL_CLAB_NODE_LAB_DIR:/Users/jackyao/clab/test/clab-arista-ceoslab/mysocketio CLAB_LABEL_CLAB_NODE_NAME:mysocketio CLAB_LABEL_CLAB_NODE_TYPE: CLAB_LABEL_CLAB_TOPO_FILE:/Users/jackyao/clab/test/ceos.clab.yml CLAB_LABEL_CONTAINERLAB:arista-ceoslab] Binds:[/Users/jackyao/clab/test/.mysocketio_token:/Users/jackyao/clab/test/.mysocketio_token] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress: ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[] ExtraHosts:[] Labels:map[clab-mgmt-net-bridge:br-0b22a1b26722 clab-node-group: clab-node-kind:mysocketio clab-node-lab-dir:/Users/jackyao/clab/test/clab-arista-ceoslab/mysocketio clab-node-name:mysocketio clab-node-type: clab-topo-file:/Users/jackyao/clab/test/ceos.clab.yml containerlab:arista-ceoslab] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] Worker 0 received node: &{ShortName:site1-r1 LongName:clab-arista-ceoslab-site1-r1 Fqdn:site1-r1.arista-ceoslab.io LabDir:/Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1 Index:1 Group: Kind:ceos StartupConfig: StartupDelay:0 EnforceStartupConfig:false AutoRemove:0xc0005968ac ResStartupConfig: Config:0xc00000e3f8 ResConfig: NodeType: Position: License: Image:ceos:4.29.02F Sysctls:map[] User: Entrypoint: Cmd:bash -c '/mnt/flash/if-wait.sh ; exec /sbin/init systemd.setenv=container=docker systemd.setenv=ETBA=1 systemd.setenv=SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT=1 systemd.setenv=INTFTYPE=eth systemd.setenv=MAPETH0=1 systemd.setenv=MGMT_INTF=eth0 systemd.setenv=CEOS=1 systemd.setenv=EOS_PLATFORM=ceoslab ' Exec:[] Env:map[CEOS:1 CLAB_INTFS:0 CLAB_LABEL_CLAB_NODE_GROUP: CLAB_LABEL_CLAB_NODE_KIND:ceos CLAB_LABEL_CLAB_NODE_LAB_DIR:/Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1 CLAB_LABEL_CLAB_NODE_NAME:site1-r1 CLAB_LABEL_CLAB_NODE_TYPE: CLAB_LABEL_CLAB_TOPO_FILE:/Users/jackyao/clab/test/ceos.clab.yml CLAB_LABEL_CONTAINERLAB:arista-ceoslab EOS_PLATFORM:ceoslab ETBA:1 INTFTYPE:eth MAPETH0:1 MGMT_INTF:eth0 SKIP_ZEROTOUCH_BARRIER_IN_SYSDBINIT:1 container:docker] Binds:[/Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1/flash:/mnt/flash/] PortBindings:map[] PortSet:map[] NetworkMode: MgmtNet: MgmtIntf: MgmtIPv4Address: MgmtIPv4PrefixLength:0 MgmtIPv6Address: MgmtIPv6PrefixLength:0 MgmtIPv4Gateway: MgmtIPv6Gateway: MacAddress:00:1c:73:a4:44:40 ContainerID: TLSCert: TLSKey: TLSAnchor: NSPath: Publish:[tcp/443] ExtraHosts:[] Labels:map[clab-mgmt-net-bridge:br-0b22a1b26722 clab-node-group: clab-node-kind:ceos clab-node-lab-dir:/Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1 clab-node-name:site1-r1 clab-node-type: clab-topo-file:/Users/jackyao/clab/test/ceos.clab.yml containerlab:arista-ceoslab] Endpoints:[] SANs:[] Sandbox: Kernel: Runtime: CPU:0 CPUSet: Memory: HostRequirements:{SSE3:false VirtRequired:false} DeploymentStatus: Extras:<nil> WaitFor:[]}
DEBU[0000] creating links...
INFO[0000] Creating container: "mysocketio"
DEBU[0000] Management interface for 'site1-r1' node is set to Management0.
DEBU[0000] error while trying to access file /Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1/flash/startup-config: stat /Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1/flash/startup-config: no such file or directory
DEBU[0000] generating config for node site1-r1 from file
DEBU[0000] node 'site1-r1' generated config: // Copyright 2020 Nokia
// Licensed under the BSD 3-Clause License.
// SPDX-License-Identifier: BSD-3-Clause

hostname site1-r1
username admin privilege 15 secret admin
!
service routing protocols model multi-agent
!
ip route 0.0.0.0/0 172.20.20.1
ipv6 route ::0/0 2001:172:20:20::1
!
interface Management0

!
management api gnmi
   transport grpc default

!
management api netconf
   transport ssh default

!
management api http-commands
   no shutdown

!
end
DEBU[0000] error while trying to access file /Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1/flash/system_mac_address: stat /Users/jackyao/clab/test/clab-arista-ceoslab/site1-r1/flash/system_mac_address: no such file or directory
INFO[0000] Creating container: "site1-r1"
DEBU[0001] Container "mysocketio" create response: {ID:1931ab5e8d45292ee2220af78e1091e486867f1a4c2a1c9cdde82e6ca628b8e6 Warnings:[]}
DEBU[0001] Start container: "clab-arista-ceoslab-mysocketio"
DEBU[0001] Container "site1-r1" create response: {ID:5a79dad57e483201febe397f6638fd783c68e347223623461f6c2dda9d01272c Warnings:[]}
DEBU[0001] Start container: "clab-arista-ceoslab-site1-r1"
DEBU[0001] Container started: "clab-arista-ceoslab-mysocketio"
DEBU[0001] Worker 1 terminating...
DEBU[0001] Container started: "clab-arista-ceoslab-site1-r1"
DEBU[0001] Worker 0 terminating...
DEBU[0001] containers created, retrieving state and IP addresses...
DEBU[0001] Filter key: label, filter value: containerlab=arista-ceoslab
DEBU[0001] enriching nodes with IP information...
DEBU[0001] Exported topology data using /etc/containerlab/templates/export/auto.tmpl template
INFO[0001] Running postdeploy actions for Arista cEOS 'site1-r1' node
DEBU[0001] Running postdeploy actions for mysocketio 'mysocketio' node
INFO[0001] Creating mysocketio tunnels...
DEBU[0001] Running postdeploy mysocketio command ["/bin/sh" "-c" "mysocketctl socket ls | awk '/clab/ {print $2}' | xargs -n1 mysocketctl socket delete -s"]
DEBU[0001] /clab-arista-ceoslab-mysocketio exec created 1931ab5e8d45292ee2220af78e1091e486867f1a4c2a1c9cdde82e6ca628b8e6
DEBU[0001] /clab-arista-ceoslab-mysocketio exec attached 1931ab5e8d45292ee2220af78e1091e486867f1a4c2a1c9cdde82e6ca628b8e6
DEBU[0002] Running mysocketio command ["/bin/sh" "-c" "mysocketctl socket create -t tcp -n clab-clab-arista-ceoslab-site1-r1-tcp-443 | awk 'NR==4 {print $2}'"]
DEBU[0002] /clab-arista-ceoslab-mysocketio exec created 1931ab5e8d45292ee2220af78e1091e486867f1a4c2a1c9cdde82e6ca628b8e6
DEBU[0002] /clab-arista-ceoslab-mysocketio exec attached 1931ab5e8d45292ee2220af78e1091e486867f1a4c2a1c9cdde82e6ca628b8e6
DEBU[0002] clab-arista-ceoslab-site1-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0002] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel create -s  | awk 'NR==4 {print $4}'"]
DEBU[0002] /clab-arista-ceoslab-mysocketio exec created 1931ab5e8d45292ee2220af78e1091e486867f1a4c2a1c9cdde82e6ca628b8e6
DEBU[0002] /clab-arista-ceoslab-mysocketio exec attached 1931ab5e8d45292ee2220af78e1091e486867f1a4c2a1c9cdde82e6ca628b8e6
DEBU[0002] Running mysocketio command ["/bin/sh" "-c" "mysocketctl tunnel connect --host clab-arista-ceoslab-site1-r1 -p 443 -s  -t   > socket-site1-r1-tcp-443.log"]
DEBU[0004] clab-arista-ceoslab-site1-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0006] clab-arista-ceoslab-site1-r1 - Cli not ready (read /dev/ptmx: input/output error) - waiting.
DEBU[0028] clab-arista-ceoslab-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0031] clab-arista-ceoslab-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0033] clab-arista-ceoslab-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0037] clab-arista-ceoslab-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0040] clab-arista-ceoslab-site1-r1 - Cli not ready (errPrivilegeError: failed to acquire target privilege level 'privilege-exec') - waiting.
DEBU[0044] clab-arista-ceoslab-site1-r1 - Cli ready.
DEBU[0045] Filter key: label, filter value: containerlab=arista-ceoslab
INFO[0045] Adding containerlab host entries to /etc/hosts file
Error: error when processing mysocketio data: please login first (no token found)

bash-5.1# cat /Users/jackyao/clab/test/.mysocketio_token
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2N---TRUNCATED---
hellt commented 2 years ago

Hi you are using the wrong bind instructions

      binds:
        - .mysocketio_token:/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/.mysocketio_token

it should be the other way around src:dst

/mnt/c/Users/yao_x/containerlabExplore/bgp-lab/.mysocketio_token:/root/.mysocketio_token

BUT mysocket.io recently rebranded to border0.com, and unfortunately, currently, you won't be able to use this lab exposure functionality within containerlab.

We have to add a new integration with border0.com to comply with the changes in the service