Bug 2033935 - IDM server parameter limited to single IPA server
Summary: IDM server parameter limited to single IPA server
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z4
: 16.2 (Train on RHEL 8.4)
Assignee: Grzegorz Grasza
QA Contact: Joe H. Rahme
URL:
Whiteboard:
Depends On:
Blocks: 2034765
TreeView+ depends on / blocked
 
Reported: 2021-12-19 00:50 UTC by Donghwi Cha
Modified: 2022-12-07 19:22 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20220821010130.b1e9bfe.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 19:21:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1955319 0 None None None 2022-07-01 11:55:50 UTC
OpenStack gerrit 822250 0 None MERGED IDM server registration is fixed to one server only 2022-03-29 07:58:58 UTC
OpenStack gerrit 829709 0 None MERGED IDM server registration is fixed to one server only 2022-05-16 17:51:59 UTC
Red Hat Issue Tracker OSP-11886 0 None None None 2021-12-19 00:54:52 UTC
Red Hat Product Errata RHBA-2022:8794 0 None None None 2022-12-07 19:22:10 UTC

Description Donghwi Cha 2021-12-19 00:50:39 UTC
Description of problem:
In 16.2.0/16.2.1, 
IDM server input value is limited to a string 
where there can be only one value of IPA server, 
however IPA ansible playbook is capable of accepting multiple values of IPA server. 

[IDM tripleO heat template] 

  IdMServer:
    default: ''
    ...
    type: string

[ ipaclient ansible install task ]

- name: Install - Set ipaclient_servers
  set_fact:
    ipaclient_servers: "{{ groups['ipaservers'] | list }}"  <--- list value
  when: groups.ipaservers is defined and ipaclient_servers is not defined

IDM tripleO heat template needs improvement 
so that it can convey the original intension of IPA client integration Ansible playbook.

Version-Release number of selected component (if applicable): 16.2.0/16.2.1

How reproducible:

Provide the two values of IPA servers to IdMServer, and installation fails 
since IdMServer is set to string. 

Steps to Reproduce:
1. provide heat param like IdMServer: "ipaserver1,ipaserver2"
2. run overcloud deployment 
3. installation fails 

Actual results:

....
Overcloud Deployed with error
Overcloud configuration failed.


Expected results:

successful deployment of overcloud without issue 

Additional info:

Comment 5 Grzegorz Grasza 2022-02-01 11:30:07 UTC
Ansible doesn't support a list of IDM servers (it can reads the IPA_HOST env var or 'ipa-ca'), but in my opinion, we shouldn't wait for this to be implemented. We can pass the first server from the list during the installation to Ansible and supply the whole list to ipa-client-install.

Comment 20 errata-xmlrpc 2022-12-07 19:21:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.4), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8794


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