Bug 2217886

Summary: undercloud_admin_host and undercloud_public_host IP addresses were not configured by DF when net_config_override is defined
Product: Red Hat OpenStack Reporter: Alex Stupnikov <astupnik>
Component: documentationAssignee: RHOS Documentation Team <rhos-docs>
Status: NEW --- QA Contact: RHOS Documentation Team <rhos-docs>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.0 (Wallaby)CC: hbrock, jslagle, mburns, ramishra, tkajinam
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
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 Alex Stupnikov 2023-06-27 11:33:27 UTC
Description of problem:

Undercloud deployment failed after customer defined net_config_override in undercloud.conf according to our official recommendations [1] with single IP address set in addresses list because undercloud_admin_host and undercloud_public_host IP addresses were not configured deployment framework. I am not sure if it is python-tripleoclient's job to do this or os-net-config (from my RHOSP 16 config I can't see these IP addresses defined in /etc/os-net-config/config.json either).

Workaround: undercloud_admin_host and undercloud_public_host IP addresses were added to addresses list and this solved the problem.

[1]
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.0/html-single/director_installation_and_usage/index#proc_configuring-undercloud-network-interfaces_installing-director-on-the-undercloud


Version-Release number of selected component (if applicable):
os-net-config-14.2.1-0.20220626013437.755f151.el9ost.noarch
python3-tripleoclient-16.5.1-0.20221207110335.23dbe54.el9ost.noarch


How reproducible:

Define net_config_override according to https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.0/html-single/director_installation_and_usage/index#proc_configuring-undercloud-network-interfaces_installing-director-on-the-undercloud
and run "openstack undercloud install" command

Actual results:
Undercloud install fails because keystone is unable to connect to DB via undercloud_admin_host IP address

Expected results:
Installation is successful

Comment 1 Takashi Kajinami 2023-06-27 12:41:54 UTC
In RHOSP17 we no longer deploy keepalived in undercloud and vips are directly assigned to interfaces.
So we should make sure that net_config_override contains the definitions to deploy all addresses.
 https://github.com/openstack/tripleo-ansible/blob/stable/wallaby/tripleo_ansible/roles/tripleo_network_config/templates/undercloud.j2#L21-L23

We probably have to update the documentation to state that requirement.

Comment 2 Takashi Kajinami 2023-07-24 02:27:25 UTC
I'm converting this to a doc bug.

Please mention that IP addresses for the following options should be configured 

local_ip (always needed)
undercloud_public_host (needed only when SSL is enabled in undercloud)
undercloud_admin_host (needed only when SSL is enabled in undercloud)

These parameters are described in https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/17.0/html-single/director_installation_and_usage/index#ref_director-configuration-parameters_installing-director-on-the-undercloud