threefoldtecharchive / jumpscaleX_core

Apache License 2.0
1 stars 6 forks source link

Deleting a network, doesn't really delete it #892

Closed MathiasDeWeerdt closed 4 years ago

MathiasDeWeerdt commented 4 years ago

The network just pops back up if I restart the container.

zaibon commented 4 years ago

can you give more information please? reservation ID, network name...

BolaNasr commented 4 years ago

i deleted network from admin and then i can't ping any solutions using this network So , it works good.

Pishoy commented 4 years ago

I already delete the network but it is still shown in network tab in chatflow while the container is not reachable as the network is deleted, below is reservation id

http://explorer.testnet.grid.tf/explorer/reservations/461633

zaibon commented 4 years ago

@Pishoy check that the reservation ID is actually the same. Because of the way how the admin panel deals with network, you can have multiple reservation modifying the same network.

Pishoy commented 4 years ago

sorry, network reservation id is 461631

zaibon commented 4 years ago

I mean check the reservation ID, then delete it. If it still shows, check the reservation ID again. Most probably it will not be the same.

Pishoy commented 4 years ago

works now!

zaibon commented 4 years ago

@Pishoy What do you mean works now?

Pishoy commented 4 years ago

after I tried network deletion (reservation id 461631) again, it works

also, I did the same steps again and worked now

not sure what was the issue, seems connection issue

image

zaibon commented 4 years ago

This seems weird, I'm re-opening, there are still things to figure out here.

grimpy commented 4 years ago

https://github.com/threefoldtech/js-sdk/issues/48 relates to let's backport this fix

ranatrk commented 4 years ago

The fix suggested and implemented, is recursively linking each updated network with its parent network by saving the parent reservation id in the metadata of the child. In case the network is to be cancelled from the admin dashboard, all its parent networks will be cancelled as well and so the previous version of the network(in an older reservation) will not reappear.

Dina-Abd-Elrahman commented 4 years ago