--Task-- name: preload-with-gatling enabled: True class_name: PreloadWithGatling source_name: overseer-0 source_namespace: >default< target_name: idm 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: ['prepare-workload'] wait_for: [] options: {'simulation': 'idm.simple_managed_users.ManagedUsersPreload', 'concurrency': 20, 'java-opts': '-Dcsvfile=/results/idm/preload.csv'} group_name: None Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock ________________________________________________________________________________ [05/Apr/2023 16:36:54] preload-with-gatling pre : N/A ________________________________________________________________________________ [05/Apr/2023 16:36:54] - INFO: Get overseer pod resources requests memory [loop_until]: kubectl --namespace=xlou get pods overseer-0-555bcfccf9-w98xc -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 --- [05/Apr/2023 16:36:54] - INFO: Timeout for this Task has changed to 2h (7200 seconds) [05/Apr/2023 16:36:54] - INFO: timeout was set to GatlingTask default, because it was unset Pod log file : /results/orders/preload-with-gatling/stdout.txt Pod log : /results/orders/preload-with-gatling ________________________________________________________________________________ [05/Apr/2023 16:36:54] preload-with-gatling print_command : Display the command to be forwarded to overseer as an order ________________________________________________________________________________ /lodestar/clients/gatling-for-pyrock.sh --run-mode local --simulation idm.simple_managed_users.ManagedUsersPreload --simulations-folder /lodestar/pyrock/shared/clients/gatling/ --run-description idm.simple_managed_users.ManagedUsersPreload@medium --results-folder /results/gatling/preload-with-gatling --no-reports ________________________________________________________________________________ [05/Apr/2023 16:36:54] preload-with-gatling create_order : Create order for overseer with the command to run ________________________________________________________________________________ Order file : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/order.json { "name": "preload-with-gatling", "command": "/lodestar/clients/gatling-for-pyrock.sh --run-mode local --simulation idm.simple_managed_users.ManagedUsersPreload --simulations-folder /lodestar/pyrock/shared/clients/gatling/ --run-description idm.simple_managed_users.ManagedUsersPreload@medium --results-folder /results/gatling/preload-with-gatling --no-reports", "out-dir": "/results/orders/preload-with-gatling", "environment": { "JAVA_OPTS": "-Dam_host=xlou.iam.xlou-cdm.engineeringpit.com -DamadminPassword=EKv3BOReW18D87Slm6Fmitvr -DamadminUsername=amadmin -Dconcurrency=20 -Dcsvfile=/results/idm/preload.csv -Didm_host=xlou.iam.xlou-cdm.engineeringpit.com -Dnum_users=1000000 -Duser_password=T35tr0ck123 -Xmx4G" } } ________________________________________________________________________________ [05/Apr/2023 16:36:54] preload-with-gatling 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 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 7 100 7 0 0 33 0 --:--:-- --:--:-- --:--:-- 33 ________________________________________________________________________________ [05/Apr/2023 16:36:54] preload-with-gatling 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-555bcfccf9-w98xc --- stderr --- [loop_until]: kubectl --namespace=xlou cp /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/order.json overseer-0-555bcfccf9-w98xc:/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 [05/Apr/2023 16:36:56] - 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-555bcfccf9-w98xc --- stderr --- [loop_until]: kubectl --namespace=xlou exec overseer-0-555bcfccf9-w98xc -- head /results/orders/preload-with-gatling/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 17:36:59.608 [WARN ] i.g.c.ZincCompiler$ - -target is deprecated: Use -release instead to compile against the correct platform API. 17:37:08.042 [WARN ] i.g.c.ZincCompiler$ - one warning found Gatling 3.9.3 is available! (you're using 3.9.0) 17:37:10.580 [WARN ] i.g.c.s.e.ElCompiler$ - You're still using the deprecated ${} pattern for Gatling EL. Please use the #{} pattern instead. think time multiplier is 0x Simulation idm.simple_managed_users.ManagedUsersPreload started... --- stderr --- ________________________________________________________________________________ [05/Apr/2023 16:37:14] preload-with-gatling 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 2h 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 01s, 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 PASS : Order stopped by itself after 22m 03s and before timeout (2h) ________________________________________________________________________________ [05/Apr/2023 16:59:18] preload-with-gatling 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-555bcfccf9-w98xc --- stderr --- [loop_until]: kubectl --namespace=xlou exec overseer-0-555bcfccf9-w98xc -- 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 22m 22s ________________________________________________________________________________ [05/Apr/2023 16:59:19] preload-with-gatling 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-555bcfccf9-w98xc --- stderr --- Checking pod: overseer-0-555bcfccf9-w98xc 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-555bcfccf9-w98xc --- stderr --- [loop_until]: kubectl --namespace=xlou exec overseer-0-555bcfccf9-w98xc -i -- bash -c 'if [ -f "/results/orders/preload-with-gatling/order.tar.gz" ]; then echo "/results/orders/preload-with-gatling/order.tar.gz file found"; exit 0; else echo "/results/orders/preload-with-gatling/order.tar.gz file not found"; exit 1; fi' | grep "/results/orders/preload-with-gatling/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/preload-with-gatling/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-555bcfccf9-w98xc --- stderr --- [run_command]: kubectl --namespace=xlou exec overseer-0-555bcfccf9-w98xc -i -- du -k /results/orders/preload-with-gatling/order.tar.gz [run_command]: OK (rc = 0 - expected to be in [0]) --- stdout --- 8 /results/orders/preload-with-gatling/order.tar.gz --- stderr --- - Download file (size 8k) [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-555bcfccf9-w98xc --- stderr --- source : /results/orders/preload-with-gatling/order.tar.gz @ overseer-0-555bcfccf9-w98xc destination : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/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-555bcfccf9-w98xc --- stderr --- [loop_until]: kubectl --namespace=xlou cp overseer-0-555bcfccf9-w98xc:/results/orders/preload-with-gatling/order.tar.gz /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/order.tar.gz [loop_until]: (max_time=-1, interval=5, expected_rc=[0] [loop_until]: OK (rc = 0) --- stdout --- --- stderr --- - Extract archive zip file : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/order.tar.gz destination : /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling ________________________________________________________________________________ [05/Apr/2023 16:59:23] preload-with-gatling show_cmd : Display order command ________________________________________________________________________________ [print_head_tail]: Input file /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/cmd.txt is small (1 lines), printing all lines: ----- output ----- /lodestar/clients/gatling-for-pyrock.sh --run-mode local --simulation idm.simple_managed_users.ManagedUsersPreload --simulations-folder /lodestar/pyrock/shared/clients/gatling/ --run-description idm.simple_managed_users.ManagedUsersPreload@medium --results-folder /results/gatling/preload-with-gatling --no-reports ________________________________________________________________________________ [05/Apr/2023 16:59:23] preload-with-gatling show_rc : Display rc order ________________________________________________________________________________ [print_head_tail]: Input file /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/rc.txt is small (1 lines), printing all lines: ----- output ----- CMD SUCCESS: command returns code 0 (expected [0, -9, 143, 137, -15]) ________________________________________________________________________________ [05/Apr/2023 16:59:23] preload-with-gatling 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/platform/05_Data_init/02_preload-with-gatling/stdout.txt is 3821 lines): ----- output ----- GATLING_HOME is set to /home/jenkins/lodestar/clients/gatling 17:36:59.608 [WARN ] i.g.c.ZincCompiler$ - -target is deprecated: Use -release instead to compile against the correct platform API. 17:37:08.042 [WARN ] i.g.c.ZincCompiler$ - one warning found Gatling 3.9.3 is available! (you're using 3.9.0) 17:37:10.580 [WARN ] i.g.c.s.e.ElCompiler$ - You're still using the deprecated ${} pattern for Gatling EL. Please use the #{} pattern instead. think time multiplier is 0x Simulation idm.simple_managed_users.ManagedUsersPreload started... ================================================================================ 2023-04-05 17:37:16 5s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=1071 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=1011 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:37:21 10s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=3116 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=3056 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:37:26 15s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=5478 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=5418 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:37:31 20s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=9127 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=9067 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:37:36 25s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=12864 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=12804 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:37:41 30s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=16742 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=16682 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:37:46 35s elapsed [...] ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:57:56 1245s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=986667 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=986607 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:58:01 1250s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=990741 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=990681 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:58:06 1255s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=994784 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=994724 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:58:11 1260s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=998839 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=998779 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [--------------------------------------------------------------------------] 0% waiting: 0 / active: 20 / done: 0 ================================================================================ ================================================================================ 2023-04-05 17:58:13 1261s elapsed ---- Requests ------------------------------------------------------------------ > Global (OK=1000060 KO=0 ) > Admin Rest login stage (OK=20 KO=0 ) > Admin Authorize stage (OK=20 KO=0 ) > Admin AccessToken stage (OK=20 KO=0 ) > Create Managed User (OK=1000000 KO=0 ) ---- Managed User Create Preload ----------------------------------------------- [##########################################################################]100% waiting: 0 / active: 0 / done: 20 ================================================================================ Simulation idm.simple_managed_users.ManagedUsersPreload completed in 1261 seconds ---------------------- [05/Apr/2023 17:58:13] Create tar file preload-with-gatling.tar.gz ---------------------- RESULTS_FOLDER=/results/gatling/ RESULT_FOLDER=preload-with-gatling SIMULATION_PATH=preload-with-gatling/manageduserspreload-20230405163710695 PWD=/results/gatling/preload-with-gatling/manageduserspreload-20230405163710695 [cmd] tar -czvf /results/gatling//preload-with-gatling.tar.gz --exclude=simulation.log * /results/gatling ---------------------- [05/Apr/2023 17:58:13] Update /results/gatling//latest ---------------------- ---------------------- [05/Apr/2023 17:58:13] Update /results/gatling//latest.tar.gz ---------------------- ________________________________________________________________________________ [05/Apr/2023 16:59:23] preload-with-gatling show_stderr : Display stderr order ________________________________________________________________________________ [print_head_tail]: Input file /mnt/disks/data/xslou/lodestar-fork/results/pyrock/platform/05_Data_init/02_preload-with-gatling/stderr.txt is small (0 lines), printing all lines: ----- output ----- ________________________________________________________________________________ [05/Apr/2023 16:59:23] preload-with-gatling 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 ________________________________________________________________________________ [05/Apr/2023 16:59:23] preload-with-gatling print_overseer_logs : Print overseer logs from the K8s pod ________________________________________________________________________________ Task result is INIT no need to display logs. ________________________________________________________________________________ [05/Apr/2023 16:59:23] preload-with-gatling post : N/A ________________________________________________________________________________ Setting result to PASS Task has been successfully stopped