[LU-6098] enable test-framework.sh:setupall() to start servers only Created: 08/Jan/15 Updated: 25/Aug/15 Resolved: 25/Aug/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial |
| Reporter: | Olaf Faaland | Assignee: | Jian Yu |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | patch | ||
| Rank (Obsolete): | 16974 |
| Description |
|
llmount.sh uses test-framework.sh:setupall() to start the MGS, MDT, OSTs, and then mount the client. setupall() can currently be made to only mount the client, by setting an environment variable CLIENTONLY. It starts the debug_daemon, if an environment variable DAEMONFILE is set. One change is to make it start only the servers, when an environment variable SERVERONLY is set. The second change is to start debug_daemon before starting servers, if DAEMONFILE is set, instead of starting it before mounting the client, as it does now. Combined, these make it easier to examine the startup process. |
| Comments |
| Comment by Gerrit Updater [ 08/Jan/15 ] |
|
Olaf Faaland-LLNL (ofaalandllnl@gmail.com) uploaded a new patch: http://review.whamcloud.com/13300 |
| Comment by Gerrit Updater [ 08/Jan/15 ] |
|
Olaf Faaland-LLNL (ofaalandllnl@gmail.com) uploaded a new patch: http://review.whamcloud.com/13301 |
| Comment by Peter Jones [ 08/Jan/15 ] |
|
Jian Could you please review this patch? Thanks Peter |
| Comment by Olaf Faaland [ 09/Jan/15 ] |
|
I fixed the formatting issues and re-pushed the patch. |
| Comment by Jian Yu [ 09/Jan/15 ] |
|
Thank you Olaf for the patches. I'll review them. |
| Comment by Olaf Faaland [ 10/Jan/15 ] |
|
Jian, Thank you for your comments. With regards to the two places where $LCTL should be run via do_nodes so that it is executed remotely when appropriate, I agree but have no existing environment in which to test the remote case. I can make the changes and test them in my environment (all components running on the same machine), and I believe it will work for the remote case. Do you, or someone, have an environment in which to test the remote case, easily? -Olaf |
| Comment by Jian Yu [ 10/Jan/15 ] |
|
Hi Olaf, Please feel free to update the patch after it passes your local testing. The autotest system will verify the patch on 4 test nodes (2 Clients + 1 MDS + 1 OSS). In order to test the case of starting debug daemon on remote nodes, you can add the following test parameters into the commit message: Test-Parameters: alwaysuploadlogs envdefinitions=START_DEBUG_DAEMON=true \ testlist=runtests I saw setupall was used in lustre/tests/runtests. You can also specify other tests (sanity, conf-sanity, etc.) that use setupall to the above testlist. |
| Comment by Olaf Faaland [ 15/Jan/15 ] |
|
Hello Jian, Thank you. I submitted updated code without the Test-Parameters to allow autotest to verify the normal case (DAEMONFILE is null). When it looks to be done, I'll amend the commit message and submit again to kick off autotest with DAEMONFILE non-null. I chose to stick with using [ -n $DAEMONFILE ] as the condition that causes debug_daemon to be started, so that the user has partial control over the filename. I chose to stick with -z for testing CLIENTONLY and SERVERONLY because I've seen that used widely in shell scripts, and so I think will be more predictable to new folk, and because it avoids the user being confused when they use some variant of true that I did not check for. If you feel strongly about either of those, I'm open to changing them. thanks, |
| Comment by Jian Yu [ 17/Jan/15 ] |
|
That's fine Olaf. For Test-Parameters, it's an extra custom test session that does not affect the normal review test sessions, so you can still specify the test parameters with non-null DAEMONFILE. The normal review test sessions will be run with null DAEMONFILE by default. |
| Comment by Olaf Faaland [ 20/Apr/15 ] |
|
Jian, I rebased these patches and fixed the checkpatch complaints, but the patch timed out in sanity test 56a ( Is there any way for me to proceed, or should I wait for thanks, |
| Comment by Jian Yu [ 21/Apr/15 ] |
|
Hi Olaf,
Thank you for updating the patches. I just restarted the patch review testing. |
| Comment by Olaf Faaland [ 25/Aug/15 ] |
|
The use case I had in mind was local testing, and making these scripts more complex for that, now seems to me like a bad idea. I'm abandoning the two patches. However, thank you, Jian, for helping me out with them. |
| Comment by Jian Yu [ 25/Aug/15 ] |
|
You're welcome, Olaf. May I close this ticket? |
| Comment by Olaf Faaland [ 25/Aug/15 ] |
|
Yes, do close it. |