Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20240520: dxtoolkit failures if user cannot read namespace #241

Open
mwatson-delphix opened this issue May 20, 2024 · 0 comments
Open

20240520: dxtoolkit failures if user cannot read namespace #241

mwatson-delphix opened this issue May 20, 2024 · 0 comments

Comments

@mwatson-delphix
Copy link
Contributor

** 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 CDOMLOSRB5A8PDB1@mwdlpx-dxtest-20.dcol2-1  -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        G1@mwdlpx-dxtest-20.dcol2-1
AUTHORIZATION-9   u1    PROVISIONER  G1@mwdlpx-dxtest-20.dcol2-1
AUTHORIZATION-10  u1    Read         G1@mwdlpx-dxtest-20.dcol2-1
AUTHORIZATION-11  u1    Data         G1@mwdlpx-dxtest-20.dcol2-1
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant