Don't delete compute node when deleting service other than nova-compute
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Pavel Gluschak | ||
Rocky |
Fix Committed
|
Medium
|
Sylvain Bauza | ||
Stein |
Fix Committed
|
Medium
|
Sylvain Bauza | ||
Train |
Fix Committed
|
Medium
|
Sylvain Bauza |
Bug Description
When upgrading to Stein, nova-consoleauth service is deprecated and should be removed. However if nova-consoleauth service is located on the same host with nova-compute, matching row in compute_nodes table is soft-deleted as well, making nova-compute service report in log, that stale resource provider exists in placement:
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
2019-11-18 16:03:20.069 7 ERROR nova.compute.
Steps to reproduce
==================
# nova service-list
+------
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | Forced down |
+------
| 57885a23-
| 0b08d3ea-
| 7d7f3dc6-
| 367a4591-
+------
nova=# select uuid,deleted_at from compute_nodes;
-------
13c1fbd5-
# nova service-delete 7d7f3dc6-
nova=# select uuid,deleted_at from compute_nodes;
-------
13c1fbd5-
Expected result
===============
compute_node is not deleted from db if nova-consoleauth service is removed
Actual result
=============
compute_node is deleted from db if nova-consoleauth service is removed
Environment
===========
Queens, Stein
Changed in nova: | |
assignee: | nobody → Pavel Gluschak (scsnow) |
description: | updated |
description: | updated |
description: | updated |
Fix proposed to branch: master /review. opendev. org/694756
Review: https:/