@@ -60,9 +60,9 @@ def run(self):
6060 logger .info ("Did not perform host metering configuration. Only supported for RHEL 7." )
6161 self .add_message (
6262 level = "INFO" ,
63- id = "CONFIGURE_HOST_METERING_SKIP " ,
64- title = "Did not perform host metering configuration. " ,
65- description = "Host metering is supportted only for RHEL 7." ,
63+ id = "CONFIGURE_HOST_METERING_SKIP_ONLY_RHEL_7 " ,
64+ title = "Did not perform host metering configuration" ,
65+ description = "Host metering is supported only for RHEL 7." ,
6666 )
6767 return False
6868
@@ -72,9 +72,9 @@ def run(self):
7272 logger .info ("Did not perform host-metering configuration." )
7373 self .add_message (
7474 level = "INFO" ,
75- id = "CONFIGURE_HOST_METERING_SKIP " ,
76- title = "Did not perform host metering configuration as not needed. " ,
77- description = "Host metering is not needed on the system." ,
75+ id = "CONFIGURE_HOST_METERING_SKIP_NOT_HYPERSCALER " ,
76+ title = "Did not perform host metering configuration" ,
77+ description = "Host metering is not needed on the system as it is not running on a hyperscaler ." ,
7878 )
7979 return False
8080
@@ -85,8 +85,8 @@ def run(self):
8585 self .add_message (
8686 level = "WARNING" ,
8787 id = "INSTALL_HOST_METERING_FAILURE" ,
88- title = "Failed to install host metering package. " ,
89- description = "When installing host metering package an error occurred meaning we can't"
88+ title = "Failed to install the host- metering package" ,
89+ description = "When installing the host- metering package an error occurred meaning we can't"
9090 " enable host metering on the system." ,
9191 diagnosis = "`yum install host-metering` command returned {ret_install} with message {output}" .format (
9292 ret_install = ret_install , output = output
@@ -105,9 +105,9 @@ def run(self):
105105 self .add_message (
106106 level = "WARNING" ,
107107 id = "CONFIGURE_HOST_METERING_FAILURE" ,
108- title = "Failed to enable and start host metering service. " ,
108+ title = "Failed to enable and start the host metering service" ,
109109 description = "The host metering service failed to start"
110- " successfully and won't be able to keep track ." ,
110+ " successfully and won't be able to report on the use of the system for the billing purposes ." ,
111111 diagnosis = "Command {command} failed with {error_message}" .format (
112112 command = command , error_message = error_message
113113 ),
@@ -125,7 +125,7 @@ def run(self):
125125 self .set_result (
126126 level = "ERROR" ,
127127 id = "HOST_METERING_NOT_RUNNING" ,
128- title = "Host metering service is not running. " ,
128+ title = "Host metering service is not running" ,
129129 description = "host-metering.service is not running." ,
130130 remediations = "You can try to start the service manually"
131131 " by running following command:\n "
@@ -145,8 +145,8 @@ def _check_env_var(self):
145145 logger .debug ("CONVERT2RHEL_CONFIGURE_HOST_METERING was not set. Skipping it." )
146146 self .add_message (
147147 level = "INFO" ,
148- id = "CONFIGURE_HOST_METERING_SKIP " ,
149- title = "Did not perform host metering configuration. " ,
148+ id = "CONFIGURE_HOST_METERING_SKIP_OPTION_NOT_DETECTED " ,
149+ title = "Did not perform host metering configuration" ,
150150 description = "CONVERT2RHEL_CONFIGURE_HOST_METERING was not set." ,
151151 )
152152 return False
@@ -167,19 +167,22 @@ def _check_env_var(self):
167167 if tool_opts .configure_host_metering == "force" :
168168 logger .warning (
169169 "The `force' option has been used for the CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable."
170- " Please note that this option is mainly used for testing and will configure host-metering unconditionally. "
171- " For generic usage please use the 'auto' option."
170+ " Note that this option is mainly used for testing and will configure host-metering unconditionally. "
171+ " For generic usage use the 'auto' option."
172172 )
173173 self .add_message (
174174 level = "WARNING" ,
175175 id = "FORCED_CONFIGURE_HOST_METERING" ,
176176 title = "The `force' option has been used for the CONVERT2RHEL_CONFIGURE_HOST_METERING environment variable." ,
177- description = "Please note that this option is mainly used for testing and"
177+ description = "Note that this option is mainly used for testing and"
178178 " will configure host-metering unconditionally."
179- " For generic usage please use the 'auto' option." ,
179+ " For generic usage use the 'auto' option." ,
180180 )
181181 elif tool_opts .configure_host_metering == "auto" :
182- logger .debug ("Automatic detection of host hyperscaler and configuration." )
182+ logger .debug (
183+ "Configuration of host metering set to 'auto' - host-metering will be enabled based on"
184+ " a detected hyperscaler."
185+ )
183186
184187 return True
185188
0 commit comments