report-non-mig-gpu.html

Report generated on 15-Oct-2024 at 15:02:10 by pytest-html v3.2.0

Summary

3 tests ran in 118.20 seconds.

3 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Passed rest_apis/test_list_recommendations.py::test_list_recommendations_namespace_single_result[list_reco_default_cluster1-201-v2.0-test-default-ns-cluster-1-resource-optimization-local-monitoring-monitor-local-prometheus-1-namespace-None-None-None-default-None-None-15min-0.1] 55.62
------------------------------Captured stdout call------------------------------
tmp_json_file = /tmp/create_exp_list_reco_default_cluster1.json IP = kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com KRUIZE AUTOTUNE URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com Deleting the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment <Response [400]> Response status code = 400 delete exp = 400 Deleting the metric profile... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/deleteMetricProfile?name=resource-optimization-local-monitoring <Response [201]> Response status code = 201 delete metric profile = 201 Creating metric profile... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createMetricProfile Response status code = 201 {"message":"Metric Profile : resource-optimization-local-monitoring created successfully. View Metric Profiles at /listMetricProfiles","httpcode":201,"documentationLink":"","status":"SUCCESS"} Metric Profile : resource-optimization-local-monitoring created successfully. View Metric Profiles at /listMetricProfiles Listing the metric profiles... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/listMetricProfiles?name=resource-optimization-local-monitoring PARAMS = {'name': 'resource-optimization-local-monitoring'} Response status code = 200 Validating json against the json schema... Validating json against the json schema...done ************************************************************ [ { "version": "v2.0", "experiment_name": "test-default-ns", "cluster_name": "cluster-1", "performance_profile": "resource-optimization-local-monitoring", "mode": "monitor", "target_cluster": "local", "datasource": "prometheus-1", "experiment_type": "namespace", "kubernetes_objects": [ { "namespaces": { "namespace_name": "default" } } ], "trial_settings": { "measurement_duration": "15min" }, "recommendation_settings": { "threshold": "0.1" } } ] ************************************************************ Creating the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment Response status code = 201 { "message": "Experiment registered successfully with Kruize. View registered experiments at /listExperiments", "httpcode": 201, "documentationLink": "", "status": "SUCCESS" } Experiment registered successfully with Kruize. View registered experiments at /listExperiments ************************************************************ Generating the recommendation for test-default-ns... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/generateRecommendations?experiment_name=test-default-ns Response status code = 201 [ { "cluster_name": "cluster-1", "experiment_type": "namespace", "kubernetes_objects": [ { "namespace": "default", "containers": [], "namespaces": { "namespace_name": "default", "recommendations": { "version": "1.0", "notifications": { "111000": { "type": "info", "message": "Recommendations Are Available", "code": 111000 } }, "data": { "2024-10-15T09:30:22.000Z": { "notifications": { "111101": { "type": "info", "message": "Short Term Recommendations Available", "code": 111101 }, "111103": { "type": "info", "message": "Long Term Recommendations Available", "code": 111103 }, "111102": { "type": "info", "message": "Medium Term Recommendations Available", "code": 111102 } }, "monitoring_end_time": "2024-10-15T09:30:22.000Z", "current": { "requests": { "memory": { "amount": 3.4359738368E10, "format": "bytes" }, "cpu": { "amount": 16.0, "format": "cores" } }, "limits": { "memory": { "amount": 6.8719476736E10, "format": "bytes" }, "cpu": { "amount": 32.0, "format": "cores" } } }, "recommendation_terms": { "short_term": { "duration_in_hours": 24.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-14T09:30:22.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018661999999996701, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018661999999996701, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -15.9981338, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -31.9981338, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0362058555555556, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0362058555555556, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -13.963794144444444, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -29.963794144444446, "format": "cores" } } }, "notifications": {} } } }, "medium_term": { "duration_in_hours": 168.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-08T09:30:22.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005764066666666837, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005764066666666837, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.994235933333334, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.994235933333332, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4931423904724072, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4931423904724072, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.506857609527593, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.506857609527593, "format": "cores" } } }, "notifications": {} } } }, "long_term": { "duration_in_hours": 360.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-09-30T09:30:22.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.00210756666666659, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.00210756666666659, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.997892433333334, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.997892433333334, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4870407972092903, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4870407972092903, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.512959202790709, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.51295920279071, "format": "cores" } } }, "notifications": {} } } } } } } } } } ], "version": "v2.0", "experiment_name": "test-default-ns" } ] ************************************************************ Listing the recommendations... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/listRecommendations PARAMS = {'experiment_name': 'test-default-ns'} Response status code = 200 ************************************************************ [ { "cluster_name": "cluster-1", "experiment_type": "namespace", "kubernetes_objects": [ { "namespace": "default", "containers": [], "namespaces": { "namespace_name": "default", "recommendations": { "version": "1.0", "notifications": { "111000": { "type": "info", "message": "Recommendations Are Available", "code": 111000 } }, "data": { "2024-10-15T09:30:22.000Z": { "notifications": { "111101": { "type": "info", "message": "Short Term Recommendations Available", "code": 111101 }, "111103": { "type": "info", "message": "Long Term Recommendations Available", "code": 111103 }, "111102": { "type": "info", "message": "Medium Term Recommendations Available", "code": 111102 } }, "monitoring_end_time": "2024-10-15T09:30:22.000Z", "current": { "requests": { "memory": { "amount": 3.4359738368E10, "format": "bytes" }, "cpu": { "amount": 16.0, "format": "cores" } }, "limits": { "memory": { "amount": 6.8719476736E10, "format": "bytes" }, "cpu": { "amount": 32.0, "format": "cores" } } }, "recommendation_terms": { "short_term": { "duration_in_hours": 24.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-14T09:30:22.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018661999999996701, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018661999999996701, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -15.9981338, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -31.9981338, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0362058555555556, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0362058555555556, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -13.963794144444444, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -29.963794144444446, "format": "cores" } } }, "notifications": {} } } }, "medium_term": { "duration_in_hours": 168.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-08T09:30:22.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005764066666666837, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005764066666666837, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.994235933333334, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.994235933333332, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4931423904724072, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4931423904724072, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.506857609527593, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.506857609527593, "format": "cores" } } }, "notifications": {} } } }, "long_term": { "duration_in_hours": 360.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-09-30T09:30:22.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.00210756666666659, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.00210756666666659, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.997892433333334, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.997892433333334, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4870407972092903, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4870407972092903, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.512959202790709, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.51295920279071, "format": "cores" } } }, "notifications": {} } } } } } } } } } ], "version": "v2.0", "experiment_name": "test-default-ns" } ] ************************************************************ Validating json against the json schema... Validating json against the json schema...done interval_end_time = 2024-10-15T09:30:22.000Z reco present for term short_term duration in hours = 24.0 Actual = 24.0 expected = 24.0 duration in hours = 48.0 reco present for term medium_term duration in hours = 192.0 Actual = 168.0 expected = 168.0 duration in hours = 336.0 reco present for term long_term duration in hours = 528.0 Actual = 360.0 expected = 360.0 duration in hours = 720.0 Deleting the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment <Response [201]> Response status code = 201 delete exp = 201
------------------------------Captured stderr call------------------------------
Error from server (AlreadyExists): routes.route.openshift.io "kruize" already exists Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
Passed rest_apis/test_list_recommendations.py::test_list_recommendations_namespace_single_result[list_reco_default_cluster2-201-v2.0-test-default-ns-cluster-2-resource-optimization-local-monitoring-monitor-local-prometheus-1-namespace-None-None-None-default-None-None-15min-0.1] 51.72
------------------------------Captured stdout call------------------------------
tmp_json_file = /tmp/create_exp_list_reco_default_cluster2.json IP = kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com KRUIZE AUTOTUNE URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com Deleting the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment <Response [400]> Response status code = 400 delete exp = 400 Deleting the metric profile... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/deleteMetricProfile?name=resource-optimization-local-monitoring <Response [201]> Response status code = 201 delete metric profile = 201 Creating metric profile... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createMetricProfile Response status code = 201 {"message":"Metric Profile : resource-optimization-local-monitoring created successfully. View Metric Profiles at /listMetricProfiles","httpcode":201,"documentationLink":"","status":"SUCCESS"} Metric Profile : resource-optimization-local-monitoring created successfully. View Metric Profiles at /listMetricProfiles Listing the metric profiles... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/listMetricProfiles?name=resource-optimization-local-monitoring PARAMS = {'name': 'resource-optimization-local-monitoring'} Response status code = 200 Validating json against the json schema... Validating json against the json schema...done ************************************************************ [ { "version": "v2.0", "experiment_name": "test-default-ns", "cluster_name": "cluster-2", "performance_profile": "resource-optimization-local-monitoring", "mode": "monitor", "target_cluster": "local", "datasource": "prometheus-1", "experiment_type": "namespace", "kubernetes_objects": [ { "namespaces": { "namespace_name": "default" } } ], "trial_settings": { "measurement_duration": "15min" }, "recommendation_settings": { "threshold": "0.1" } } ] ************************************************************ Creating the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment Response status code = 201 { "message": "Experiment registered successfully with Kruize. View registered experiments at /listExperiments", "httpcode": 201, "documentationLink": "", "status": "SUCCESS" } Experiment registered successfully with Kruize. View registered experiments at /listExperiments ************************************************************ Generating the recommendation for test-default-ns... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/generateRecommendations?experiment_name=test-default-ns Response status code = 201 [ { "cluster_name": "cluster-2", "experiment_type": "namespace", "kubernetes_objects": [ { "namespace": "default", "containers": [], "namespaces": { "namespace_name": "default", "recommendations": { "version": "1.0", "notifications": { "111000": { "type": "info", "message": "Recommendations Are Available", "code": 111000 } }, "data": { "2024-10-15T09:31:16.000Z": { "notifications": { "111101": { "type": "info", "message": "Short Term Recommendations Available", "code": 111101 }, "111103": { "type": "info", "message": "Long Term Recommendations Available", "code": 111103 }, "111102": { "type": "info", "message": "Medium Term Recommendations Available", "code": 111102 } }, "monitoring_end_time": "2024-10-15T09:31:16.000Z", "current": { "requests": { "memory": { "amount": 3.4359738368E10, "format": "bytes" }, "cpu": { "amount": 16.0, "format": "cores" } }, "limits": { "memory": { "amount": 6.8719476736E10, "format": "bytes" }, "cpu": { "amount": 32.0, "format": "cores" } } }, "recommendation_terms": { "short_term": { "duration_in_hours": 24.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-14T09:31:16.000Z", "recommendation_engines": { "cost": { "pods_count": 3, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018718999999999635, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018718999999999635, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -15.9981281, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -31.9981281, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 3, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0353660555555555, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0353660555555555, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -13.964633944444444, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -29.964633944444444, "format": "cores" } } }, "notifications": {} } } }, "medium_term": { "duration_in_hours": 168.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-08T09:31:16.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005769077777777225, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005769077777777225, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.994230922222222, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.994230922222222, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4951614825342112, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4951614825342112, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.504838517465789, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.50483851746579, "format": "cores" } } }, "notifications": {} } } }, "long_term": { "duration_in_hours": 360.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-09-30T09:31:16.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.0021022000000002093, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.0021022000000002093, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.9978978, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.9978978, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4849455155324294, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4849455155324294, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.515054484467571, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.51505448446757, "format": "cores" } } }, "notifications": {} } } } } } } } } } ], "version": "v2.0", "experiment_name": "test-default-ns" } ] ************************************************************ Listing the recommendations... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/listRecommendations PARAMS = {'experiment_name': 'test-default-ns'} Response status code = 200 ************************************************************ [ { "cluster_name": "cluster-2", "experiment_type": "namespace", "kubernetes_objects": [ { "namespace": "default", "containers": [], "namespaces": { "namespace_name": "default", "recommendations": { "version": "1.0", "notifications": { "111000": { "type": "info", "message": "Recommendations Are Available", "code": 111000 } }, "data": { "2024-10-15T09:31:16.000Z": { "notifications": { "111101": { "type": "info", "message": "Short Term Recommendations Available", "code": 111101 }, "111103": { "type": "info", "message": "Long Term Recommendations Available", "code": 111103 }, "111102": { "type": "info", "message": "Medium Term Recommendations Available", "code": 111102 } }, "monitoring_end_time": "2024-10-15T09:31:16.000Z", "current": { "requests": { "memory": { "amount": 3.4359738368E10, "format": "bytes" }, "cpu": { "amount": 16.0, "format": "cores" } }, "limits": { "memory": { "amount": 6.8719476736E10, "format": "bytes" }, "cpu": { "amount": 32.0, "format": "cores" } } }, "recommendation_terms": { "short_term": { "duration_in_hours": 24.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-14T09:31:16.000Z", "recommendation_engines": { "cost": { "pods_count": 3, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018718999999999635, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 0.0018718999999999635, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -15.9981281, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -31.9981281, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 3, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0353660555555555, "format": "cores" } }, "limits": { "memory": { "amount": 3.812376576E8, "format": "bytes" }, "cpu": { "amount": 2.0353660555555555, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.39785007104E10, "format": "bytes" }, "cpu": { "amount": -13.964633944444444, "format": "cores" } }, "limits": { "memory": { "amount": -6.83382390784E10, "format": "bytes" }, "cpu": { "amount": -29.964633944444444, "format": "cores" } } }, "notifications": {} } } }, "medium_term": { "duration_in_hours": 168.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-08T09:31:16.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005769077777777225, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.005769077777777225, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.994230922222222, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.994230922222222, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4951614825342112, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4951614825342112, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.504838517465789, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.50483851746579, "format": "cores" } } }, "notifications": {} } } }, "long_term": { "duration_in_hours": 360.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-09-30T09:31:16.000Z", "recommendation_engines": { "cost": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.0021022000000002093, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.0021022000000002093, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.9978978, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.9978978, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 4, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4849455155324294, "format": "cores" } }, "limits": { "memory": { "amount": 4.866981888E8, "format": "bytes" }, "cpu": { "amount": 0.4849455155324294, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": -3.38730401792E10, "format": "bytes" }, "cpu": { "amount": -15.515054484467571, "format": "cores" } }, "limits": { "memory": { "amount": -6.82327785472E10, "format": "bytes" }, "cpu": { "amount": -31.51505448446757, "format": "cores" } } }, "notifications": {} } } } } } } } } } ], "version": "v2.0", "experiment_name": "test-default-ns" } ] ************************************************************ Validating json against the json schema... Validating json against the json schema...done interval_end_time = 2024-10-15T09:31:16.000Z reco present for term short_term duration in hours = 24.0 Actual = 24.0 expected = 24.0 duration in hours = 48.0 reco present for term medium_term duration in hours = 192.0 Actual = 168.0 expected = 168.0 duration in hours = 336.0 reco present for term long_term duration in hours = 528.0 Actual = 360.0 expected = 360.0 duration in hours = 720.0 Deleting the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment <Response [201]> Response status code = 201 delete exp = 201
------------------------------Captured stderr call------------------------------
Error from server (AlreadyExists): routes.route.openshift.io "kruize" already exists Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+
Passed rest_apis/test_list_recommendations.py::test_accelerator_recommendation_if_exists[list_accelerator_recommendations-201-v2.0-human_eval_exp-cluster-1-resource-optimization-local-monitoring-monitor-local-prometheus-1-container-deployment-gpu-burn-gpu-test-None-None-main-15min-0.1] 10.29
------------------------------Captured stdout call------------------------------
tmp_json_file = /tmp/create_exp_list_accelerator_recommendations.json IP = kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com KRUIZE AUTOTUNE URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com Deleting the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment <Response [400]> Response status code = 400 delete exp = 400 Deleting the metric profile... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/deleteMetricProfile?name=resource-optimization-local-monitoring <Response [201]> Response status code = 201 delete metric profile = 201 Creating metric profile... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createMetricProfile Response status code = 201 {"message":"Metric Profile : resource-optimization-local-monitoring created successfully. View Metric Profiles at /listMetricProfiles","httpcode":201,"documentationLink":"","status":"SUCCESS"} Metric Profile : resource-optimization-local-monitoring created successfully. View Metric Profiles at /listMetricProfiles Listing the metric profiles... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/listMetricProfiles?name=resource-optimization-local-monitoring PARAMS = {'name': 'resource-optimization-local-monitoring'} Response status code = 200 Validating json against the json schema... Validating json against the json schema...done ************************************************************ [ { "version": "v2.0", "experiment_name": "human_eval_exp", "cluster_name": "cluster-1", "performance_profile": "resource-optimization-local-monitoring", "mode": "monitor", "target_cluster": "local", "datasource": "prometheus-1", "experiment_type": "container", "kubernetes_objects": [ { "type": "deployment", "name": "gpu-burn", "namespace": "gpu-test", "containers": [ { "container_image_name": "None", "container_name": "main" } ] } ], "trial_settings": { "measurement_duration": "15min" }, "recommendation_settings": { "threshold": "0.1" } } ] ************************************************************ Creating the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment Response status code = 201 { "message": "Experiment registered successfully with Kruize. View registered experiments at /listExperiments", "httpcode": 201, "documentationLink": "", "status": "SUCCESS" } Experiment registered successfully with Kruize. View registered experiments at /listExperiments ************************************************************ Generating the recommendation for human_eval_exp... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/generateRecommendations?experiment_name=human_eval_exp Response status code = 201 [ { "cluster_name": "cluster-1", "experiment_type": "container", "kubernetes_objects": [ { "type": "deployment", "name": "gpu-burn", "namespace": "gpu-test", "containers": [ { "container_image_name": "None", "container_name": "main", "recommendations": { "version": "1.0", "notifications": { "111000": { "type": "info", "message": "Recommendations Are Available", "code": 111000 } }, "data": { "2024-10-15T09:32:08.000Z": { "notifications": { "224001": { "type": "error", "message": "Amount field is missing in the Memory Section", "code": 224001 }, "524002": { "type": "critical", "message": "Memory Limit Not Set", "code": 524002 }, "524001": { "type": "critical", "message": "Memory Request Not Set", "code": 524001 }, "223001": { "type": "error", "message": "Amount field is missing in the CPU Section", "code": 223001 }, "111101": { "type": "info", "message": "Short Term Recommendations Available", "code": 111101 }, "523001": { "type": "critical", "message": "CPU Request Not Set", "code": 523001 }, "423001": { "type": "warning", "message": "CPU Limit Not Set", "code": 423001 } }, "monitoring_end_time": "2024-10-15T09:32:08.000Z", "current": {}, "recommendation_terms": { "short_term": { "duration_in_hours": 24.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-14T09:32:08.000Z", "recommendation_engines": { "cost": { "pods_count": 1, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 1, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "notifications": {} } }, "plots": { "datapoints": 4, "plots_data": { "2024-10-14T21:32:08.000Z": {}, "2024-10-15T09:32:08.000Z": { "cpuUsage": { "min": 0.9157842333333339, "q1": 0.9157842333333339, "median": 0.9177182333333349, "q3": 0.9177182333333349, "max": 0.9177182333333349, "format": "cores" }, "memoryUsage": { "min": 524288.0, "q1": 5.40008448E8, "median": 5.52026112E8, "q3": 5.52026112E8, "max": 5.52026112E8, "format": "bytes" } }, "2024-10-15T03:32:08.000Z": {}, "2024-10-14T15:32:08.000Z": {} } } }, "medium_term": { "duration_in_hours": 168.0, "notifications": { "120001": { "type": "info", "message": "There is not enough data available to generate a recommendation.", "code": 120001 } } }, "long_term": { "duration_in_hours": 360.0, "notifications": { "120001": { "type": "info", "message": "There is not enough data available to generate a recommendation.", "code": 120001 } } } } } } } } ] } ], "version": "v2.0", "experiment_name": "human_eval_exp" } ] ************************************************************ Listing the recommendations... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/listRecommendations PARAMS = {'experiment_name': 'human_eval_exp'} Response status code = 200 ************************************************************ [ { "cluster_name": "cluster-1", "experiment_type": "container", "kubernetes_objects": [ { "type": "deployment", "name": "gpu-burn", "namespace": "gpu-test", "containers": [ { "container_image_name": "None", "container_name": "main", "recommendations": { "version": "1.0", "notifications": { "111000": { "type": "info", "message": "Recommendations Are Available", "code": 111000 } }, "data": { "2024-10-15T09:32:08.000Z": { "notifications": { "224001": { "type": "error", "message": "Amount field is missing in the Memory Section", "code": 224001 }, "524002": { "type": "critical", "message": "Memory Limit Not Set", "code": 524002 }, "524001": { "type": "critical", "message": "Memory Request Not Set", "code": 524001 }, "223001": { "type": "error", "message": "Amount field is missing in the CPU Section", "code": 223001 }, "111101": { "type": "info", "message": "Short Term Recommendations Available", "code": 111101 }, "523001": { "type": "critical", "message": "CPU Request Not Set", "code": 523001 }, "423001": { "type": "warning", "message": "CPU Limit Not Set", "code": 423001 } }, "monitoring_end_time": "2024-10-15T09:32:08.000Z", "current": {}, "recommendation_terms": { "short_term": { "duration_in_hours": 24.0, "notifications": { "112101": { "type": "info", "message": "Cost Recommendations Available", "code": 112101 }, "112102": { "type": "info", "message": "Performance Recommendations Available", "code": 112102 } }, "monitoring_start_time": "2024-10-14T09:32:08.000Z", "recommendation_engines": { "cost": { "pods_count": 1, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "notifications": {} }, "performance": { "pods_count": 1, "confidence_level": 0.0, "config": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "variation": { "requests": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } }, "limits": { "memory": { "amount": 6.624313344E8, "format": "bytes" }, "cpu": { "amount": 0.9177182333333349, "format": "cores" } } }, "notifications": {} } }, "plots": { "datapoints": 4, "plots_data": { "2024-10-14T15:32:08.000Z": {}, "2024-10-14T21:32:08.000Z": {}, "2024-10-15T03:32:08.000Z": {}, "2024-10-15T09:32:08.000Z": { "cpuUsage": { "min": 0.9157842333333339, "q1": 0.9157842333333339, "median": 0.9177182333333349, "q3": 0.9177182333333349, "max": 0.9177182333333349, "format": "cores" }, "memoryUsage": { "min": 524288.0, "q1": 5.40008448E8, "median": 5.52026112E8, "q3": 5.52026112E8, "max": 5.52026112E8, "format": "bytes" } } } } }, "medium_term": { "duration_in_hours": 168.0, "notifications": { "120001": { "type": "info", "message": "There is not enough data available to generate a recommendation.", "code": 120001 } } }, "long_term": { "duration_in_hours": 360.0, "notifications": { "120001": { "type": "info", "message": "There is not enough data available to generate a recommendation.", "code": 120001 } } } } } } } } ] } ], "version": "v2.0", "experiment_name": "human_eval_exp" } ] ************************************************************ Validating json against the json schema... Validating json against the json schema...done Deleting the experiment... URL = http://kruize-openshift-tuning.apps.kruize-lm.4zhx.p1.openshiftapps.com/createExperiment <Response [201]> Response status code = 201 delete exp = 201
------------------------------Captured stderr call------------------------------
Error from server (AlreadyExists): routes.route.openshift.io "kruize" already exists Warning: apps.openshift.io/v1 DeploymentConfig is deprecated in v4.14+, unavailable in v4.10000+