Bug 1710348

Summary: ceilometer and aodh puppets collide on python3-redis package already defined
Product: Red Hat OpenStack Reporter: Pavel Sedlák <psedlak>
Component: openstack-packstackAssignee: Alfredo Moralejo <amoralej>
Status: CLOSED ERRATA QA Contact: Pavel Sedlák <psedlak>
Severity: medium Docs Contact:
Priority: medium    
Version: 15.0 (Stein)CC: jschluet
Target Milestone: betaKeywords: Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-packstack-14.0.0-0.20190520100353.18df75b.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:22:03 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:

Description Pavel Sedlák 2019-05-15 11:39:12 UTC
packstack setup fails due aodph and ceilometer puppets
are both attempting to redefine python3-redis package definition (python3 compat?)

> 2019-05-14 14:51:54.592 | Copying Puppet modules and manifests                 [ DONE ]
> 2019-05-14 14:51:54.594 | Applying 172.16.1.18_controller.pp
> 2019-05-14 14:51:54.596 | 
> 172.16.1.18_controller.pp:                        [ ERROR ]
> 2019-05-14 14:51:54.599 | Applying Puppet manifests                         [ ERROR ]
> 2019-05-14 14:51:54.601 | 
> 2019-05-14 14:51:54.603 | ERROR : Error appeared during Puppet run: 172.16.1.18_controller.pp
> 2019-05-14 14:51:54.605 | Error: Evaluation Error: Error while evaluating a Function Call, Cannot alias Package[python-redis] to ["python3-redis", nil] at (file: /var/tmp/packstack/3bd6e2ea3da34404a889907505ab1047/modules/aodh/manifests/evaluator.pp, line: 43); resource ["Package", "python3-redis", nil] already declared (file: /var/tmp/packstack/3bd6e2ea3da34404a889907505ab1047/modules/packstack/manifests/ceilometer.pp, line: 21) (file: /var/tmp/packstack/3bd6e2ea3da34404a889907505ab1047/modules/aodh/manifests/evaluator.pp, line: 43, column: 7) on node c82066098a255b929184734fe851a438-aio-0.openstacklocal

puppet-5.5.10-5.el8ost.noarch
openstack-packstack-14.0.0-0.20190430100357.e9242f1.el8ost.noarch
openstack-packstack-puppet-14.0.0-0.20190430100357.e9242f1.el8ost.noarch
puppet-ceilometer-14.4.1-0.20190420104600.2e50dfd.el8ost.noarch
puppet-aodh-14.4.1-0.20190420123525.cdf42b9.el8ost.noarch

Comment 2 Alfredo Moralejo 2019-05-16 10:51:09 UTC
Proposed fix for master https://review.opendev.org/#/c/659527/ i'll cherry-cherry pick it to stable/stein

Comment 3 Alfredo Moralejo 2019-05-20 08:18:21 UTC
Cherry-pick in https://review.opendev.org/#/c/659805/

Comment 4 Alfredo Moralejo 2019-05-20 10:55:37 UTC
Patch is merged in stable/stein and built in RDO Trunk repo for stein.

Comment 9 Pavel Sedlák 2019-09-05 15:13:13 UTC
verified - packstack now deploys osp15 and basic tempest scenarios pass too.


> 2019-08-27 15:50:13.945 | Preparing Gnocchi entries                            [ DONE ]
> 2019-08-27 15:50:13.947 | Preparing Redis entries                              [ DONE ]
> 2019-08-27 15:50:13.950 | Preparing Ceilometer entries                         [ DONE ]
> 2019-08-27 15:50:13.953 | Preparing Aodh entries                               [ DONE ]
> 2019-08-27 15:50:13.955 | Preparing Puppet manifests                           [ DONE ]
> 2019-08-27 15:50:13.958 | Copying Puppet modules and manifests                 [ DONE ]
> 2019-08-27 15:50:13.961 | Applying 172.16.1.21_controller.pp
> 2019-08-27 15:50:13.964 | 
> 172.16.1.21_controller.pp:                           [ DONE ]
> 2019-08-27 15:50:13.967 | Applying 172.16.1.21_network.pp
> 2019-08-27 15:50:13.970 | 
> 172.16.1.21_network.pp:                              [ DONE ]
> 2019-08-27 15:50:13.973 | Applying 172.16.1.21_compute.pp
> 2019-08-27 15:50:13.976 | 
> 172.16.1.21_compute.pp:                              [ DONE ]
> 2019-08-27 15:50:13.979 | Applying Puppet manifests                            [ DONE ]
> 2019-08-27 15:50:13.982 | Finalizing                                           [ DONE ]
> 2019-08-27 15:50:13.985 | 
> 2019-08-27 15:50:13.988 |  **** Installation completed successfully ******
> 2019-08-27 15:50:13.992 | 

tested with beta versions:
> openstack-packstack.noarch                        1:14.0.0-0.20190605130427.c68b799.el8ost         @rhelosp-15.0-trunk-devtools        
> openstack-packstack-puppet.noarch                 1:14.0.0-0.20190605130427.c68b799.el8ost         @rhelosp-15.0-trunk-devtools

Comment 11 errata-xmlrpc 2019-09-21 11:22:03 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/RHEA-2019:2811