| 1 |
|
| 2 |
#### 2.1 - Check that secrets file is created in the File System |
| 3 |
# Check that secretsFile are being created for node 1 |
| 4 |
|
| 5 |
#### 2.2 Check that secrets file contents is encrypted |
| 6 |
File=NDB_SECRETS_FILE_PATH/S0.sysfile, compression=no, encryption=yes |
| 7 |
|
| 8 |
#### 2.3 Check that secrets file can't be read if filesystem password is incorrect |
| 9 |
# Restart data node 1 |
| 10 |
Node 1 is being restarted |
| 11 |
|
| 12 |
# Set RestartOnErrorInsert to 1 (NRT_NoStart_Restart) |
| 13 |
Sending dump signal with data: |
| 14 |
0x00000a2a 0x00000001 |
| 15 |
|
| 16 |
# Insert Error to force data node to change filesystem password to a wrong one |
| 17 |
|
| 18 |
Database node 1 is being started. |
| 19 |
|
| 20 |
include/assert_grep.inc [Wrong filesystem password used to open (for read) secrets file] |
| 21 |
|
| 22 |
#### 2.4 Check that if secretes file is corrupt files aren't decrypted |
| 23 |
# Set RestartOnErrorInsert to 1 (NRT_NoStart_Restart) |
| 24 |
Sending dump signal with data: |
| 25 |
0x00000a2a 0x00000001 |
| 26 |
|
| 27 |
# backup secrets file and write a new one with invalid data |
| 28 |
# Insert error 1027 for CRASH_INSERTION in data node to make it crash in a soft way |
| 29 |
# when secretsfile is invalid |
| 30 |
|
| 31 |
Database node 1 is being started. |
| 32 |
|
| 33 |
include/assert_grep.inc [Corrupt Secretsfile] |
| 34 |
# restore secrets file from backup |
| 35 |
# Set RestartOnErrorInsert back to 2 (NRT_DoStart_Restart) |
| 36 |
Sending dump signal with data: |
| 37 |
0x00000a2a 0x00000002 |
| 38 |
|
| 39 |
Database node 1 is being started. |
| 40 |
|
| 41 |
|
| 42 |
#### 2.5 Check that secrets file content with same password is encrypted differently |
| 43 |
# due to salts |
| 44 |
Data node 1 and data node 2 are using the same filesystem password but their |
| 45 |
secretsfile content differs due to salts |
| 46 |
|
| 47 |
#### 2.6 Check that user files are encrypted |
| 48 |
Error: Could not open file 'NDB_LCP_FILES_0/T2F1.Data' for read. |
| 49 |
|
| 50 |
# Test ended, cleanup files. |