Merge "Relaxing console pid looking"

This commit is contained in:
Zuul
2023-02-23 04:40:38 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ def _get_console_pid(node_uuid):
with open(pid_path, 'r') as f:
pid_str = f.readline()
return int(pid_str)
except (IOError, ValueError):
except (IOError, ValueError, FileNotFoundError):
raise exception.NoConsolePid(pid_path=pid_path)

View File

@@ -0,0 +1,6 @@
---
fixes:
- |
Fixes an issue that when a node has console enabled but pid
file missing, the console could not be disabled as well as be
restarted, which makes the console feature unusable.