threefoldtech / zos

Autonomous operating system
https://threefold.io/host/
Apache License 2.0
83 stars 14 forks source link

zdb namespace not deleted after deleting the zdb workload #2410

Open ashraffouda opened 2 months ago

ashraffouda commented 2 months ago

Describe the bug

this happens on zos3 and zos4. I create a zdb workload a node then deleted the deployment but found the namespace still exists after deleting the deployment

To Reproduce

note when I created new zdbs no more namespaces are created, the old one is used for all zdbs even for different users

ashraffouda commented 2 months ago

@muhamadazmy @maxux

scottyeager commented 2 months ago

The Zdbs themselves are multiuser and are created when Zos first starts up. What the user's workload represents is a Zdb namespace within the shared Zdb, which can be public or private and password protected.

So I think it's normal that there's no changes to Zdb networking when workloads are deployed/deleted, since all users access their Zdb workload over the same IPs assigned to the shared Zdb instances.

maxux commented 2 months ago

Well namespace here is ambiguous. Each zdb process have their own network namespace to get a dedicated IP address. Each zdb can have multiple namespace (eg: 1 per user).

Network namespaces are persistant and mandatory per zdb instance. ZDB namespaces are dynamically allocated.

To get a list of zdb namespaces, you can connect to the zdb and send NSLIST command.

A deployment is related to a zdb namespace, not a zdb instance AFAIK, so Scott it right for me.