|
60 | 60 | utils.aqua_model.delete_model.__name__: { |
61 | 61 | "name": "Delete Model", |
62 | 62 | "error": "Could not delete model. Please confirm you have delete permissions for Model Catalog resources in the compartment.", |
63 | | - "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-models in compartment <your-compartment-name>" |
| 63 | + "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-models in compartment <your-compartment-name>", |
| 64 | + "cleanup_hint": ( |
| 65 | + f'Automatic cleanup of resources failed due to missing policies. ' |
| 66 | + f'A model with the name "{TEST_MODEL_NAME}" and a test file with the name "{OBS_MANAGE_TEST_FILE}" ' |
| 67 | + f'have been created in the Object Storage bucket you specified. ' |
| 68 | + f'Please manually delete the resources to prevent incurring charges.' |
| 69 | + ) |
| 70 | + |
64 | 71 | }, |
65 | 72 | utils.create_job.__name__: { |
66 | 73 | "name": "Create Job", |
|
75 | 82 | "delete_job": { |
76 | 83 | "name": "Delete Job", |
77 | 84 | "error": "Job could not be deleted. Please check if you have permissions to delete Data Science jobs.", |
78 | | - "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-jobs in compartment <your-compartment-name>" |
| 85 | + "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-jobs in compartment <your-compartment-name>", |
| 86 | + "cleanup_hint": ( |
| 87 | + f'Automatic cleanup of resources failed due to missing policies. ' |
| 88 | + f'A job with the name "{TEST_JOB_NAME}" and a test file with the name "{OBS_MANAGE_TEST_FILE}" ' |
| 89 | + f'have been created in the Object Storage bucket you specified. ' |
| 90 | + f'Please manually delete the resources to prevent incurring charges.' |
| 91 | + ) |
79 | 92 | }, |
80 | 93 | utils.aqua_model.create_model_version_set.__name__: { |
81 | 94 | "name": "Create Model Version Set", |
|
85 | 98 | utils.aqua_model.ds_client.delete_model_version_set.__name__: { |
86 | 99 | "name": "Delete Model Version Set", |
87 | 100 | "error": "Unable to delete a model version. Ensure that required Model Catalog permissions are set.", |
88 | | - "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-modelversionsets in compartment <your-compartment-name>" |
| 101 | + "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-modelversionsets in compartment <your-compartment-name>", |
| 102 | + "cleanup_hint": ( |
| 103 | + f'Automatic cleanup of resources failed due to missing policies. ' |
| 104 | + f'A model version set with the name "{TEST_MVS_NAME}" and a test file with the name "{OBS_MANAGE_TEST_FILE}" ' |
| 105 | + f'have been created in the Object Storage bucket you specified. ' |
| 106 | + f'Please manually delete the resources to prevent incurring charges.' |
| 107 | + ) |
89 | 108 | }, |
90 | 109 | utils.create_model_deployment.__name__: { |
91 | 110 | "name": "Create Model Deployment", |
|
95 | 114 | utils.aqua_model.ds_client.delete_model_deployment.__name__: { |
96 | 115 | "name": "Delete Model Deployment", |
97 | 116 | "error": "Unable to delete the model deployment. Please check if you have appropriate permissions to manage deployments.", |
98 | | - "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-model-deployments in compartment <your-compartment-name>" |
| 117 | + "policy_hint": "Allow dynamic-group aqua-dynamic-group to manage data-science-model-deployments in compartment <your-compartment-name>", |
| 118 | + "cleanup_hint": ( |
| 119 | + f'Automatic cleanup of resources failed due to missing policies. ' |
| 120 | + f'A model deployment with the name "{TEST_MD_NAME}" and a test file with the name "{OBS_MANAGE_TEST_FILE}" ' |
| 121 | + f'have been created in the Object Storage bucket you specified. ' |
| 122 | + f'Please manually delete the resources to prevent incurring charges.' |
| 123 | + ) |
99 | 124 | } |
100 | 125 |
|
101 | 126 | } |
0 commit comments