From cafb8d5e1af143c83ca3dfe239e50d8bbc5f6ac5 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Fri, 29 Nov 2024 23:34:41 +0100 Subject: Fix nova-compute startup after reprovisioning We need to restore the /var/lib/nova/compute_id file to avoid nova-compute failing to start with the following error: nova.exception.InvalidConfiguration: No local node identity found, but this is not our first startup on this host. Refusing to start after potentially having lost that state! K-A now query IDs of hypervisors by their hostname and create necessary compute_id file under node config directory for nova-compute before starting nova-compute containers. The compute_id file gets copied under /var/lib/nova/ on container start up. Co-Authored-By: bjorn lofdahl Co-Authored-By: Seunghun Lee Co-Authored-By: Owen Jones Change-Id: If635577fa240f0953ad02d2c28473480d9ad011d Closes-Bug: #2051011 Signed-off-by: Owen Jones Signed-off-by: Maksim Malchuk (cherry picked from commit 3e4cfd49da38c7db2ac3ad47a75dc89b14cbb513) --- releasenotes/notes/bug-2051011-e78146d498a5875a.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 releasenotes/notes/bug-2051011-e78146d498a5875a.yaml (limited to 'releasenotes/notes') diff --git a/releasenotes/notes/bug-2051011-e78146d498a5875a.yaml b/releasenotes/notes/bug-2051011-e78146d498a5875a.yaml new file mode 100644 index 000000000..1195b2d6e --- /dev/null +++ b/releasenotes/notes/bug-2051011-e78146d498a5875a.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes ``nova-compute`` failing to start after ``/var/lib/nova`` content has + been wiped, for example following a reprovisioning. + `LP#2051011 `__ -- cgit v1.2.3