[LU-16804] Exported variable not available in test scripts Created: 03/May/23 Updated: 30/Nov/23 Resolved: 31/May/23 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.16.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sebastien Buisson | Assignee: | Sebastien Buisson |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Severity: | 3 | ||||
| Rank (Obsolete): | 9223372036854775807 | ||||
| Description |
|
I have a strange behavior with a custom test for the patch https://review.whamcloud.com/c/fs/lustre-release/+/50825. I specify env=SHARED_KEY=true, and it seems to be taken into account, but not from the beginning. With a grep on the debug traces I added, we can see: 2023-05-03T21:41:51 export SHARED_KEY="true" 2023-05-03T21:41:51 SHARED_KEY=false LGSS_SK= GSS_SK=false 2023-05-03T21:41:51 LGSS_SK= 2023-05-03T21:42:26 trevis-129vm4: SHARED_KEY=false LGSS_SK= GSS_SK=false 2023-05-03T21:42:26 trevis-129vm4: LGSS_SK= 2023-05-03T21:42:26 trevis-129vm5: SHARED_KEY=false LGSS_SK= GSS_SK=false 2023-05-03T21:42:26 trevis-129vm5: LGSS_SK= 2023-05-03T21:42:26 trevis-129vm3: SHARED_KEY=false LGSS_SK= GSS_SK=false 2023-05-03T21:42:26 trevis-129vm3: LGSS_SK= 2023-05-03T21:43:46 SHARED_KEY=true LGSS_SK= GSS_SK=false 2023-05-03T21:43:46 SHARED_KEY=true LGSS_SK= GSS_SK=true 2023-05-03T21:43:56 LGSS_SK= While we can see "export SHARED_KEY="true"" to start, SHARED_KEY appears to be set to false in function init_test_env(). And later on in init_gss(), it gets proper value. Any idea why init_test_env() does not see the correct value? Could it be fixed? Thanks, |
| Comments |
| Comment by Sebastien Buisson [ 03/May/23 ] |
|
Full logs of lustre-initialization-1.autotest.onyx-124vm1.log are at: |
| Comment by Charlie Olmstead [ 08/May/23 ] |
|
Move to an LU Jira as this is not an ATM issue since it's in the Lustre code base. init_test_env doesn't see the proper SHARED_KEY value because init_test_env doesn't load CONFIG until the end of the function. 180:init_test_env() {
450: . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
|
| Comment by Gerrit Updater [ 10/May/23 ] |
|
"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/50914 |
| Comment by Gerrit Updater [ 31/May/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/50914/ |
| Comment by Peter Jones [ 31/May/23 ] |
|
Landed for 2.16 |
| Comment by Gerrit Updater [ 20/Jun/23 ] |
|
"Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/51383 |
| Comment by Gerrit Updater [ 28/Jun/23 ] |
|
"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/51383/ |