ipa host names are not properly generated with custom network names

Bug #1988550 reported by Cristian Le
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
In Progress
Undecided
Unassigned

Bug Description

When a network has all `name`, `name_lower` and `service_net_map_replace` specified, the ipa hostname is not well constructed, and it does not take into account `dns_domain`. E.g.:
```yaml
---
# network_data.yaml
- dns_domain: my-external.overcloud.lab
   name: External
   name_lower: overclouda_external
   service_net_map_replace: external
   subnets:
     overclouda_external_subnet: {...}
---
# overcloud_baremetal_deployment.yaml
- name: Controller
  count: 1
  defaults:
    network_config:
      default_route_network:
        - overclouda_external
    networks:
      - network: ctlplane
        vif: true
      - network: overclouda_external
      - network: overclouda_internal_api
      - network: overclouda_storage_mgmt
      - network: overclouda_storage
      - network: overclouda_tenant
    profile: controller
  hostname_format: controller-%index%
```
Then the hosts being generated in freeipa are like:
`controller-0.overcloudaexternal.overcloud.lab`
instead of the hostname that is used for freeipa services like `<email address hidden>`:
`controller-0.external.overcloud.lab`
But actually the correct behaviour would have been to be:
`controller-0.my-external.overcloud.lab`

Revision history for this message
Cristian Le (lecris) wrote :

So I found the underlying issue being this commit [1]. This contradicts how other services define the principal using `fqdn_$NETWORK`, e.g. [2]. I believe we should use the latter in all the other places as well, e.g. [3] which causes the mismatch in ipa of this issue.

[1]: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/815598
[2]: https://opendev.org/openstack/tripleo-heat-templates/src/commit/a6576e1c5980b4ddcf292599037eb089975aa76f/deployment/nova/nova-modular-libvirt-container-puppet.yaml#L781
[3]: https://opendev.org/openstack/tripleo-heat-templates/src/commit/a6576e1c5980b4ddcf292599037eb089975aa76f/deployment/ipa/ipaservices-baremetal-ansible.yaml#L107

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)
Changed in tripleo:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by "Ghanshyam <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/859907
Reason: TrieplO project is retiring now, for details, please see https://review.opendev.org/c/openstack/governance/+/905145 or reach out to OpenStack TC.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.