--Task-- name: authn-users-100 enabled: True class_name: GatlingTask source_name: overseer-0 source_namespace: >default< target_name: am target_namespace: >default< start: 0 stop: None timeout: not yet initialized for this Task as timeout was not explicitly defined, see updates bellow loop: False interval: None dependencies: [] wait_for: [] options: {'testMode': 'open', 'simulation': 'com.forgerock.gatling.Loadtest', 'testCase': 'am.AMAuthN', 'throughput': 100, 'duration': 3600, 'rampup-duration': 30} group_name: None Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock ________________________________________________________________________________ [12/Apr/2023 18:34:23] authn-users-100 pre : N/A ________________________________________________________________________________ [12/Apr/2023 18:34:23] - INFO: Get overseer pod resources requests memory [loop_until]: kubectl --namespace=xlou get pods overseer-0-57f77ddd65-vlsbw -o jsonpath={.spec.containers[].resources.requests.memory} [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- 4Gi --- stderr --- [12/Apr/2023 18:34:24] - INFO: Timeout for this Task has changed to 1h 12m (4320 seconds) [12/Apr/2023 18:34:24] - INFO: timeout was calculated based on simulation duration parameter Pod log file : /results/orders/authn-users-100/stdout.txt Pod log : /results/orders/authn-users-100 ________________________________________________________________________________ [12/Apr/2023 18:34:24] authn-users-100 print_command : Display the command to be forwarded to overseer as an order ________________________________________________________________________________ /lodestar/clients/gatling-for-pyrock.sh --run-mode local --simulation com.forgerock.gatling.Loadtest --simulations-folder /lodestar/pyrock/shared/clients/gatling-open/ --run-description am.AMAuthN@medium --results-folder /results/gatling/authn-users-100 --no-reports ________________________________________________________________________________ [12/Apr/2023 18:34:24] authn-users-100 create_order : Create order for overseer with the command to run ________________________________________________________________________________ Order file : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/order.json { "name": "authn-users-100", "command": "/lodestar/clients/gatling-for-pyrock.sh --run-mode local --simulation com.forgerock.gatling.Loadtest --simulations-folder /lodestar/pyrock/shared/clients/gatling-open/ --run-description am.AMAuthN@medium --results-folder /results/gatling/authn-users-100 --no-reports", "out-dir": "/results/orders/authn-users-100", "environment": { "JAVA_OPTS": "-Dam_host=xlou.iam.xlou-cdm.engineeringpit.com -DamadminPassword=s9MdrzrfuDjScJQEQTnTfdxa -DamadminUsername=amadmin -Dduration=3600 -Dnum_users=10000000 -Drampup_duration=30 -DtestCase=am.AMAuthN -DtestMode=open -Dthroughput=100 -Duser_password=T35tr0ck123 -Xmx4G" } } ________________________________________________________________________________ [12/Apr/2023 18:34:24] authn-users-100 loop_until_ready : Loop until overseer pod is ready to accept order ________________________________________________________________________________ [loop_until]: curl -k https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com/orders/status.txt | grep "WAITING" [loop_until]: (max_time=120, interval=5, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found [loop_until]: OK (rc = 0) --- stdout --- WAITING --- stderr --- % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 7 100 7 0 0 33 0 --:--:-- --:--:-- --:--:-- 33 ________________________________________________________________________________ [12/Apr/2023 18:34:24] authn-users-100 start_order : Send the order to the overseer pod ________________________________________________________________________________ [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- [loop_until]: kubectl --namespace=xlou cp /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/order.json overseer-0-57f77ddd65-vlsbw:/results/orders/order.json [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- --- stderr --- Order has been successfully forwarded to overseer [12/Apr/2023 18:34:25] - INFO: Check if Gatling simulation started successfully [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- [loop_until]: kubectl --namespace=xlou exec overseer-0-57f77ddd65-vlsbw -- head /results/orders/authn-users-100/stdout.txt | grep "started..." [loop_until]: (max_time=300, interval=5, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - failed to find expected output: started... - retry [loop_until]: Function succeeded after 6s (rc=0) - failed to find expected output: started... - retry [loop_until]: Function succeeded after 12s (rc=0) - failed to find expected output: started... - retry [loop_until]: Function succeeded after 17s (rc=0) - expected pattern found [loop_until]: OK (rc = 0) --- stdout --- GATLING_HOME is set to /home/jenkins/lodestar/clients/gatling 19:34:29.252 [WARN ] i.g.c.ZincCompiler$ - -target is deprecated: Use -release instead to compile against the correct platform API. 19:34:35.206 [WARN ] i.g.c.ZincCompiler$ - one warning found Gatling 3.9.3 is available! (you're using 3.9.0) 19:34:38.782 [WARN ] i.g.c.s.e.ElCompiler$ - You're still using the deprecated ${} pattern for Gatling EL. Please use the #{} pattern instead. Simulation com.forgerock.gatling.Loadtest started... --- stderr --- ________________________________________________________________________________ [12/Apr/2023 18:34:44] authn-users-100 wait_stop_by_itself : Wait for the order to stop by itself ________________________________________________________________________________ Task may stop by itself (no stop defined in configuration file), wait until overseer ends the order - timeout is 1h 12m Waiting for status (curl --fail -k https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com/orders/status.txt) == WAITING Order is running since 2m, retry Order is running since 4m, retry Order is running since 6m 01s, retry Order is running since 8m 01s, retry Order is running since 10m 01s, retry Order is running since 12m 02s, retry Order is running since 14m 02s, retry Order is running since 16m 02s, retry Order is running since 18m 03s, retry Order is running since 20m 03s, retry Order is running since 22m 03s, retry Order is running since 24m 04s, retry Order is running since 26m 04s, retry Order is running since 28m 04s, retry Order is running since 30m 05s, retry Order is running since 32m 05s, retry Order is running since 34m 05s, retry Order is running since 36m 06s, retry Order is running since 38m 06s, retry Order is running since 40m 07s, retry Order is running since 42m 07s, retry Order is running since 44m 07s, retry Order is running since 46m 08s, retry Order is running since 48m 08s, retry Order is running since 50m 08s, retry Order is running since 52m 09s, retry Order is running since 54m 09s, retry Order is running since 56m 09s, retry Order is running since 58m 10s, retry Order is running since 1h, retry PASS : Order stopped by itself after 1h 02m and before timeout (1h 12m) ________________________________________________________________________________ [12/Apr/2023 19:36:54] authn-users-100 stop_order : Stop the order on overseer pod ________________________________________________________________________________ [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- [loop_until]: kubectl --namespace=xlou exec overseer-0-57f77ddd65-vlsbw -- rm -f /results/orders/order.json [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- --- stderr --- Order ran during 1h 02m ________________________________________________________________________________ [12/Apr/2023 19:36:55] authn-users-100 download_logs : Download order.tar.gz ________________________________________________________________________________ [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- Checking pod: overseer-0-57f77ddd65-vlsbw for file exists, if not wait. [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- [loop_until]: kubectl --namespace=xlou exec overseer-0-57f77ddd65-vlsbw -i -- bash -c 'if [ -f "/results/orders/authn-users-100/order.tar.gz" ]; then echo "/results/orders/authn-users-100/order.tar.gz file found"; exit 0; else echo "/results/orders/authn-users-100/order.tar.gz file not found"; exit 1; fi' | grep "/results/orders/authn-users-100/order.tar.gz file found" [loop_until]: (max_time=180, interval=5, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected pattern found [loop_until]: OK (rc = 0) --- stdout --- /results/orders/authn-users-100/order.tar.gz file found --- stderr --- [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- [run_command]: kubectl --namespace=xlou exec overseer-0-57f77ddd65-vlsbw -i -- du -k /results/orders/authn-users-100/order.tar.gz [run_command]: OK (rc = 0 - expected to be in [0]) --- stdout --- 24 /results/orders/authn-users-100/order.tar.gz --- stderr --- - Download file (size 24k) [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- source : /results/orders/authn-users-100/order.tar.gz @ overseer-0-57f77ddd65-vlsbw destination : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/order.tar.gz [loop_until]: awk -F" " "{print NF}" <<< `kubectl --namespace=xlou get pods -l app=overseer-0 -o jsonpath={.items[*].metadata.name}` | grep 1 [loop_until]: (max_time=180, interval=10, expected_rc=[0] [loop_until]: Function succeeded after 0s (rc=0) - expected number of elements found [loop_until]: OK (rc = 0) --- stdout --- overseer-0-57f77ddd65-vlsbw --- stderr --- [loop_until]: kubectl --namespace=xlou cp overseer-0-57f77ddd65-vlsbw:/results/orders/authn-users-100/order.tar.gz /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/order.tar.gz [loop_until]: (max_time=-1, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- tar: Removing leading `/' from member names --- stderr --- - Extract archive zip file : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/order.tar.gz destination : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100 ________________________________________________________________________________ [12/Apr/2023 19:36:59] authn-users-100 show_cmd : Display order command ________________________________________________________________________________ [print_head_tail]: Input file /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/cmd.txt is small (1 lines), printing all lines: ----- output ----- /lodestar/clients/gatling-for-pyrock.sh --run-mode local --simulation com.forgerock.gatling.Loadtest --simulations-folder /lodestar/pyrock/shared/clients/gatling-open/ --run-description am.AMAuthN@medium --results-folder /results/gatling/authn-users-100 --no-reports ________________________________________________________________________________ [12/Apr/2023 19:36:59] authn-users-100 show_rc : Display rc order ________________________________________________________________________________ [print_head_tail]: Input file /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/rc.txt is small (1 lines), printing all lines: ----- output ----- CMD SUCCESS: command returns code 0 (expected [0, -9, 143, 137, -15]) ________________________________________________________________________________ [12/Apr/2023 19:36:59] authn-users-100 show_stdout : Display stdout order ________________________________________________________________________________ [print_head_tail]: Print head (100 lines) and tail (100 lines) of input file (/mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/stdout.txt is 9504 lines): ----- output ----- GATLING_HOME is set to /home/jenkins/lodestar/clients/gatling 19:34:29.252 [WARN ] i.g.c.ZincCompiler$ - -target is deprecated: Use -release instead to compile against the correct platform API. 19:34:35.206 [WARN ] i.g.c.ZincCompiler$ - one warning found Gatling 3.9.3 is available! (you're using 3.9.0) 19:34:38.782 [WARN ] i.g.c.s.e.ElCompiler$ - You're still using the deprecated ${} pattern for Gatling EL. Please use the #{} pattern instead. Simulation com.forgerock.gatling.Loadtest started... ================================================================================ 2023-04-12 19:34:44 5s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=41 KO=0 ) > userRestLogin (OK=41 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [- ] 0% waiting: 360812 / active: 1 / done: 41 ================================================================================ ================================================================================ 2023-04-12 19:34:49 10s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=166 KO=0 ) > userRestLogin (OK=166 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [- ] 0% waiting: 360687 / active: 1 / done: 166 ================================================================================ ================================================================================ 2023-04-12 19:34:54 15s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=375 KO=0 ) > userRestLogin (OK=375 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [- ] 0% waiting: 360478 / active: 1 / done: 375 ================================================================================ ================================================================================ 2023-04-12 19:34:59 20s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=666 KO=0 ) > userRestLogin (OK=666 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [- ] 0% waiting: 360187 / active: 1 / done: 666 ================================================================================ ================================================================================ 2023-04-12 19:35:04 25s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=1041 KO=0 ) > userRestLogin (OK=1041 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [- ] 0% waiting: 359812 / active: 1 / done: 1041 ================================================================================ ================================================================================ 2023-04-12 19:35:09 30s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=1498 KO=0 ) > userRestLogin (OK=1498 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [- ] 0% waiting: 359354 / active: 2 / done: 1498 ================================================================================ ================================================================================ 2023-04-12 19:35:14 35s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=1971 KO=0 ) > userRestLogin (OK=1971 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [ ] 0% waiting: 358883 / active: 0 / done: 1971 ================================================================================ ================================================================================ 2023-04-12 19:35:19 40s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=2471 KO=0 ) > userRestLogin (OK=2471 KO=0 ) ---- am.AMAuthN ---------------------------------------------------------------- [- ] 0% waiting: 358381 / active: 2 / done: 2471 [...] ---- am.AMAuthN ---------------------------------------------------------------- [#########################################################################-] 99% waiting: 2038 / active: 2 / done: 358814 ================================================================================ ================================================================================ 2023-04-12 20:34:54 3615s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=359315 KO=1 ) > userRestLogin (OK=359315 KO=1 ) ---- Errors -------------------------------------------------------------------- > status.find.in(200,201,202,203,204,205,206,207,208,209,304,401 1 (100.0%) ), but actually found 502 ---- am.AMAuthN ---------------------------------------------------------------- [######################################################################### ] 99% waiting: 1538 / active: 0 / done: 359316 ================================================================================ ================================================================================ 2023-04-12 20:34:59 3620s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=359846 KO=1 ) > userRestLogin (OK=359846 KO=1 ) ---- Errors -------------------------------------------------------------------- > status.find.in(200,201,202,203,204,205,206,207,208,209,304,401 1 (100.0%) ), but actually found 502 ---- am.AMAuthN ---------------------------------------------------------------- [######################################################################### ] 99% waiting: 1007 / active: 0 / done: 359847 ================================================================================ ================================================================================ 2023-04-12 20:35:04 3625s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=360360 KO=1 ) > userRestLogin (OK=360360 KO=1 ) ---- Errors -------------------------------------------------------------------- > status.find.in(200,201,202,203,204,205,206,207,208,209,304,401 1 (100.0%) ), but actually found 502 ---- am.AMAuthN ---------------------------------------------------------------- [######################################################################### ] 99% waiting: 493 / active: 0 / done: 360361 ================================================================================ ================================================================================ 2023-04-12 20:35:09 3630s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=360851 KO=1 ) > userRestLogin (OK=360851 KO=1 ) ---- Errors -------------------------------------------------------------------- > status.find.in(200,201,202,203,204,205,206,207,208,209,304,401 1 (100.0%) ), but actually found 502 ---- am.AMAuthN ---------------------------------------------------------------- [#########################################################################-] 99% waiting: 0 / active: 2 / done: 360852 ================================================================================ ================================================================================ 2023-04-12 20:35:09 3630s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=360853 KO=1 ) > userRestLogin (OK=360853 KO=1 ) ---- Errors -------------------------------------------------------------------- > status.find.in(200,201,202,203,204,205,206,207,208,209,304,401 1 (100.0%) ), but actually found 502 ---- am.AMAuthN ---------------------------------------------------------------- [##########################################################################]100% waiting: 0 / active: 0 / done: 360854 ================================================================================ Simulation com.forgerock.gatling.Loadtest completed in 3630 seconds ---------------------- [12/Apr/2023 20:35:09] Create tar file authn-users-100.tar.gz ---------------------- RESULTS_FOLDER=/results/gatling/ RESULT_FOLDER=authn-users-100 SIMULATION_PATH=authn-users-100/loadtest-20230412183438965 PWD=/results/gatling/authn-users-100/loadtest-20230412183438965 [cmd] tar -czvf /results/gatling//authn-users-100.tar.gz --exclude=simulation.log * /results/gatling ---------------------- [12/Apr/2023 20:35:09] Update /results/gatling//latest ---------------------- ---------------------- [12/Apr/2023 20:35:09] Update /results/gatling//latest.tar.gz ---------------------- ________________________________________________________________________________ [12/Apr/2023 19:36:59] authn-users-100 show_stderr : Display stderr order ________________________________________________________________________________ [print_head_tail]: Input file /mnt/disks/data/xslou/lodestar-fork/results/pyrock/authn_rest/07_AuthN/01_authn-users-100/stderr.txt is small (0 lines), printing all lines: ----- output ----- ________________________________________________________________________________ [12/Apr/2023 19:36:59] authn-users-100 check_rc_and_logs : Check order's outputs ________________________________________________________________________________ PASS: no error found in rc log PASS: no error found in stdout log PASS: no error found in stderr log ________________________________________________________________________________ [12/Apr/2023 19:36:59] authn-users-100 print_overseer_logs : Print overseer logs from the K8s pod ________________________________________________________________________________ Task result is INIT no need to display logs. ________________________________________________________________________________ [12/Apr/2023 19:36:59] authn-users-100 post : Post ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped