Merge of new rebased code
[appc.git] / appc-common / src / main / java / org / openecomp / appc / i18n / Msg.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
7  * ================================================================================
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.openecomp.appc.i18n;
23
24 import com.att.eelf.i18n.EELFResolvableErrorEnum;
25 import com.att.eelf.i18n.EELFResourceManager;
26
27 /**
28  * The messages issued by APPC components.
29  * <p>
30  * This message definition is shared by all APPC components.
31  * </p>
32  *
33  */
34 @SuppressWarnings("nls")
35 public enum Msg implements EELFResolvableErrorEnum {
36
37     /**
38      * ECOMP Application Controller (APP-C) initialization started at {0}
39      */
40     CONFIGURATION_STARTED,
41
42     /**
43      * Prior configuration has been cleared
44      */
45     CONFIGURATION_CLEARED,
46
47     /**
48      * Loading configuration properties from file "{0}"
49      */
50     LOADING_CONFIGURATION_OVERRIDES,
51
52     /**
53      * Configuration defaults loaded from resource file "{0}"
54      */
55     LOADING_DEFAULTS,
56
57     /**
58      * No default property resource "{0}" was found!
59      */
60     NO_DEFAULTS_FOUND,
61
62     /**
63      * Property "{0}" ="{1}"
64      */
65     PROPERTY_VALUE,
66
67     /**
68      * No configuration file named [{0}] was found on the configuration search path [{1}]. \ If a configuration file
69      * should have been loaded, check the file name and search path specified. CDP will proceed using the \ default
70      * values and command-line overrides (if any).
71      */
72     NO_OVERRIDE_PROPERTY_FILE_LOADED,
73
74     /**
75      * Searching path "{0}" for configuration settings "{1}"
76      */
77     SEARCHING_CONFIGURATION_OVERRIDES,
78
79     /**
80      * Loading application-specific override properties
81      */
82     LOADING_APPLICATION_OVERRIDES,
83
84     /**
85      * No application-specific override properties were provided!
86      */
87     NO_APPLICATION_OVERRIDES,
88
89     /**
90      * Merging system properties into configuration
91      */
92     MERGING_SYSTEM_PROPERTIES,
93
94     /**
95      * Setting property "{0}={1}" in system properties
96      */
97     SETTING_SPECIAL_PROPERTY,
98
99     /**
100      * Loading resource bundle "{0}"
101      */
102     LOADING_RESOURCE_BUNDLE,
103
104     /**
105      * Logging has already been initialized, check the container logging definitions to ensure they represent your
106      * desired logging configuration.
107      */
108     LOGGING_ALREADY_INITIALIZED,
109
110     /**
111      * Searching path "{0}" for log configuration file "{1}"
112      */
113     SEARCHING_LOG_CONFIGURATION,
114
115     /**
116      * Loading default logging configuration from system resource file "{0}"
117      */
118     LOADING_DEFAULT_LOG_CONFIGURATION,
119
120     /**
121      * No log configuration could be found or defaulted!
122      */
123     NO_LOG_CONFIGURATION,
124
125     /**
126      * An unsupported logging framework is bound to SLF4J. Only Logback or Log4J are supported.
127      */
128     UNSUPPORTED_LOGGING_FRAMEWORK,
129
130     /**
131      * Loading logging configuration from file "{0}"
132      */
133     LOADING_LOG_CONFIGURATION,
134
135     /**
136      * Provider {0} cannot be found or cannot be resolved to a valid provider.
137      */
138     UNKNOWN_PROVIDER,
139
140     /**
141      * Server name "{0}" with id "{1}" in tenant "{2}" and region "{3}" did not change state within the alloted time.
142      * Current state is "{4}" and the desired state(s) are "{5}"
143      */
144     SERVER_STATE_CHANGE_TIMEOUT,
145
146     /**
147      * Server name "{0}" with id "{1}" in tenant "{2}" has a state of deleted and cannot be {3}.
148      */
149     SERVER_DELETED,
150
151     /**
152      * Server name "{0}" with id "{1}" in tenant "{2}" has an unknown state of "{3}".
153      */
154     UNKNOWN_SERVER_STATE,
155
156     /**
157      * {0} component {1} is being initialized...
158      */
159     COMPONENT_INITIALIZING,
160
161     /**
162      * {0} component {1} has completed initialization
163      */
164     COMPONENT_INITIALIZED,
165
166     /**
167      * {0} component {1} is terminating...
168      */
169     COMPONENT_TERMINATING,
170
171     /**
172      * {0} component {1} has terminated
173      */
174     COMPONENT_TERMINATED,
175
176     /**
177      * Operation {0} is not supported or implemented at this time.
178      */
179     IAAS_ADAPTER_UNSUPPORTED_OPERATION,
180
181     /**
182      * Operation {0} called. Input document:\n{1}
183      */
184     IAAS_ADAPTER_RPC_CALLED,
185
186     /**
187      * Unable to locate the {0} service in the OSGi container
188      */
189     NO_SERVICE_FOUND,
190
191     /**
192      * Dump of context parameters for module {0}, RPC {1}, and version {2}
193      */
194     CONTEXT_PARAMETERS_DISPLAY,
195
196     /**
197      * Response properties from execution of module '{0}', RPC '{1}', and version '{2}' are:
198      */
199     RESPONSE_PARAMETERS_DISPLAY,
200
201     /**
202      * Service {0}:{1} was provided a null (empty) or invalid argument, '{2}' = '{3}'
203      */
204     NULL_OR_INVALID_ARGUMENT,
205
206     /**
207      * Service {0}:{1} is processing service '{2}' with request id '{3}'
208      */
209     PROCESSING_REQUEST,
210
211     /**
212      * Service {0}:{1} received request for service '{2}' but that service is invalid or unknown.
213      */
214     INVALID_SERVICE_REQUEST,
215
216     /**
217      * {0} registering service {1} using class {2}
218      */
219     REGISTERING_SERVICE,
220
221     /**
222      * {0} unregistering service {1}
223      */
224     UNREGISTERING_SERVICE,
225
226     /**
227      * {0} IAAS Adapter initializing provider {1} as {2}
228      */
229     LOADING_PROVIDER_DEFINITIONS,
230
231     /**
232      * {0} IAAS Adapter restart of server requested
233      */
234     RESTARTING_SERVER,
235
236     /**
237      * {0} IAAS Adapter rebuild of server requested
238      */
239     REBUILDING_SERVER,
240
241     /**
242      * {0} IAAS Adapter migrate of server requested
243      */
244     MIGRATING_SERVER,
245
246     /**
247      * {0} IAAS Adapter evacuate of server requested
248      */
249     EVACUATING_SERVER,
250
251     /**
252      * {0} IAAS Adapter create snapshot of server requested
253      */
254     SNAPSHOTING_SERVER,
255
256     /**
257      * {0} IAAS Adapter look for server requested
258      */
259     LOOKING_SERVER_UP,
260
261     /**
262      * {0} IAAS Adapter cannot perform requested service, VM url '{1}' is invalid
263      */
264     INVALID_SELF_LINK_URL,
265
266     /**
267      * Located server '{0}' on tenant '{1}' and in state '{2}'
268      */
269     SERVER_FOUND,
270
271     /**
272      * No server found in provider with self-link URL [{0}]
273      */
274     SERVER_NOT_FOUND,
275
276     /**
277      * Exception {0} was caught attempting {1} of server [{2}] on tenant [{3}]
278      */
279     SERVER_OPERATION_EXCEPTION,
280
281     /**
282      * One or more properties for [{0}] are missing, null, or empty. They are:
283      */
284     MISSING_REQUIRED_PROPERTIES,
285
286     /**
287      * The server [{0}] (id={1}) in tenant {2} is in error state, {3} is not allowed
288      */
289     SERVER_ERROR_STATE,
290
291     /**
292      * The image {0} could not be located for {1}
293      */
294     IMAGE_NOT_FOUND,
295
296     /**
297      * Time out waiting for {0} with name {1} (and id {2}) to reach one of {3} states, current state is {4}
298      */
299     STATE_CHANGE_TIMEOUT,
300
301     /**
302      * Exception {0} waiting for {1} with name {2} (and id {3}) to reach one of {4} states, current state is {5}
303      * cause={6}
304      */
305     STATE_CHANGE_EXCEPTION,
306
307     /**
308      * Server {0} is being stopped...
309      */
310     STOP_SERVER,
311
312     /**
313      * Server {0} is being started...
314      */
315     START_SERVER,
316
317     /**
318      * Server {0} is being resumed...
319      */
320     RESUME_SERVER,
321
322     /**
323      * Server {0} is being unpaused...
324      */
325     UNPAUSE_SERVER,
326
327     /**
328      * Server {0} is being rebuilt...
329      */
330     REBUILD_SERVER,
331
332     /**
333      * Connection to provider {0} at identity {1} using tenant name {2} (id {3}) failed, reason={4}, retrying in {5}
334      * seconds, attempt {6} of {7}.
335      */
336     CONNECTION_FAILED_RETRY,
337
338     /**
339      * Connection to provider {0} at service {1} failed after all retry attempts.
340      */
341     CONNECTION_FAILED,
342
343     /**
344      * {0} IAAS Adapter stop server requested
345      */
346     STOPPING_SERVER,
347
348     /**
349      * {0} IAAS Adapter start server requested
350      */
351     STARTING_SERVER,
352
353     /**
354      * Server {0} (id {1}) failed to rebuild, reason {2}
355      */
356     REBUILD_SERVER_FAILED,
357
358     /**
359      * Application {0} graph {1} response did not set the {2} parameter. This parameter is required for synchronization
360      * with the controller. Absence of this parameter is assumed to be a failure. Please correct the DG.
361      */
362     PARAMETER_IS_MISSING,
363
364     /**
365      * Application {0} graph {1} did not set parameter {2} to a valid numeric value ({3}). Please correct the DG.
366      */
367     PARAMETER_NOT_NUMERIC,
368
369     /**
370      * Application {0} graph {1} completed with failure: error code = {2}, message = {3}
371      */
372     DG_FAILED_RESPONSE,
373
374     /**
375      * Application {0} received exception {1} attempting to call graph {2}, exception message = {3}
376      */
377     EXCEPTION_CALLING_DG,
378
379     /**
380      * Application {0} was unable to locate graph {1}
381      */
382     GRAPH_NOT_FOUND,
383
384     /**
385      * Application {0} graph {1} responded with {3} properties
386      */
387     DEBUG_GRAPH_RESPONSE_HEADER,
388
389     /**
390      * {0}:{1} - {2} = {3}
391      */
392     DEBUG_GRAPH_RESPONSE_DETAIL,
393
394     /**
395      * Application {0} request {1} was supplied a property '{2}' with the value '{3}' that does not meet the required
396      * form(s):
397      */
398     INVALID_REQUIRED_PROPERTY,
399
400     /**
401      * Server {0} (id {1}) failed to migrate during {2} phase, reason {3}
402      */
403     MIGRATE_SERVER_FAILED,
404
405     /**
406      * Server {0} (id {1}) failed to evacuate, reason {2}
407      */
408     EVACUATE_SERVER_FAILED,
409     
410     /**
411      * Server {0} evacuate from host {1} to host {2} failed during the rebuild on host {2}, reason {3}
412      */
413     EVACUATE_SERVER_REBUILD_FAILED,
414
415     /**
416      * APP-C instance is too busy
417      */
418     APPC_TOO_BUSY,
419
420     /**
421      * Concurrent access to server "{0}"
422      */
423     VF_SERVER_BUSY,
424
425     /**
426      * Server "{0}" does not support command "{1}" in the current state "{2}"
427      */
428     VF_ILLEGAL_COMMAND,
429
430     /**
431      * Server "{0}" cannot handle command "{1}" because of its doubtful state
432      */
433     VF_UNDEFINED_STATE,
434
435     /**
436      * No resource found with ID "{0}" in A&AI system
437      */
438     APPC_NO_RESOURCE_FOUND,
439
440     /**
441      * The request "{0}" for server "{1}" has exceeded its TTL limit of "{3}" seconds
442      */
443     APPC_EXPIRED_REQUEST,
444
445     /**
446      * Workflow for vnfType = "{0}" and command = "{1}" not found.
447      */
448     APPC_WORKFLOW_NOT_FOUND,
449
450     /**
451      * Null vnfId and command provided
452      */
453     APPC_INVALID_INPUT,
454
455     /**
456      * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' was started at '{4}' and ended at '{5}'
457      * with status code '{6}'
458      */
459     APPC_AUDIT_MSG,
460
461     /**
462      * APP-C is unable to communicate with A&AI
463      */
464     AAI_CONNECTION_FAILED,
465
466     /**
467      * APP-C is unable to update COMPONENT_ID {0} to {1} for reason {2}
468      */
469     AAI_UPDATE_FAILED,
470
471     /**
472      * APP-C is unable to retrieve VF/VFC {0} data for Transaction ID{1}as a result of A&AI communication failure or its
473      * internal error.
474      */
475     AAI_GET_DATA_FAILED,
476
477     /**
478      * A&AI at identity {0} using VNF_ID {1} failed, reason={2}, retrying in {3} seconds, attempt {4} of {5}
479      */
480     AAI_CONNECTION_FAILED_RETRY,
481
482     /**
483      * APP-C is unable to delete COMPONENT_ID {0} for reason {1}
484      */
485     AAI_DELETE_FAILED,
486
487     /**
488      * APP-C is unable to query AAI for VNF_ID {0}
489      */
490     AAI_QUERY_FAILED,
491
492     /**
493      * VNF {0} is configured
494      */
495     VNF_CONFIGURED,
496
497     /**
498      * VNF {0} is being configured
499      */
500     VNF_CONFIGURATION_STARTED,
501
502     /**
503      * VNF {0} configuration failed for reason {1}
504      */
505     VNF_CONFIGURATION_FAILED,
506
507     /**
508      * VNF {0} is being tested
509      */
510     VNF_TEST_STARTED,
511
512     /**
513      * VNF {0} was tested
514      */
515     VNF_TESTED,
516
517     /**
518      * VNF {0} test failed for reason {1}
519      */
520     VNF_TEST_FAILED,
521
522     /**
523      * VNF {0} test failed for reason {1}
524      */
525     VNF_NOT_FOUND,
526
527     /**
528      * VNF {0} Healthcheck operation failed for reason {1}
529      */
530     VNF_HEALTHCECK_FAILED,
531
532     /**
533      * VM {0} Healthcheck operation failed for reason {1}
534      */
535     VM_HEALTHCECK_FAILED,
536
537     /**
538      * Server {0} (id {1}) failed to stop during {2} phase, reason {3}
539      */
540     STOP_SERVER_FAILED,
541
542     /**
543      * Server {0} (id {1}) failed to terminate during {2} phase, reason {3}
544      */
545     TERMINATE_SERVER_FAILED,
546
547     /**
548      * {0} IAAS Adapter terminate server requested
549      */
550     TERMINATING_SERVER,
551
552     /**
553      * Server {0} is being terminated...
554      */
555     TERMINATE_SERVER,
556
557     /**
558      * Migrate {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
559      */
560     MIGRATE_COMPLETE,
561
562     /**
563      * Restart {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
564      */
565     RESTART_COMPLETE,
566
567     /**
568      * Rebuild {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
569      */
570     REBUILD_COMPLETE,
571
572     /**
573      * Located stack '{0}' on tenant '{1}' and in state '{2}'
574      */
575     STACK_FOUND,
576
577     /**
578      * {0} IAAS Adapter terminate stack requested
579      */
580
581     TERMINATING_STACK,
582
583     /**
584      * stack {0} is being terminated...
585      */
586     TERMINATE_STACK,
587     /**
588      * No stack found in provider with self-link URL [{0}]
589      */
590
591     STACK_NOT_FOUND,
592
593     /**
594      * Exception {0} was caught attempting {1} of stack [{2}] on tenant [{3}]
595      */
596     STACK_OPERATION_EXCEPTION,
597
598     /**
599      * Stack {0} (id {1}) failed to terminate during {2} phase, reason {3}
600      */
601
602     TERMINATE_STACK_FAILED,
603
604     /**
605      * Exception {0} was caught attempting to close provider context for {1}.
606      */
607
608     CLOSE_CONTEXT_FAILED,
609
610     /**
611      * {0} IAAS Adapter snapshoting stack
612      */
613     SNAPSHOTING_STACK,
614
615     /**
616      * Stack {0} snapshoted, snapshot ID = [{1}].
617      */
618     STACK_SNAPSHOTED,
619
620     /**
621      * {0} IAAS Adapter restoring stack
622      */
623     RESTORING_STACK,
624
625     /**
626      * Stack {0} is restored to snapshot {1}.
627      */
628     STACK_RESTORED,
629
630     /**
631      * {0} IAAS Adapter checking server
632      */
633     CHECKING_SERVER,
634
635     /**
636      * Parameter {0} is missing in svc request of {1}.
637      */
638     MISSING_PARAMETER_IN_REQUEST,
639
640     /**
641      * Cannot establish connection to server {0} port {1} with user {2}.
642      */
643     CANNOT_ESTABLISH_CONNECTION,
644
645     /**
646      * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' on '{4}' with action '{5}'
647      * ended in {6}ms with result '{7}'
648      */
649     APPC_METRIC_MSG,
650
651     /**
652      * Parsing failied for{0}
653      */
654     INPUT_PAYLOAD_PARSING_FAILED,
655
656     /**
657      * Error occurred for due to {0}
658      */
659     APPC_EXCEPTION,
660
661     /**
662      * SSH Data Exception occurred due to {0}
663      */
664     SSH_DATA_EXCEPTION,
665
666     /**
667      * Json processing exception occurred due to {0}
668      */
669     JSON_PROCESSING_EXCEPTION,
670
671    /**
672      * Operation {0} succeed for {1}
673      */
674     SUCCESS_EVENT_MESSAGE,
675
676     /**
677      * Dependency model not found for VNF type {0} due to {1}
678      */
679     DEPENDENCY_MODEL_NOT_FOUND,
680
681     /**
682      * Invalid Dependency model for VNF Type {0} due to {1}
683      */
684     INVALID_DEPENDENCY_MODEL,
685
686     /**
687      * Failed to retrieve VNFC DG
688      */
689     FAILURE_RETRIEVE_VNFC_DG,
690
691     /**
692      * Network check for Server {0} failed for Port {1}
693      *
694      */
695     SERVER_NETWORK_ERROR,
696
697     /**
698      * Hypervisor check for Server {0} failed. Status is DOWN or UNKNOWN
699      *
700      */
701     HYPERVISOR_DOWN_ERROR,
702
703     /**
704      * Hypervisor Network check for Server {0} failed. Not reachable by APPC
705      *
706      */
707     HYPERVISOR_NETWORK_ERROR,
708
709     /**
710      * Restart application operation failed on server : {0}, reason {1}
711      */
712     APPLICATION_RESTART_FAILED,
713
714     /**
715      * Start application operation failed on server : {0}, reason {1}
716      */
717     APPLICATION_START_FAILED,
718
719     /**
720      * Start application operation failed on server : {0}, reason {1}
721      */
722     APPLICATION_STOP_FAILED,
723
724     /**
725      * Application on server {0} is being restarted...
726      */
727     RESTART_APPLICATION,
728
729     /**
730      * Application on server {0} is being started...
731      */
732     START_APPLICATION,
733
734     /**
735      * Application on server {0} is being started...
736      */
737     STOP_APPLICATION,
738
739     /**
740      * APPC LCM operations are disabled
741      */
742     LCM_OPERATIONS_DISABLED,
743
744     /**
745      * Application {0} received exception {1} while attempting to execute oam operation {2}, exception message = {3}|\
746      */
747     OAM_OPERATION_EXCEPTION,
748
749     /**
750      *   Application {0} is stopping... Waiting for  {1} LCM request to complete
751      */
752     OAM_OPERATION_STOPPING,
753
754     /**
755      * Application {0} is stopped
756      */
757     OAM_OPERATION_STOPPED,
758
759
760     /**
761      * Application {0} is started
762      */
763     OAM_OPERATION_STARTING,
764
765     /**
766      * Application {0} is started
767      */
768     OAM_OPERATION_STARTED,
769
770     ;
771     /**
772      * Static initializer to ensure the resource bundles for this class are loaded...
773      */
774     static {
775         EELFResourceManager.loadMessageBundle("org/openecomp/appc/i18n/MessageResources");
776     }
777 }