Bug 2228414

Summary: Missing service_user for nova_compute causes nova hybrid state to fail
Product: Red Hat OpenStack Reporter: Lukas Bezdicka <lbezdick>
Component: openstack-tripleo-heat-templatesAssignee: Lukas Bezdicka <lbezdick>
Status: CLOSED ERRATA QA Contact: Khomesh Thakre <kthakre>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: bdobreli, jpretori, mburns, pgrist, tvignaud, vcojot, yatanaka
Target Milestone: asyncKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20230320130753.el8ost Doc Type: If docs needed, set a value
Doc Text:
Cause: Security fix #2186892 introduced requirement of service_user for nova and cinder services. Consequence: Hybrid mode in upgrade does not change configuration by default but change to require service_user causes nova in hybrid state to be unable to work with cinder. Fix: We configure the service_user for nova during the switch to hybrid state. Result:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-14 08:41:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Bezdicka 2023-08-02 10:55:17 UTC
During investigation of OSP-26886 we noticed that fix for #2186892 introduced breaking change for upgrade.


From now on nova_compute needs to use service_user but that is not set up during the controller upgrade. This blocks volume operations on the cloud breaking the upgrade.

We need to provide nova service_user setting during switch to the hybrid mode of nova_compute.

Comment 4 Lukas Bezdicka 2023-08-09 11:06:43 UTC
I concluded that best WA for this for now is to simply apply the patch on Undercloud before running upgrade prepare.

curl -4 https://review.opendev.org/changes/openstack%2Ftripleo-heat-templates~890324/revisions/3/patch?download | base64 -d | sudo patch -p1 -d /usr/share/openstack-tripleo-heat-templates

Comment 10 Lukas Bezdicka 2023-09-06 11:25:05 UTC
FAILED QA investigating

Comment 11 Lukas Bezdicka 2023-09-07 07:45:13 UTC
We verified that it does set service token and nova compute sends service token. Failure in CI is some new issue that needs new BZ.

Comment 18 errata-xmlrpc 2023-09-14 08:41:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.2-async bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:5163

Comment 20 Lukas Bezdicka 2023-12-05 13:53:13 UTC
*** Bug 2244768 has been marked as a duplicate of this bug. ***