Browse Source

Moving insignificant messages from error to warning in sriov_config.py

As the messages from _wait_for_vf_creation() don't seem to be error
messages so just moving them to be warning

Change-Id: Ic573cab63c1168c2bc2bc50c1e20c87c88202692
Closes-Bug: #1833073
(cherry picked from commit 54d96c4a70)
tags/8.5.1
waleed mousa 2 months ago
parent
commit
a61f37aeed
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      os_net_config/sriov_config.py

+ 3
- 2
os_net_config/sriov_config.py View File

@@ -181,9 +181,10 @@ def _wait_for_vf_creation(pf_name, numvfs):
181 181
                                     % (vf_name, pf_name))
182 182
                         vf_count = vf_count + 1
183 183
                 else:
184
-                    logger.error("Unable to parse event %s" % event["device"])
184
+                    logger.warning("Unable to parse event %s"
185
+                                   % event["device"])
185 186
             else:
186
-                logger.error("%s is not a directory" % pf_path)
187
+                logger.warning("%s is not a directory" % pf_path)
187 188
         except Queue.Empty:
188 189
             logger.info("Timeout in the creation of VFs for PF %s" % pf_name)
189 190
             return

Loading…
Cancel
Save