summaryrefslogtreecommitdiffstats
path: root/dcaedt_be/src/main/webapp/WEB-INF/config/dcae-be/error-configuration.yaml
blob: c60465c3cfe1126e8d67ea2c01fc916c3e9aef6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# DCAE-D Errors
errors:
    OK: {
        code: 200,
        message: "OK",
        messageId: "200"
    }
    CREATED: {
        code: 201,
        message: "OK",
        messageId: "201"
    }
    NO_CONTENT: {
        code: 204,
        message: "No Content",
        messageId: "204"
    }
#--------POL4050-----------------------------     
    NOT_ALLOWED: {
        code: 405,
        message: "Error: Method not allowed.",
        messageId: "POL4050"
    }
#--------POL5000-----------------------------     
    GENERAL_ERROR: {
        code: 500,
        message: "Error: Internal Server Error. Please try again later.",
        messageId: "POL5000"
    }
#--------POL5500-----------------------------
    CATALOG_NOT_AVAILABLE: {
        code: 502,
        message: "Error - SDC Catalog currently not available. Please try again later",
        messageId: "POL5500"
    }
#--------POL5501-----------------------------
    AUTH_ERROR: {
        code: 502,
        message: "Error  connection to SDC catalog could not be authenticated. Please contact your administrator",
        messageId: "POL5501"
    }

#---------SVC4000----------------------------- 
    INVALID_CONTENT: {
        code: 400,
        message: "Error: Invalid content.",
        messageId: "SVC4000"
    }

#---------SVC6001----------------------------- 
    NOT_FOUND: {
        code: 404,
        message: "No Monitoring Templates were found.",
        messageId: "SVC6001"
    }
#---------SVC6005----------------------------- 
    CONFIGURATION_ERROR: {
        code: 500,
        message: "Error  Failed to find configuration.",
        messageId: "SVC6005"
    }
#---------SVC6006----------------------------- 
    VES_SCHEMA_NOT_FOUND: {
        code: 500,
        message: "Error  Failed to find VES Schema definitions.",
        messageId: "SVC6006"
    }  
#---------SVC6007----------------------------- 
# %1 - VES Schema filename
# %2 - error reason
    VES_SCHEMA_INVALID: {
        code: 500,
        message: "Error  Failed to parse VES Schema file '%1'. [%2]",
        messageId: "SVC6007"
    }
#---------SVC6008----------------------------- 
    FLOW_TYPES_CONFIGURATION_ERROR: {
        code: 500,
        message: "Error  Failed to read flow type definitions.",
        messageId: "SVC6008"
    } 
#---------SVC6010----------------------------- 
    CLONE_FAILED: {
        code: 409,
        message: "Error  could not import Monitoring Template.",
        messageId: "SVC6010"
    }
#---------SVC6020----------------------------- 
    EMPTY_SERVICE_LIST: {
        code: 404,
        message: "Service List is not available.",
        messageId: "SVC6020"
    }
#---------SVC6021----------------------------- 
    MONITORING_TEMPLATE_ATTACHMENT_ERROR: {
        code: 409,
        message: "Error  Monitoring Template is not available for editing.",
        messageId: "SVC6021"
    }

#---------SVC6031----------------------------- 
# %1 - Component Name
    MISSING_TOSCA_FILE: {
        code: 404,
        message: "Error  Could not read component %1 details.",
        messageId: "SVC6031"
    }
#---------SVC6032----------------------------- 
# %1 - Component Name
    VALIDATE_TOSCA_ERROR: {
        code: 500,
        message: "Error  Component %1 details could not be parsed.",
        messageId: "SVC6032"
    }
#---------SVC6033----------------------------- 
    SUBMIT_BLUEPRINT_ERROR: {
        code: 500,
        message: "Error –Failed to submit blueprint.",
        messageId: "SVC6033"
    }
#---------SVC6034----------------------------- 
# %1 -VFCMT Name
    GENERATE_BLUEPRINT_ERROR: {
        code: 500,
        message: "Error  Failed to generate blueprint file for Monitoring Template %1.",
        messageId: "SVC6034"
    }
#---------SVC6035----------------------------- 
# %1 - the error reason
    INVALID_RULE_FORMAT: {
        code: 400,
        message: "Error - Rule format is invalid: %1.",
        messageId: "SVC6035"
    } 
#---------SVC6036----------------------------- 
    SAVE_RULE_FAILED: {
        code: 409,
        message: "Error - Failed to save rule. Internal persistence error",
        messageId: "SVC6036"
    }

#---------SVC6038-----------------------------
# %1 - VFCMT uuid
    RESOURCE_NOT_VFCMT_ERROR: {
        code: 400,
        message: "Resource with uuid %1 is either not of resourceType='VFCMT' or not of category='Template'",
        messageId: "SVC6038"
    }
#---------SVC6039-----------------------------
# %1 - serviceUuid
# %2 - vfiName
    VFI_FETCH_ERROR: {
        code: 404,
        message: "Service %1 does not contain a VFI named %2",
        messageId: "SVC6039"
    }
#-----------SVC6085---------------------------
# %1 - current user id
# %2 - resource/service name
# %3 - last modifier user id
    USER_CONFLICT: {
         code: 403,
         message: "Error: User conflict. Operation not allowed for user %1 on asset %2 checked out by %3.",
         messageId: "SVC6085"
    }

#---------SVC6100-----------------------------
    MISSING_RULE_DESCRIPTION: {
        code: 400,
        message: "Please enter a valid rule description.",
        messageId: "SVC6100"
    }
#---------SVC6101-----------------------------
    MISSING_ACTION: {
        code: 400,
        message: "Rule must have at least one action.",
        messageId: "SVC6101"
    }

#---------SVC6104-----------------------------
# %1 - action target
    MISSING_CONCAT_VALUE: {
        code: 400,
        message: "Please fill all from fields of concat action to %1",
        messageId: "SVC6104"
    }
#---------SVC6105-----------------------------
# %1 - condition group type
    INVALID_GROUP_CONDITION: {
        code: 400,
        message: "Undefined condition group type: %1",
        messageId: "SVC6105"
    }

#---------SVC6106-----------------------------
    MISSING_CONDITION_ITEM: {
        code: 400,
        message: "Please enter all condition items",
        messageId: "SVC6106"
    }
#---------SVC6107-----------------------------
# %1 - left/right
    MISSING_OPERAND: {
        code: 400,
        message: "Please enter the %1 operand field",
        messageId: "SVC6107"
    }
#---------SVC6108-----------------------------
# %1 - operator
    INVALID_OPERATOR: {
        code: 400,
        message: "Undefined operator: %1",
        messageId: "SVC6108"
    }
#---------SVC6109-----------------------------
# %1 - action target
    MISSING_ENTRY: {
        code: 400,
        message: "Please fill all key-value pairs of map action to %1",
        messageId: "SVC6109"
    }
#---------SVC6110-----------------------------
# %1 - action target
    MISSING_DEFAULT_VALUE: {
        code: 400,
        message: "Please fill the default value of map action to %1",
        messageId: "SVC6110"
    }
#---------SVC6111-----------------------------
    DUPLICATE_KEY: {
        code: 400,
        message: "Error: Duplication in map keys exists, please modify rule configuration",
        messageId: "SVC6111"
    }
#---------SVC6112-----------------------------
# %1 - dependent actions
    ACTION_DEPENDENCY: {
        code: 400,
        message: "A circular dependency was detected between actions. The following fields should be resolved: %1",
        messageId: "SVC6112"
    }
#---------SVC6113-----------------------------
# %1 - dependent rule ids
# %2 - dependent action targets
    RULE_DEPENDENCY: {
        code: 400,
        message: "A circular dependency was detected between rules: %1 within fields: %2",
        messageId: "SVC6113"
    }
#---------SVC6114-----------------------------
# %1 - dcae component name
    NODE_NOT_FOUND: {
        code: 400,
        message: "DCAE component %1 not found in composition",
        messageId: "SVC6114"
    }
#---------SVC6115-----------------------------
    DELETE_RULE_FAILED: {
        code: 409,
        message: "Delete rule failed. Internal persistence error",
        messageId: "SVC6115"
    }
#---------SVC6116-----------------------------
# %1 - reason
    TRANSLATE_FAILED: {
        code: 400,
        message: "Translation failed. Reason: %1",
        messageId: "SVC6116"
    }

#---------SVC6117-----------------------------
# %1 - field name
# %2 - action type
# %3 - action target
    MISSING_ACTION_FIELD: {
        code: 400,
        message: "Please fill the %1 field of %2 action to %3",
        messageId: "SVC6117"
    }

#---------SVC6118-----------------------------
    DELETE_BLUEPRINT_FAILED: {
        code: 400,
        message: "The request was partially successful. Removing the attached Blueprint from the service has failed. You must manually delete the artifact.",
        messageId: "SVC6118"
    }