--Task--
name: Discover_IDC_tenant
enabled: True
class_name: DiscoverTenantTask
source_name: controller
source_namespace: >default<
target_name: controller
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: {}
group_name: None
Current dir: /mnt/disks/data/xslou/lodestar-fork/pyrock
[28/Aug/2022 22:46:24] - INFO: setting default timeout for task - 2x global_duration or 300 seconds (whatever is higher):
[28/Aug/2022 22:46:24] - INFO: Timeout for this Task has changed to 2h (7200 seconds)
________________________________________________________________________________
[28/Aug/2022 22:46:24] Discover_IDC_tenant step1 : N/A
________________________________________________________________________________
Deployment is skipped
************************************* Creating deployment *************************************
Creating IDC type deployment for stack
****************************** Livecheck stage: After deployment ******************************
------------------------ Running AM livecheck ------------------------
Livecheck to https://openam-perf-100m-testing.forgeblocks.com/am/json/health/ready
[http_cmd]: curl --insecure -L -X GET "https://openam-perf-100m-testing.forgeblocks.com/am/json/health/ready"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
------------------------ Running IDM livecheck ------------------------
Livecheck to https://openam-perf-100m-testing.forgeblocks.com/openidm/info/ping
[http_cmd]: curl -H "X-OpenIDM-Username: anonymous" -H "X-OpenIDM-Password: ****" --insecure -L -X GET "https://openam-perf-100m-testing.forgeblocks.com/openidm/info/ping"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"_id": "",
"_rev": "",
"shortDesc": "OpenIDM ready",
"state": "ACTIVE_READY"
}
---------------------- Running DS-CTS livecheck ----------------------
--------------------- Running DS-IDREPO livecheck ---------------------
--------------------- Running ADMIN-UI livecheck ---------------------
Livecheck to https://openam-perf-100m-testing.forgeblocks.com/platform
[http_cmd]: curl --insecure -L -X GET "https://openam-perf-100m-testing.forgeblocks.com/platform"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
Platform Admin
[]
-------------------- Running END-USER-UI livecheck --------------------
Livecheck to https://openam-perf-100m-testing.forgeblocks.com/enduser
[http_cmd]: curl --insecure -L -X GET "https://openam-perf-100m-testing.forgeblocks.com/enduser"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
Identity Management
[]
--------------------- Running LOGIN-UI livecheck ---------------------
Livecheck to https://openam-perf-100m-testing.forgeblocks.com/am/XUI
[http_cmd]: curl --insecure -L -X GET "https://openam-perf-100m-testing.forgeblocks.com/am/XUI"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
Login
[]
LIVECHECK SUCCEEDED
****************************** Initializing component pods for AM ******************************
----------------------- Get AM software version -----------------------
Getting product version from https://openam-perf-100m-testing.forgeblocks.com/am/json/realms/alpha/serverinfo/version
- Login amadmin to get token
Authenticate user via REST
[http_cmd]: curl -H "X-OpenAM-Username: xiaosong.lou@forgerock.com" -H "X-OpenAM-Password: ****" -H "Content-Type: application/json" -H "Accept-API-Version: resource=2.0, protocol=1.0" --insecure -L -X POST "https://openam-perf-100m-testing.forgeblocks.com/am/json/authenticate?realm=/"
[http_cmd]: ERROR
--- status code ---
http status code is 401 (expected 200)
--- http response ---
{
"code": 401,
"reason": "Unauthorized",
"message": "Login failure"
}
[http_cmd] request returns wrong status code
***************************** Initializing component pods for IDM *****************************
---------------------- Get IDM software version ----------------------
Getting product version from https://openam-perf-100m-testing.forgeblocks.com/openidm/info/version
[http_cmd]: curl -H "X-OpenIDM-Username: anonymous" -H "X-OpenIDM-Password: ****" --insecure -L -X GET "https://openam-perf-100m-testing.forgeblocks.com/openidm/info/version"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
{
"_id": "version",
"productVersion": "7.2.0-2022-6-SNAPSHOT",
"productBuildDate": "20220624151541",
"productRevision": "de0be3e"
}
**************************** Initializing component pods for DS-CTS ****************************
--------------------- Get DS-CTS software version ---------------------
Component ds-cts is not in Running state so impossible to get software version
************************** Initializing component pods for DS-IDREPO **************************
------------------- Get DS-IDREPO software version -------------------
Component ds-idrepo is not in Running state so impossible to get software version
*************************** Initializing component pods for ADMIN-UI ***************************
-------------------- Get ADMIN-UI software version --------------------
Component admin-ui is running in tenant so impossible to get software version
************************* Initializing component pods for END-USER-UI *************************
------------------ Get END-USER-UI software version ------------------
Component end-user-ui is running in tenant so impossible to get software version
*************************** Initializing component pods for LOGIN-UI ***************************
-------------------- Get LOGIN-UI software version --------------------
Component login-ui is running in tenant so impossible to get software version
[28/Aug/2022 22:46:25] - INFO: Deployment ready
________________________________________________________________________________
[28/Aug/2022 22:46:25] Discover_IDC_tenant step2 : Discover overseer
________________________________________________________________________________
[loop_until]: kubectl --namespace=xlou get deployments -l "release=overseer" -o name
[loop_until]: (max_time=180, interval=5, expected_rc=[0]
[loop_until]: OK (rc = 0)
--- stdout ---
deployment.apps/overseer-0
--- stderr ---
--------------------- Get expected number of pods ---------------------
[loop_until]: kubectl --namespace=xlou get deployments -l app=overseer-0 -o jsonpath={.items[*].spec.replicas}
[loop_until]: (max_time=180, interval=5, expected_rc=[0]
[loop_until]: OK (rc = 0)
--- stdout ---
1
--- stderr ---
-------------- Waiting for 1 expected pod(s) to be ready --------------
[loop_until]: kubectl --namespace=xlou get deployments overseer-0 -o jsonpath="ready:{.status.readyReplicas} replicas:{.status.replicas}" | grep "ready:1 replicas:1"
[loop_until]: (max_time=900, interval=30, expected_rc=[0]
[loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
[loop_until]: OK (rc = 0)
--- stdout ---
ready:1 replicas:1
--- stderr ---
--------------------- Get expected number of pods ---------------------
[loop_until]: kubectl --namespace=xlou get deployments -l app=overseer-0 -o jsonpath={.items[*].spec.replicas}
[loop_until]: (max_time=180, interval=5, expected_rc=[0]
[loop_until]: OK (rc = 0)
--- stdout ---
1
--- stderr ---
---------------------------- Get pod list ----------------------------
[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-758cf6894f-b87q8
--- stderr ---
---------- Check pod overseer-0-758cf6894f-b87q8 is running ----------
[loop_until]: kubectl --namespace=xlou get pods overseer-0-758cf6894f-b87q8 -o=jsonpath={.status.phase} | grep "Running"
[loop_until]: (max_time=360, interval=5, expected_rc=[0]
[loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
[loop_until]: OK (rc = 0)
--- stdout ---
Running
--- stderr ---
[loop_until]: kubectl --namespace=xlou get pods overseer-0-758cf6894f-b87q8 -o=jsonpath={.status.containerStatuses[*].ready} | grep "true"
[loop_until]: (max_time=360, interval=5, expected_rc=[0]
[loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
[loop_until]: OK (rc = 0)
--- stdout ---
true
--- stderr ---
[loop_until]: kubectl --namespace=xlou get pod overseer-0-758cf6894f-b87q8 -o jsonpath={.status.startTime}
[loop_until]: (max_time=180, interval=5, expected_rc=[0]
[loop_until]: OK (rc = 0)
--- stdout ---
2022-08-28T19:44:26Z
--- stderr ---
--- Check pod overseer-0-758cf6894f-b87q8 filesystem is accessible ---
[loop_until]: kubectl --namespace=xlou exec overseer-0-758cf6894f-b87q8 -c overseer -- ls / | grep "bin"
[loop_until]: (max_time=360, interval=5, expected_rc=[0]
[loop_until]: Function succeeded after 0s (rc=0) - expected pattern found
[loop_until]: OK (rc = 0)
--- stdout ---
anaconda-post.log
bin
boot
dev
docker-entrypoint.sh
etc
home
lib
lib64
lodestar
lost+found
media
mnt
opt
proc
results
root
run
sbin
srv
sys
tmp
usr
var
--- stderr ---
--------- Check pod overseer-0-758cf6894f-b87q8 restart count ---------
[loop_until]: kubectl --namespace=xlou get pod overseer-0-758cf6894f-b87q8 -o jsonpath={.status.containerStatuses[*].restartCount}
[loop_until]: (max_time=180, interval=5, expected_rc=[0]
[loop_until]: OK (rc = 0)
--- stdout ---
0
--- stderr ---
Pod overseer-0-758cf6894f-b87q8 has been restarted 0 times.
Livecheck to https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com
[http_cmd]: curl --insecure -L -X GET "https://overseer-0.xlou.iam.xlou-cdm.engineeringpit.com"
[http_cmd]: http status code OK
--- status code ---
http status code is 200 (expected 200)
--- http response ---
Directory listing for /
PASS : component overseer-0 is alive
Dumping pod description and logs to /mnt/disks/data/xslou/lodestar-fork/results/pyrock/idc_am_authn/pod-logs/20220828-224628-after-overseer-0-deploy/overseer-0-758cf6894f-b87q8.txt
Check pod logs for errors
________________________________________________________________________________
[28/Aug/2022 22:46:29] Discover_IDC_tenant post : Post method
________________________________________________________________________________
Setting result to PASS
Task has been successfully stopped