Bug 1745172

Summary: Tripleo should not install openldap-clients on overcloud nodes
Product: Red Hat OpenStack Reporter: Eliad Cohen <elicohen>
Component: openstack-tripleo-heat-templatesAssignee: RHOS Maint <rhos-maint>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: high Docs Contact:
Priority: high    
Version: 14.0 (Rocky)CC: abishop, ahrechan, aschultz, elicohen, jagee, mburns, nkinder, nweinber, rmascena
Target Milestone: z4Keywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-9.3.1-0.20190513171759.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-06 16:48:54 UTC 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:
Attachments:
Description Flags
Undercloud files from CI none

Description Eliad Cohen 2019-08-23 18:47:36 UTC
Created attachment 1607472 [details]
Undercloud files from CI

Description of problem:
Installation fails because openldap-clients package installed or avialable [1] 
Error originates from ControllerStorageNfs/host_prep_tasks.yaml:389

Version-Release number of selected component (if applicable):
Core puddle version: 2019-08-18.1

How reproducible:
100%

Steps to Reproduce:
1. Deploy osp14 with ControllerStorageNfs role 

Actual results:
Deployment fails

Expected results:
Packages should be found and deployment should succeed

Additional info:
[1]http://pastebin.test.redhat.com/791423

Comment 1 Alex Schultz 2019-08-23 21:25:47 UTC
failed: [controller-2] (item=openldap-clients) => {"changed": false, "item": "openldap-clients", "msg": "No package matching 'openldap-clients' found available, installed or updated", "rc": 126, "results": ["No package matching 'openldap-clients' found available, installed or updated"]}
failed: [controller-1] (item=openldap-clients) => {"changed": false, "item": "openldap-clients", "msg": "No package matching 'openldap-clients' found available, installed or updated", "rc": 126, "results": ["No package matching 'openldap-clients' found available, installed or updated"]}
failed: [controller-0] (item=openldap-clients) => {"changed": false, "item": "openldap-clients", "msg": "No package matching 'openldap-clients' found available, installed or updated", "rc": 126, "results": ["No package matching 'openldap-clients' found available, installed or updated"]}

Comment 2 Goutham Pacha Ravi 2019-08-26 04:53:51 UTC
Hi Eliad, 

It looks like the overcloud controller nodes do not have any repos configured:

 [heat-admin@controller-0 ~]$ sudo yum update
 Loaded plugins: product-id, search-disabled-repos, subscription-manager
 This system is not registered with an entitlement server. You can use subscription-manager to register.
 There are no enabled repos.
  Run "yum repolist all" to see the repos you have.
  To enable Red Hat Subscription Management repositories:
      subscription-manager repos --enable <repo>
  To enable custom repositories:
      yum-config-manager --enable <repo>


 [heat-admin@controller-0 ~]$ yum repolist all
 Loaded plugins: product-id, search-disabled-repos, subscription-manager
 repolist: 0

This shouldn't have anything to do with the ControllerStorageNFS role

Comment 3 Alex Schultz 2019-08-26 13:48:25 UTC
You shouldn't need repos configured if using the overcloud image. That points to this client missing from the overcloud image which would be wrong.

Comment 5 Alan Bishop 2019-08-27 14:06:58 UTC
While Goutham's comment #2 is correct, it seems the openldap-clients package is not supposed to be installed. There is an upstream patch which is missing downstream.

Comment 11 Raildo Mascena de Sousa Filho 2019-10-02 21:34:39 UTC
*** Bug 1757721 has been marked as a duplicate of this bug. ***

Comment 19 errata-xmlrpc 2019-11-06 16:48:54 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, 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-2019:3745