Skip to content

20240520: dxtoolkit failures if user cannot read namespace #241

@mwatson-delphix

Description

@mwatson-delphix

** Expected Behavior**
operation should be successful.

Note: provision via the GUI is successful without error, with this configuration.

** Actual Behavior**

Various commands fail with errors if the user does not have at least read permission on the namespace(s).

~/Downloads/dxtoolkit2 ./dx_get_namespace -d x
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.

Appliance  Namespace            Last complited run   Objects
---------- -------------------- -------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
~/Downloads/dxtoolkit2
./dx_provision_vdb -d x -sourcename [email protected]  -dbname t1 -targetname t1 -uniqname t1 -group Untitled -environment mw89022-src.dcol2.delphix.com -type oracle -envinst /u01/app/oracle/product/19.14.0.0/dbhome_1 -autostart yes -archivelog yes -instname t1 -redoGroup 3 -redoSize 200 -vcdbname c1 -vcdbdbname c1 -vcdbuniqname c1 -vcdbinstname c1
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespacename in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/Group_obj.pm line 114.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Use of uninitialized value $namespace_name in concatenation (.) or string at /var/folders/r8/44m6nzq56k5g_k50ywc3t3bm0000gn/T/par-6d776174736f6e/cache-a2f383c0355c4bcb0b48b128711ce82ef8b1b531/inc/lib/VDB_obj.pm line 107.
Source database not found.

Steps To Reproduce the Problem

  • Replicate dsource from Engine A -> B
  • Create environment on target to provision to
  • Create limited permissions user on target

( G1 = Group name )

mwdlpx-dxtest-20-repl.dcol2 authorization> list user=u1
REFERENCE         USER  ROLE         TARGET
AUTHORIZATION-7   u1    OWNER        u1
AUTHORIZATION-8   u1    OWNER        [email protected]
AUTHORIZATION-9   u1    PROVISIONER  [email protected]
AUTHORIZATION-10  u1    Read         [email protected]
AUTHORIZATION-11  u1    Data         [email protected]
AUTHORIZATION-15  u1    Data         Untitled
AUTHORIZATION-16  u1    PROVISIONER  Untitled

Note specifically, the missing permission is Read on the mwdlpx-dxtest-20.dcol2-1 namespace.

  • Provision using dxtoolkit, which will now fail with various "uninitialized value" depending on the exact command.

  • Workaround

Add read permissions on the namespace resolves the issue,

mwdlpx-dxtest-20-repl.dcol2 authorization> create
mwdlpx-dxtest-20-repl.dcol2 authorization create *> set target=Namespace:/mwdlpx-dxtest-20.dcol2-1
mwdlpx-dxtest-20-repl.dcol2 authorization create *> set user=u1
mwdlpx-dxtest-20-repl.dcol2 authorization create *> set role=Read
mwdlpx-dxtest-20-repl.dcol2 authorization create *> commit

**Version**

* Delphix - 20
* dxtoolkit - 2.4.22

**Additional Context**
Add any other context about the problem here, including additional logs or debugging information if appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions