hellt / clabs

community provided labs built with containerlab project
13 stars 12 forks source link

symm-mh.clab.yml: ifreload isn't triggered on server nodes #8

Closed dteslya closed 2 years ago

dteslya commented 2 years ago

Hi!

I try to deploy symm-mh.clab.yml topology and all hosts do not get their interfaces configured. After some digging, I found out that the entrypoint script waits for 3 more interfaces to come up aside from eth0. But according to the topology each server has only 2 uplinks to the leaf switches. Changing cmd: 3 to cmd: 2 under the server definition in the topology file seems to fix this issue.

hellt commented 2 years ago

Hi, I think @networkop who is the author of this can comment on that I remember something like that was fixed for another lab

networkop commented 2 years ago

hey @dteslya can you check if the hosts have CLAB_ENV_INTFS env variable configured inside their shell? Containerlab will automatically inject this env var and make it equal to the expected number of interfaces and hosts image should pick it up automatically.

I think cmd field may need to be removed completely to make it work? can you try that?

dteslya commented 2 years ago

Yes, removing the cmd field also worked. And the CLAB_INTFS env variable is injected.

$ docker exec clab-citc-server01 bash -c 'echo "$CLAB_INTFS"'
2
networkop commented 2 years ago

ok, thanks. I'll do a PR to remove cmd shortly.

dteslya commented 2 years ago

Thank you! Btw, symm-mh.clab.yml has the same issue. Removing cmd also helps there.

hellt commented 2 years ago

The pr has been merged #9

networkop commented 2 years ago

thanks. closing the issue.

networkop commented 2 years ago

🤣 forgot it's not my issue

dteslya commented 2 years ago

thank you!