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: POST --- QA Contact: Khomesh Thakre <kthakre>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: jpretori, mburns, vcojot
Target Milestone: z6Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 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: 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