Skip to content

Commit

Permalink
[YottaDB#209] Add ydb_passwd to CRYPTINIT error message text in refer…
Browse files Browse the repository at this point in the history
…ence files

The code changes in YottaDB/YDB#209 changed the CRYPTINIT error message text
to also indicate the absence of ydb_passwd environment variable too (not just
gtm_passwd).
  • Loading branch information
nars1 committed May 11, 2018
1 parent 4afed79 commit de530a4
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 41 deletions.
6 changes: 3 additions & 3 deletions encryption/outref/badpasswd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ GDE>
##TEST_AWK%YDB-E-CRYPTKEYFETCHFAILED, Could not retrieve encryption key corresponding to file b.dat. .*
%YDB-F-DBNOCRE, Not all specified database files, or their associated journal files were created
#########TEST CONDITION:gtm_passwd unset#########
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file a.dat. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file a.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-F-DBNOCRE, Not all specified database files, or their associated journal files were created
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file b.dat. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file b.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-F-DBNOCRE, Not all specified database files, or their associated journal files were created
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file create.dat. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file create.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-F-DBNOCRE, Not all specified database files, or their associated journal files were created
%YDB-I-DBFILECREATED, Database file ##TEST_PATH##/y.dat created
%YDB-I-DBFILECREATED, Database file ##TEST_PATH##/z.dat created
Expand Down
4 changes: 2 additions & 2 deletions encryption/outref/err_dse_check.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ mumps.dat
----------------------------------------------------------
dump file header without gtm_paswd and expect to work
----------------------------------------------------------
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/a.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/a.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set

File ##TEST_PATH##/a.dat
Region AREG
Expand Down
8 changes: 4 additions & 4 deletions encryption/outref/err_mu_backup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Backup without gtm_passwd and expect to work
unsetenv gtm_passwd
#####################################################
mupip backup -bytestream DEFAULT ./back1
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
MUPIP backup of database file ##TEST_PATH##/mumps.dat to ./back1/mumps.dat
DB file ##TEST_PATH##/mumps.dat incrementally backed up in file ./back1/mumps.dat
297 blocks saved.
Expand All @@ -28,7 +28,7 @@ BACKUP COMPLETED.

#####################################################
mupip backup -comprehensive DEFAULT ./back2
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
DB file ##TEST_PATH##/mumps.dat backed up in file ./back2/mumps.dat
##TEST_AWKTransactions up to 0x[0-9A-F]* are backed up.

Expand Down Expand Up @@ -64,11 +64,11 @@ Backup while parallel GTM updates without gtm_passwd and expect to error out
unsetenv gtm_passwd
#####################################################
mupip backup -bytestream -online DEFAULT ./back5
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTOPFAILED, Encrypt/Decrypt operation failed for file ##TEST_PATH##/mumps.dat. Please look at prior messages related to encryption for more details
#####################################################
mupip backup -comprehensive DEFAULT ./back6
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTOPFAILED, Encrypt/Decrypt operation failed for file ##TEST_PATH##/mumps.dat. Please look at prior messages related to encryption for more details
##SOURCE_PATH##/mupip
##SOURCE_PATH##/mupip integ -REG *
Expand Down
14 changes: 7 additions & 7 deletions encryption/outref/err_mu_extract.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,31 @@ Try extracting database without gtm_passwd and expect error message
unsetenv gtmpasswd
##################################
mupip extract -fo=bin ext1.bin
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
##################################
mupip extract -fo=zwr ext1.zwr
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
##################################
mupip extract -fo=go ext1.go
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
%YDB-I-DBFILECREATED, Database file ##TEST_PATH##/mumps.dat created
--------------------------------------------------------------------------------------------------
Try extracting while doing parallel GTM updates without gtm_passwd and expect error message
--------------------------------------------------------------------------------------------------
##################################
mupip extract -fo=bin ext2.bin
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
##################################
mupip extract -fo=zwr ext2.zwr
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
##################################
mupip extract -fo=go ext2.go
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
--------------------------------------------------------------------------------------------------
Try extracting while doing parallel GTM updates with wrong gtm_passwd and expect error message
Expand Down Expand Up @@ -85,7 +85,7 @@ YDB>
Try binary extract with select qualifier to extract gloabl from unencrypted region (AREG)
-----------------------------------------------------------------------------------------
mupip extract -fo=bin -select=a* ext4.bin
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
%GDE-I-LOADGD, Loading Global Directory file
##TEST_PATH##/mumps.gld
Expand Down
4 changes: 2 additions & 2 deletions encryption/outref/err_mu_freeze.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Issue mupip freeze while parallel GTM updates with out gtm_passwdand expect erro
------------------------------------------------------------------------------------------
unsetenv gtm_passwd
mupip freeze -ON DEFAULT
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTOPFAILED, Encrypt/Decrypt operation failed for file ##TEST_PATH##/mumps.dat. Please look at prior messages related to encryption for more details
------------------------------------------------------------------------------------------
Issue mupip freeze while parallel GTM updates with bad gtm_passwd and expect error message
Expand All @@ -21,7 +21,7 @@ Issue mupip freeze after GTM updates without gtm_passwd and expect to work
------------------------------------------------------------------------------------------
unsetenv gtm_passwd
mupip freeze -ON DEFAULT
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
Region DEFAULT is now FROZEN
All requested regions frozen
------------------------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions encryption/outref/err_mu_journal.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Try extracting journal file while doing GTM updates without gtm_passwd and expec
unsetenv gtm_passwd
mupip journal -extract -for mumps.mjl
##FILTERED##%YDB-I-MUJNLSTAT, Initial processing started at ... ... .. ..:..:.. 20..
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.mjl. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.mjl. Environment variable ydb_passwd/gtm_passwd not set
##FILTERED##%YDB-I-MUJNLSTAT, Backward processing started at ... ... .. ..:..:.. 20..
##TEST_AWK.*%YDB-E-CRYPTOPFAILED, Encrypt/Decrypt operation failed for file ##TEST_PATH##/mumps.mjl. Please look at prior messages related to encryption for more details
%YDB-E-MUNOACTION, MUPIP unable to perform requested action
Expand All @@ -37,7 +37,7 @@ unsetenv gtm_passwd
mupip journal -show=header -noverify -forw mumps.mjl
----------
Error CRYPTINIT seen in jnlhdr.out as expected:
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.mjl. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.mjl. Environment variable ydb_passwd/gtm_passwd not set
----------
%YDB-S-JNLSUCCESS, Show successful
---------------------------------------------------------------------------------------------------
Expand All @@ -46,7 +46,7 @@ journal show header with verify while doing GTM updates without gtm_passwd and e
unsetenv gtm_passwd
mupip journal -show=header -verify -forw mumps.mjl
##FILTERED##%YDB-I-MUJNLSTAT, Initial processing started at ... ... .. ..:..:.. 20..
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.mjl. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.mjl. Environment variable ydb_passwd/gtm_passwd not set
##FILTERED##%YDB-I-MUJNLSTAT, Backward processing started at ... ... .. ..:..:.. 20..
##TEST_AWK.*%YDB-E-CRYPTOPFAILED, Encrypt/Decrypt operation failed for file ##TEST_PATH##/mumps.mjl. Please look at prior messages related to encryption for more details
%YDB-E-MUNOACTION, MUPIP unable to perform requested action
Expand Down
2 changes: 1 addition & 1 deletion encryption/outref/err_mu_load.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Mupip load without gtm_passwd
unsetenv gtm_passwd
##TEST_AWKLabel = ##FILTERED##GDS BINARY EXTRACT LEVEL ....................................*GT.M MUPIP EXTRACT *

%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file ext1.bin. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file ext1.bin. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-MUNOFINISH, MUPIP unable to finish all requested actions
---------------------------------------
Mupip load with bad gtm_passwd
Expand Down
6 changes: 3 additions & 3 deletions encryption/outref/err_mu_misc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ endian convert with out gtm_passwd and expect error out
----------------------------------------------------------------------------------
unsetenv gtm_passwd
mupip endianevt mumps.dat
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file mumps.dat. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-MUSTANDALONE, Could not get exclusive access to mumps.dat
%YDB-E-MUNOACTION, MUPIP unable to perform requested action
----------------------------------------------------------------------------------
Expand All @@ -37,7 +37,7 @@ Integ without gtm_passwd and expect to error out
----------------------------------------------------------------------------------
unsetenv gtm_passwd
mupip integ -file mumps.dat
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file mumps.dat. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-I-MUSTANDALONE, Could not get exclusive access to mumps.dat
%YDB-E-INTEGERRS, Database integrity errors
----------------------------------------------------------------------------------
Expand Down Expand Up @@ -67,7 +67,7 @@ mupip reorg without gtm_passwd and expect to error out
unsetenv gtm_passwd
mupip reorg -region DEFAULT
Fill Factor:: Index blocks 100%: Data blocks 100%
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-E-CRYPTBADCONFIG, Could not retrieve data from encrypted file ##TEST_PATH##/mumps.dat due to bad encryption configuration. Please look at prior messages related to encryption for more details
----------------------------------------------------------------------------------
mupip reorg with bad gtm_passwd and expect to error out
Expand Down
2 changes: 1 addition & 1 deletion encryption/outref/err_mu_recover.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ journal recover without gtm_passwd and expect to error out
-----------------------------------------------------------
unsetenv gtm_passwd
##FILTERED##%YDB-I-MUJNLSTAT, Initial processing started at ... ... .. ..:..:.. 20..
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
%YDB-I-MUSTANDALONE, Could not get exclusive access to ##TEST_PATH##/mumps.dat
%YDB-E-MUNOACTION, MUPIP unable to perform requested action
##FILTERED##%YDB-I-MUJNLSTAT, End processing at ... ... .. ..:..:.. 20..
Expand Down
6 changes: 3 additions & 3 deletions encryption/outref/err_mu_replic.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mumps.dat
# Expect both YDB-W-CRYPTINIT and YDB-E-CRYPTBADCONFIG from update process log
----------
Error YDB-W-CRYPTINIT seen in ##FILTERED##RCVR_##TIMESTAMP##.log.updproc as expected:
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##REMOTE_TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##REMOTE_TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
----------
----------
Error YDB-E-CRYPTBADCONFIG seen in ##FILTERED##RCVR_##TIMESTAMP##.log.updproc as expected:
Expand All @@ -31,9 +31,9 @@ No errors detected by integ.
# Expect and filter out YDB-W-CRYPTINIT warning from receiver start log and passive source server log
----------
Error YDB-W-CRYPTINIT seen in ##FILTERED##START_##TIMESTAMP##.out as expected:
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##REMOTE_TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##REMOTE_TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
----------
----------
Error YDB-W-CRYPTINIT seen in ##FILTERED##passive_##TIMESTAMP##.log as expected:
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##REMOTE_TEST_PATH##/mumps.dat. Environment variable gtm_passwd not set
%YDB-W-CRYPTINIT, Could not initialize encryption library while opening encrypted file ##REMOTE_TEST_PATH##/mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
----------
2 changes: 1 addition & 1 deletion encryption/outref/err_mu_restore.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Restore database with out gtm_passwd and expect to error out
---------------------------------------------------------------
unsetenv gtm_passwd
mupip restore mumps.dat ./back1/mumps.dat
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file mumps.dat. Environment variable gtm_passwd not set
%YDB-E-CRYPTINIT, Could not initialize encryption library while opening encrypted file mumps.dat. Environment variable ydb_passwd/gtm_passwd not set
Error securing stand alone access to output file mumps.dat. Aborting restore.
%YDB-E-MUPRESTERR, MUPIP restore aborted due to preceding errors
---------------------------------------------------------------
Expand Down
Loading

0 comments on commit de530a4

Please sign in to comment.