output_messages.py 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # Licensed under the Apache License, Version 2.0 (the "License");
  2. # you may not use this file except in compliance with the License.
  3. # You may obtain a copy of the License at
  4. #
  5. # http://www.apache.org/licenses/LICENSE-2.0
  6. #
  7. # Unless required by applicable law or agreed to in writing, software
  8. # distributed under the License is distributed on an "AS IS" BASIS,
  9. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  10. # implied.
  11. # See the License for the specific language governing permissions and
  12. # limitations under the License.
  13. '''
  14. external text file to hold all user visible text.
  15. info messages begins with INFO_ and error msg with ERR_
  16. any text with %s inside it, has dynamic parameters inside.
  17. please don't remove the %s from the text.
  18. you can relocate %s position in the text as long as the context is kept.
  19. \n means new line in the text
  20. \ at the end of a line lets you continue the text in a new line
  21. DONT CHANGE any of the params names (in UPPER-CASE)
  22. they are used in the engine-setup.py
  23. '''
  24. import basedefs
  25. INFO_HEADER = "Welcome to the %s setup utility" % basedefs.APP_NAME
  26. INFO_INSTALL_SUCCESS = "\n **** Installation completed successfully ******\n"
  27. INFO_INSTALL = "Installing:"
  28. INFO_DSPLY_PARAMS = "\n%s will be installed using the following configuration:" % basedefs.APP_NAME
  29. INFO_USE_PARAMS = "Proceed with the configuration listed above"
  30. INFO_DONE = "DONE"
  31. INFO_ERROR = "ERROR"
  32. INFO_LOG_FILE_PATH = "The installation log file is available at: %s"
  33. INFO_MANIFEST_PATH = "The generated manifests are available at: %s"
  34. INFO_ADDTIONAL_MSG = "Additional information:"
  35. INFO_ADDTIONAL_MSG_BULLET = " * %s"
  36. INFO_CONF_PARAMS_PASSWD_CONFIRM_PROMPT = "Confirm password"
  37. INFO_VAL_PATH_SPACE = "Error: mount point %s contains only %s of available space while a minimum of %s is required"
  38. INFO_VAL_NOT_INTEGER = "Error: value is not an integer"
  39. INFO_VAL_PORT_NOT_RANGE = "Error: port is outside the range of %i - 65535"
  40. INFO_VAL_STRING_EMPTY = "Warning: The %s parameter is empty"
  41. INFO_VAL_NOT_IN_OPTIONS = "Error: response is not part of the following accepted answers: %s"
  42. INFO_VAL_NOT_DOMAIN = "Error: domain is not a valid domain name"
  43. INFO_VAL_NOT_USER = "Error: user name contains illegal characters"
  44. INFO_VAL_PORT_OCCUPIED = "Error: TCP Port %s is already open by %s (pid: %s)"
  45. INFO_VAL_PORT_OCCUPIED_BY_JBOSS = "Error: TCP Port %s is used by JBoss"
  46. INFO_VAL_PASSWORD_DONT_MATCH = "Error: passwords don't match"
  47. INFO_CHANGED_VALUE = ("Packstack changed given value %s to required "
  48. "value %s")
  49. WARN_VAL_IS_HOSTNAME = ("Warning: Packstack failed to change given "
  50. "hostname %s to IP address. Note that some "
  51. "services might not run correctly when hostname"
  52. " is used.")
  53. INFO_STRING_LEN_LESS_THAN_MIN = "String length is less than the minimum allowed: %s"
  54. INFO_STRING_EXCEEDS_MAX_LENGTH = "String length exceeds the maximum length allowed: %s"
  55. INFO_STRING_CONTAINS_ILLEGAL_CHARS = "String contains illegal characters"
  56. INFO_CINDER_VOLUMES_EXISTS = "Did not create a cinder volume group, one already existed"
  57. INFO_REMOVE_REMOTE_VAR = "Removing %s on %s (if it is a remote host)"
  58. WARN_WEAK_PASS = "Warning: Weak Password."
  59. WARN_NM_ENABLED = ("Warning: NetworkManager is active on %s. OpenStack "
  60. "networking currently does not work on systems that have "
  61. "the Network Manager service enabled.")
  62. WARN_IPV6_OVS = ("Warning: IPv6 and ovs tunneling is not yet supported and "
  63. "will fail on host %s see https://bugzilla.redhat.com/show_bug.cgi?id=1100360.")
  64. ERR_PING = "Error: the provided hostname is unreachable"
  65. ERR_SSH = "Error: could not connect to the ssh server: %s"
  66. ERR_FILE = "Error: the provided file is not present"
  67. ERR_CHECK_LOG_FILE_FOR_MORE_INFO = "Please check log file %s for more information"
  68. ERR_YUM_LOCK = "Internal Error: Can't edit versionlock "
  69. ERR_FAILED_START_SERVICE = "Error: Can't start the %s service"
  70. ERR_FAILED_STOP_SERVICE = "Error: Can't stop the %s service"
  71. ERR_EXP_HANDLE_PARAMS = "Failed handling user parameters input"
  72. ERR_EXP_KEYBOARD_INTERRUPT = "Keyboard interrupt caught."
  73. ERR_READ_RPM_VER = "Error reading version number for package %s"
  74. ERR_EXP_READ_INPUT_PARAM = "Error while trying to read parameter %s from user."
  75. ERR_EXP_VALIDATE_PARAM = "Error validating parameter %s from user."
  76. ERR_EXP_HANDLE_ANSWER_FILE = "Failed handling answer file: %s"
  77. ERR_EXP_GET_CFG_IPS = "Could not get list of available IP addresses on this host"
  78. ERR_EXP_GET_CFG_IPS_CODES = "Failed to get list of IP addresses"
  79. ERR_EXP_CANT_FIND_IP = "Could not find any configured IP address"
  80. ERR_DIDNT_RESOLVED_IP = "%s did not resolve into an IP address"
  81. ERR_IPS_NOT_CONFIGED = "Some or all of the IP addresses: (%s) which were resolved from the FQDN %s are not configured on any interface on this host"
  82. ERR_IPS_NOT_CONFIGED_ON_INT = "The IP (%s) which was resolved from the FQDN %s is not configured on any interface on this host"
  83. ERR_IPS_HAS_NO_PTR = "None of the IP addresses on this host(%s) holds a PTR record for the FQDN: %s"
  84. ERR_IP_HAS_NO_PTR = "The IP %s does not hold a PTR record for the FQDN: %s"
  85. ERR_EXP_FAILED_INIT_LOGGER = "Unexpected error: Failed to initiate logger, please check file system permission"
  86. ERR_FAILURE = "General failure"
  87. ERR_NO_ANSWER_FILE = "Error: Could not find file %s"
  88. ERR_ONLY_1_FLAG = "Error: The %s flag is mutually exclusive to all other command line options"
  89. ERR_REMOVE_REMOTE_VAR = "Error: Failed to remove directory %s on %s, it contains sensitive data and should be removed"
  90. ERR_REMOVE_TMP_FILE = "Error: Failed to remove temporary file %s, it contains sensitive data and should be removed"
  91. #