Bug 1926693 - [QE][DDF] when adding a cell into a tls-everywhere environment also the cellcontroller internal api vip is required to be
Summary: [QE][DDF] when adding a cell into a tls-everywhere environment also the cellc...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 16.1 (Train)
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Irina
QA Contact: RHOS Documentation Team
URL:
Whiteboard: docs-accepted
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-09 09:46 UTC by Direct Docs Feedback
Modified: 2021-03-22 10:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1926716 (view as bug list)
Environment:
Last Closed: 2021-03-22 10:54:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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}'


Note You need to log in before you can comment on or make changes to this bug.