Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1766122

Summary: Qdr InternalTLS support broken with puppet-tripleo-8.5.1-1.el7ost
Product: Red Hat OpenStack Reporter: Martin Schuppert <mschuppe>
Component: puppet-tripleoAssignee: Martin Magr <mmagr>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 13.0 (Queens)CC: jjoyce, jschluet, mmagr, mrunge, pkilambi, shdunne, slinaber, tvignaud
Target Milestone: z9Keywords: Regression, Triaged, ZStream
Target Release: 13.0 (Queens)Flags: mmagr: needinfo-
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: puppet-tripleo-8.5.1-3.el7ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-07 14:03:22 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:
Bug Depends On:    
Bug Blocks: 1761373    

Description Martin Schuppert 2019-10-28 11:02:08 UTC
Description of problem:

From checking the import broke Qdr InternalTLS support broken with puppet-tripleo-8.5.1-1.el7ost from BZ1700918.
Commit 73bae35607c7031b318dc5ce789203a7b4d99421 is missing after latest import.

Realized with https://bugzilla.redhat.com/show_bug.cgi?id=1761373#c8 that manifests/profile/base/certmonger_user.pp
has issues and the above mentioned qdr tls-everywhere patch is missing/broken:

$ git show 899837a3afc118b09d5cec45afe1dc8f585d986e
commit 899837a3afc118b09d5cec45afe1dc8f585d986e
Author: Juan Antonio Osorio Robles <jaosorior>
Date:   Wed Jan 30 15:39:23 2019 +0200

    Only request certs in step 1
    
    The certmonger-user service used to run in every step. This limits it to
    only step 1.
    
    Upstream-Stein: https://review.opendev.org/#/c/633944/
    Upstream-Rocky: https://review.opendev.org/#/c/663288/
    Upstream-Queens: https://review.opendev.org/#/c/663874/
    
    Resolves: rhbz#1718629
    Change-Id: I119fa1da61f2385c672391beb4071f0ac2731f21
    (cherry picked from commit 98e9879fd55194ed86c294158cabbf21ec1c903f)
    (cherry picked from commit 78f21fcf3ba3c5c2586d68c521440022dcd57305)
    Signed-off-by: Moises Guimaraes de Medeiros <moguimar>

diff --git a/manifests/profile/base/certmonger_user.pp b/manifests/profile/base/certmonger_user.pp
index 6dbdcb48..c929793c 100644
--- a/manifests/profile/base/certmonger_user.pp
+++ b/manifests/profile/base/certmonger_user.pp
@@ -196,6 +196,9 @@ class tripleo::profile::base::certmonger_user (
     unless empty($mongodb_certificate_specs) {
       ensure_resource('class', 'tripleo::certmonger::mongodb', $mongodb_certificate_specs)
     }
+    unless empty($qdr_certificate_specs) {
+      ensure_resource('class', 'tripleo::certmonger::metrics_qdr', $qdr_certificate_specs)
+    }
     unless empty($mysql_certificate_specs) {
       ensure_resource('class', 'tripleo::certmonger::mysql', $mysql_certificate_specs)
     }


Checking the difference between puppet-tripleo-8.4.1-24.el7ost and rhos-13.0-patches branch:

$ diff -u manifests/profile/base/certmonger_user.pp /tmp/puppet-tripleo/usr/share/openstack-puppet/modules/tripleo/manifests/profile/base/certmonger_user.pp
--- manifests/profile/base/certmonger_user.pp   2019-10-28 10:04:21.958899491 +0100
+++ /home/mschuppe/Downloads/puppet-tripleo/usr/share/openstack-puppet/modules/tripleo/manifests/profile/base/certmonger_user.pp        2019-10-28 10:11:13.136411168 +0100
@@ -73,6 +73,11 @@
 #   it will create.
 #   Defaults to hiera('mongodb_certificate_specs',{})
 #
+# [*qdr_certificate_specs*]
+#   (Optional) The specifications to give to certmonger fot the certificate(s)
+#   it will create.
+#   Defaults to hiera('tripleo::profile::base::metrics::qdr::certificate_specs', {}).
+#
 # [*mysql_certificate_specs*]
 #   (Optional) The specifications to give to certmonger for the certificate(s)
 #   it will create.
@@ -139,6 +144,7 @@
   $libvirt_vnc_certificates_specs = hiera('libvirt_vnc_certificates_specs', {}),
   $libvirt_vnc_postsave_cmd       = undef,
   $mongodb_certificate_specs  = hiera('mongodb_certificate_specs',{}),
+  $qdr_certificate_specs      = hiera('tripleo::profile::base::metrics::qdr::certificate_specs', {}),
   $mysql_certificate_specs    = hiera('tripleo::profile::base::database::mysql::certificate_specs', {}),
   $rabbitmq_certificate_specs = hiera('tripleo::profile::base::rabbitmq::certificate_specs', {}),
   $redis_certificate_specs    = hiera('redis_certificate_specs', {}),


Version-Release number of selected component (if applicable):
puppet-tripleo-8.5.1-1.el7ost

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Martin Schuppert 2019-10-28 11:22:35 UTC
sorry, wrong commit mentioned in the description, 3c56fa4edace91e30725d2154063f6eaa2fe534c is missing.

commit 3c56fa4edace91e30725d2154063f6eaa2fe534c
Author: Nagasai Vinaykumar Kapalavai <vkapalav>
Date:   Wed Jan 16 13:28:13 2019 -0500

    Qdr: InternalTLS support.
    
    Configuration changes to provide Internal TLS support
    for Qdr.
    
    Resolves: rhbz#1700918
    Change-Id: I30142db8bfa55412b8c8224aeb05916184117a86
    (cherry picked from commit be82c8690678e199e5fe95242c884f943531597b)

Comment 6 Matthias Runge 2019-10-28 14:48:43 UTC
/me looks to mmagr

Comment 7 Martin Magr 2019-10-29 15:18:55 UTC
This seems like several SAF-1.0 backport patches were dropped. We will need to investigate and backport missing code again.

Comment 8 Martin Magr 2019-10-29 16:12:28 UTC
Ok on the second check it is just that one patch, which is missing. The cause of this is that the upstream version was abandoned to let other patches merged, but was not resubmitted again. I will fix this too.

Comment 14 Alex McLeod 2019-10-31 11:32:45 UTC
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to -.

Comment 17 Leonid Natapov 2019-11-04 10:07:34 UTC
Verified. metrics_qdr and collectd container are running. No errors appear.

Comment 19 errata-xmlrpc 2019-11-07 14:03:22 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:3794