Details
-
Bug
-
Status: Stalled (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.6.18
-
None
Description
When running the mariabackup --prepare step the --user=root option is not needed like it is with the --backup step, but it usually doesn't harm either though.
In combination with the HashiCorp Vault key management plugin though only the long form --user=root works, the short form -u root causes the prepare step to fail:
[00] 2024-07-11 10:49:33 Loading encryption plugin from hashicorp_key_management=hashicorp_key_management
|
[00] 2024-07-11 10:49:33 Loading encryption plugin
|
[00] 2024-07-11 10:49:33 Encryption plugin parameter : '--prepare'
|
[00] 2024-07-11 10:49:33 Encryption plugin parameter : '-u'
|
[00] 2024-07-11 10:49:33 Encryption plugin parameter : 'root'
|
mariabackup: Can't open shared library '/hashicorp_key_management.so' (errno: 2, cannot open shared object file: No such file or directory)
|
2024-07-11 10:49:33 0 [ERROR] Couldn't load plugin 'hashicorp_key_management' from 'hashicorp_key_management.so'.
|
[00] 2024-07-11 10:49:33 This target seems to be not prepared yet.
|
Same output section when using the long form:
[00] 2024-07-11 09:19:36 Loading encryption plugin from hashicorp_key_management=hashicorp_key_management
|
[00] 2024-07-11 09:19:36 Loading encryption plugin
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--plugin_load=hashicorp_key_management=hashicorp_key_management'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_cache_timeout=60000'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_cache_version_timeout=0'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_caching_enabled=ON'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_check_kv_version=ON'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_max_retries=3'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_timeout=15'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_use_cache_on_timeout=OFF'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_vault_ca='
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--hashicorp_key_management_vault_url=http://vault:8200/v1/test'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--innodb_encrypt_log=1'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--innodb_encrypt_tables=FORCE'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--prepare'
|
[00] 2024-07-11 09:19:36 Encryption plugin parameter : '--user=root'
|
[00] 2024-07-11 09:19:36 This target seems to be not prepared yet.
|
So looks as if the option parser within the HashiCorp Vault plugin is not aware of, and so utterly confused by, the short option format.