2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22 * ============LICENSE_END=========================================================
25 package org.onap.appc.i18n;
27 import com.att.eelf.i18n.EELFResolvableErrorEnum;
28 import com.att.eelf.i18n.EELFResourceManager;
31 * The messages issued by APPC components.
33 * This message definition is shared by all APPC components.
37 @SuppressWarnings("nls")
38 public enum Msg implements EELFResolvableErrorEnum {
41 * ECOMP Application Controller (APP-C) initialization started at {0}
43 CONFIGURATION_STARTED,
46 * Prior configuration has been cleared
48 CONFIGURATION_CLEARED,
51 * Loading configuration properties from file "{0}"
53 LOADING_CONFIGURATION_OVERRIDES,
56 * Configuration defaults loaded from resource file "{0}"
61 * No default property resource "{0}" was found!
66 * Property "{0}" ="{1}"
71 * No configuration file named [{0}] was found on the configuration search path [{1}]. \ If a configuration file
72 * should have been loaded, check the file name and search path specified. CDP will proceed using the \ default
73 * values and command-line overrides (if any).
75 NO_OVERRIDE_PROPERTY_FILE_LOADED,
78 * Searching path "{0}" for configuration settings "{1}"
80 SEARCHING_CONFIGURATION_OVERRIDES,
83 * Loading application-specific override properties
85 LOADING_APPLICATION_OVERRIDES,
88 * No application-specific override properties were provided!
90 NO_APPLICATION_OVERRIDES,
93 * Merging system properties into configuration
95 MERGING_SYSTEM_PROPERTIES,
98 * Setting property "{0}={1}" in system properties
100 SETTING_SPECIAL_PROPERTY,
103 * Loading resource bundle "{0}"
105 LOADING_RESOURCE_BUNDLE,
108 * Logging has already been initialized, check the container logging definitions to ensure they represent your
109 * desired logging configuration.
111 LOGGING_ALREADY_INITIALIZED,
114 * Searching path "{0}" for log configuration file "{1}"
116 SEARCHING_LOG_CONFIGURATION,
119 * Loading default logging configuration from system resource file "{0}"
121 LOADING_DEFAULT_LOG_CONFIGURATION,
124 * No log configuration could be found or defaulted!
126 NO_LOG_CONFIGURATION,
129 * An unsupported logging framework is bound to SLF4J. Only Logback or Log4J are supported.
131 UNSUPPORTED_LOGGING_FRAMEWORK,
134 * Loading logging configuration from file "{0}"
136 LOADING_LOG_CONFIGURATION,
139 * Provider {0} cannot be found or cannot be resolved to a valid provider.
144 * Server name "{0}" with id "{1}" in tenant "{2}" and region "{3}" did not change state within the alloted time.
145 * Current state is "{4}" and the desired state(s) are "{5}"
147 SERVER_STATE_CHANGE_TIMEOUT,
150 * Server name "{0}" with id "{1}" in tenant "{2}" has a state of deleted and cannot be {3}.
155 * Server name "{0}" with id "{1}" in tenant "{2}" has an unknown state of "{3}".
157 UNKNOWN_SERVER_STATE,
160 * {0} component {1} is being initialized...
162 COMPONENT_INITIALIZING,
165 * {0} component {1} has completed initialization
167 COMPONENT_INITIALIZED,
170 * {0} component {1} is terminating...
172 COMPONENT_TERMINATING,
175 * {0} component {1} has terminated
177 COMPONENT_TERMINATED,
180 * Operation {0} is not supported or implemented at this time.
182 IAAS_ADAPTER_UNSUPPORTED_OPERATION,
185 * Operation {0} called. Input document:\n{1}
187 IAAS_ADAPTER_RPC_CALLED,
190 * Unable to locate the {0} service in the OSGi container
195 * Dump of context parameters for module {0}, RPC {1}, and version {2}
197 CONTEXT_PARAMETERS_DISPLAY,
200 * Response properties from execution of module '{0}', RPC '{1}', and version '{2}' are:
202 RESPONSE_PARAMETERS_DISPLAY,
205 * Service {0}:{1} was provided a null (empty) or invalid argument, '{2}' = '{3}'
207 NULL_OR_INVALID_ARGUMENT,
210 * Service {0}:{1} is processing service '{2}' with request id '{3}'
215 * Service {0}:{1} received request for service '{2}' but that service is invalid or unknown.
217 INVALID_SERVICE_REQUEST,
220 * {0} registering service {1} using class {2}
225 * {0} unregistering service {1}
227 UNREGISTERING_SERVICE,
230 * {0} IAAS Adapter initializing provider {1} as {2}
232 LOADING_PROVIDER_DEFINITIONS,
235 * {0} IAAS Adapter restart of server requested
240 * {0} IAAS Adapter rebuild of server requested
245 * {0} IAAS Adapter migrate of server requested
250 * {0} IAAS Adapter evacuate of server requested
255 * {0} IAAS Adapter create snapshot of server requested
260 * {0} IAAS Adapter look for server requested
265 * {0} IAAS Adapter cannot perform requested service, VM url '{1}' is invalid
267 INVALID_SELF_LINK_URL,
270 * Located server '{0}' on tenant '{1}' and in state '{2}'
275 * No server found in provider with self-link URL [{0}]
280 * Exception {0} was caught attempting {1} of server [{2}] on tenant [{3}]
282 SERVER_OPERATION_EXCEPTION,
285 * One or more properties for [{0}] are missing, null, or empty. They are:
287 MISSING_REQUIRED_PROPERTIES,
290 * The server [{0}] (id={1}) in tenant {2} is in error state, {3} is not allowed
295 * The image {0} could not be located for {1}
300 * Time out waiting for {0} with name {1} (and id {2}) to reach one of {3} states, current state is {4}
302 STATE_CHANGE_TIMEOUT,
305 * Exception {0} waiting for {1} with name {2} (and id {3}) to reach one of {4} states, current state is {5}
308 STATE_CHANGE_EXCEPTION,
311 * Server {0} is being stopped...
316 * Server {0} is being started...
321 * Server {0} is being resumed...
326 * Server {0} is being unpaused...
331 * Server {0} is being rebuilt...
336 * Connection to provider {0} at identity {1} using tenant name {2} (id {3}) failed, reason={4}, retrying in {5}
337 * seconds, attempt {6} of {7}.
339 CONNECTION_FAILED_RETRY,
342 * Connection to provider {0} at service {1} failed after all retry attempts.
347 * {0} IAAS Adapter stop server requested
352 * {0} IAAS Adapter start server requested
357 * Server {0} (id {1}) failed to rebuild, reason {2}
359 REBUILD_SERVER_FAILED,
362 * Application {0} graph {1} response did not set the {2} parameter. This parameter is required for synchronization
363 * with the controller. Absence of this parameter is assumed to be a failure. Please correct the DG.
365 PARAMETER_IS_MISSING,
368 * Application {0} graph {1} did not set parameter {2} to a valid numeric value ({3}). Please correct the DG.
370 PARAMETER_NOT_NUMERIC,
373 * Application {0} graph {1} completed with failure: error code = {2}, message = {3}
378 * Application {0} received exception {1} attempting to call graph {2}, exception message = {3}
380 EXCEPTION_CALLING_DG,
383 * Application {0} was unable to locate graph {1}
388 * Application {0} graph {1} responded with {3} properties
390 DEBUG_GRAPH_RESPONSE_HEADER,
393 * {0}:{1} - {2} = {3}
395 DEBUG_GRAPH_RESPONSE_DETAIL,
398 * Application {0} request {1} was supplied a property '{2}' with the value '{3}' that does not meet the required
401 INVALID_REQUIRED_PROPERTY,
404 * Server {0} (id {1}) failed to migrate during {2} phase, reason {3}
406 MIGRATE_SERVER_FAILED,
409 * Server {0} (id {1}) failed to evacuate, reason {2}
411 EVACUATE_SERVER_FAILED,
414 * Server {0} evacuate from host {1} to host {2} failed during the rebuild on host {2}, reason {3}
416 EVACUATE_SERVER_REBUILD_FAILED,
419 * APP-C instance is too busy
424 * Concurrent access to server "{0}"
429 * Server "{0}" does not support command "{1}" in the current state "{2}"
434 * Server "{0}" cannot handle command "{1}" because of its doubtful state
439 * No resource found with ID "{0}" in A&AI system
441 APPC_NO_RESOURCE_FOUND,
444 * The request "{0}" for server "{1}" has exceeded its TTL limit of "{3}" seconds
446 APPC_EXPIRED_REQUEST,
449 * Workflow for vnfType = "{0}" and command = "{1}" not found.
451 APPC_WORKFLOW_NOT_FOUND,
454 * Null vnfId and command provided
459 * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' was started at '{4}' and ended at '{5}'
460 * with status code '{6}'
465 * APP-C is unable to communicate with A&AI
467 AAI_CONNECTION_FAILED,
470 * APP-C is unable to update COMPONENT_ID {0} to {1} for reason {2}
475 * APP-C is unable to retrieve VF/VFC {0} data for Transaction ID{1}as a result of A&AI communication failure or its
481 * A&AI at identity {0} using VNF_ID {1} failed, reason={2}, retrying in {3} seconds, attempt {4} of {5}
483 AAI_CONNECTION_FAILED_RETRY,
486 * APP-C is unable to delete COMPONENT_ID {0} for reason {1}
491 * APP-C is unable to query AAI for VNF_ID {0}
496 * VNF {0} is configured
501 * VNF {0} is being configured
503 VNF_CONFIGURATION_STARTED,
506 * VNF {0} configuration failed for reason {1}
508 VNF_CONFIGURATION_FAILED,
511 * VNF {0} is being tested
521 * VNF {0} test failed for reason {1}
526 * VNF {0} test failed for reason {1}
531 * VNF {0} Healthcheck operation failed for reason {1}
533 VNF_HEALTHCECK_FAILED,
536 * VM {0} Healthcheck operation failed for reason {1}
538 VM_HEALTHCECK_FAILED,
541 * Server {0} (id {1}) failed to stop during {2} phase, reason {3}
546 * Server {0} (id {1}) failed to terminate during {2} phase, reason {3}
548 TERMINATE_SERVER_FAILED,
551 * {0} IAAS Adapter terminate server requested
556 * Server {0} is being terminated...
561 * Migrate {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
566 * Restart {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
571 * Rebuild {0} finished with status {1}. Start Time: {2}. End Time: {3}. Request ID: {4}. Reason:{5}...
576 * Located stack '{0}' on tenant '{1}' and in state '{2}'
581 * {0} IAAS Adapter terminate stack requested
587 * stack {0} is being terminated...
591 * No stack found in provider with self-link URL [{0}]
597 * Exception {0} was caught attempting {1} of stack [{2}] on tenant [{3}]
599 STACK_OPERATION_EXCEPTION,
602 * Stack {0} (id {1}) failed to terminate during {2} phase, reason {3}
605 TERMINATE_STACK_FAILED,
608 * Exception {0} was caught attempting to close provider context for {1}.
611 CLOSE_CONTEXT_FAILED,
614 * {0} IAAS Adapter snapshoting stack
619 * Stack {0} snapshoted, snapshot ID = [{1}].
624 * {0} IAAS Adapter restoring stack
629 * Stack {0} is restored to snapshot {1}.
634 * {0} IAAS Adapter checking server
639 * Parameter {0} is missing in svc request of {1}.
641 MISSING_PARAMETER_IN_REQUEST,
644 * Cannot establish connection to server {0} port {1} with user {2}.
646 CANNOT_ESTABLISH_CONNECTION,
649 * Operation '{0}' for VNF type '{1}' from Source '{2}' with RequestID '{3}' on '{4}' with action '{5}'
650 * ended in {6}ms with result '{7}'
655 * Parsing failied for{0}
657 INPUT_PAYLOAD_PARSING_FAILED,
660 * Error occurred for due to {0}
665 * SSH Data Exception occurred due to {0}
670 * Json processing exception occurred due to {0}
672 JSON_PROCESSING_EXCEPTION,
675 * Operation {0} succeed for {1}
677 SUCCESS_EVENT_MESSAGE,
680 * Dependency model not found for VNF type {0} due to {1}
682 DEPENDENCY_MODEL_NOT_FOUND,
685 * Invalid Dependency model for VNF Type {0} due to {1}
687 INVALID_DEPENDENCY_MODEL,
690 * Failed to retrieve VNFC DG
692 FAILURE_RETRIEVE_VNFC_DG,
695 * Network check for Server {0} failed for Port {1}
698 SERVER_NETWORK_ERROR,
701 * Hypervisor check for Server {0} failed. Status is DOWN or UNKNOWN
704 HYPERVISOR_DOWN_ERROR,
707 * Unable to determine Hypervisor status for Server {0}. failed.
710 HYPERVISOR_STATUS_UKNOWN,
713 * Hypervisor Network check for Server {0} failed. Not reachable by APPC
716 HYPERVISOR_NETWORK_ERROR,
719 * Restart application operation failed on server : {0}, reason {1}
721 APPLICATION_RESTART_FAILED,
724 * Start application operation failed on server : {0}, reason {1}
726 APPLICATION_START_FAILED,
729 * Start application operation failed on server : {0}, reason {1}
731 APPLICATION_STOP_FAILED,
734 * Application on server {0} is being restarted...
739 * Application on server {0} is being started...
744 * Application on server {0} is being started...
749 * APPC LCM operations are disabled
751 LCM_OPERATIONS_DISABLED,
754 * Application {0} received exception {1} while attempting to execute oam operation {2}, exception message = {3}|\
756 OAM_OPERATION_EXCEPTION,
759 * Application {0} is {1}
761 OAM_OPERATION_ENTERING_MAINTENANCE_MODE,
764 * Application {0} is in {1}
766 OAM_OPERATION_MAINTENANCE_MODE,
769 * Application {0} is {1}
771 OAM_OPERATION_STARTING,
774 * Application {0} is {1}
776 OAM_OPERATION_STARTED,
779 * Application {0} is {1}
781 OAM_OPERATION_STOPPING,
784 * Application {0} is {1}
786 OAM_OPERATION_STOPPED,
788 * A {1} API is not allowed when {0} is in the {2} state
790 INVALID_STATE_TRANSITION,
793 * Application {0} was unable to find the Request Handler service
795 REQUEST_HANDLER_UNAVAILABLE,
798 * Application {0} is {1}
800 OAM_OPERATION_RESTARTING,
803 * Application {0} is {1} for restart
805 OAM_OPERATION_RESTARTED,
810 OAM_OPERATION_INVALID_INPUT,
812 ATTACHINGVOLUME_SERVER,
814 DETTACHINGVOLUME_SERVER,
817 * Unsupported identity service version, unable to retrieve ServiceCatalog
818 * for identity service {0}
820 IAAS_UNSUPPORTED_IDENTITY_SERVICE,
823 * Sftp data transfer failed on connection to host {0} with user {1} for {2} operation, reason : {3}
825 SFTP_TRANSFER_FAILED,
828 * Ssh session with host {0} has timed out during command {1} execution
830 SSH_CONNECTION_TIMEOUT,
833 * Could not configure existing ssh session, reason: {0}
835 SSH_SESSION_CONFIG_ERROR
838 * Static initializer to ensure the resource bundles for this class are loaded...
841 EELFResourceManager.loadMessageBundle("org/onap/appc/i18n/MessageResources");