zos icon indicating copy to clipboard operation
zos copied to clipboard

zdb namespace not deleted after deleting the zdb workload

Open ashraffouda opened this issue 1 year ago • 3 comments

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

  • create a zdb deployment
  • on the node do ip netns
  • delete the zdb deployment
  • on the node do ip netns again
  • you will find the zdb namespace still exists something like zdb-ns-86596a4a6be4

Expected behavior

zdb namespace should be deleted when the zdb deployment is deleted

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

ashraffouda avatar Aug 28 '24 13:08 ashraffouda

@muhamadazmy @maxux

ashraffouda avatar Aug 28 '24 13:08 ashraffouda

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.

scottyeager avatar Sep 02 '24 16:09 scottyeager

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.

maxux avatar Sep 03 '24 15:09 maxux