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