Bug 1926693

Summary: [QE][DDF] when adding a cell into a tls-everywhere environment also the cellcontroller internal api vip is required to be
Product: Red Hat OpenStack Reporter: Direct Docs Feedback <ddf-bot>
Component: documentationAssignee: Irina <igallagh>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16.1 (Train)CC: igallagh, jparker, mschuppe
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard: docs-accepted
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1926716 (view as bug list) Environment:
Last Closed: 2021-03-22 10:54:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Direct Docs Feedback 2021-02-09 09:46:29 UTC
when adding a cell into a tls-everywhere environment also the cellcontroller internal api vip is required to be added to the central overcloud controllers because when using a tls-everywhere environment nova uses the cell controller internal api hostname instead of the vip to connect to the cell DB.

Reported by: rhn-support-mschuppe

https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/instances_and_images_guide/ch-manage_cells#annotations:e368511f-31c0-4bf1-9b19-eb91543ef839

Comment 1 Martin Schuppert 2021-02-09 09:57:04 UTC
instead of:
CELL_INTERNALAPI_INFO=$(ssh heat-admin@${CELL_CTRL_IP} egrep cellcontrol.*\.internalapi /etc/hosts)

it should be:
CELL_INTERNALAPI_INFO=$(ssh heat-admin@${CELL_CTRL_IP} egrep cell1.*\.internalapi /etc/hosts)

Where cell1 is the prefix to identify only the cell systems and exclude the central controller systems.

Comment 3 Martin Schuppert 2021-02-10 07:40:24 UTC
We also have to replace in step 3 CELL_MYSQL_VIP to get either the IP or the endpoint hostname:

current:
(undercloud) [stack@undercloud ~]$ CELL_MYSQL_VIP=$(ssh heat-admin@${CELL_CTRL_IP} sudo \
                                    crudini --get /var/lib/config-data/nova/etc/nova/nova.conf database connection \
                                    | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1')

should be:
(undercloud) [stack@undercloud ~]$ CELL_MYSQL_VIP=$(ssh heat-admin@${CELL_CTRL_IP} sudo \
                                    crudini --get /var/lib/config-data/nova/etc/nova/nova.conf database connection \
                                    | awk -F[@/] '{print $4}'