containerlab icon indicating copy to clipboard operation
containerlab copied to clipboard

Unexpected behavior for kinD nodes when using the --node-selector option

Open simcod opened this issue 1 year ago • 2 comments

To reproduce this issue, the following codebase can be used. The creation of the kinD clusters can be used in combination with the --node-selector option:

sudo containerlab deploy --topo topo.yaml --node-filter k01

However, destruction is not possible:

sudo containerlab destroy --topo topo.yaml --node-filter k01
# Output
INFO[0000] no containerlab containers found

The expected behaviour would be that containerlab only destroys the node k01.

The following commands are working as expected for the node srl01:

sudo containerlab deploy --topo topo.yaml --node-filter srl01

sudo containerlab destroy --topo topo.yaml --node-filter srl01

simcod avatar Jun 24 '24 13:06 simcod

Yes, node filters feature has some issues, and I presume mostly with nodes deployed outside of containerlab (like kind nodes).

hellt avatar Jun 24 '24 13:06 hellt

@hellt Thanks for your quick reply.

simcod avatar Jun 25 '24 12:06 simcod