Bug 1445696

Summary: [RFE]Ensure correct repositories enabled on overcloud nodes before stack update
Product: Red Hat OpenStack Reporter: Chaitanya Shastri <cshastri>
Component: openstack-tripleo-validationsAssignee: Ana Krivokapic <akrivoka>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0 (Liberty)CC: achernet, akrivoka, beth.white, cshastri, jjoyce, jschluet, slinaber, tvignaud, ukalifon
Target Milestone: Upstream M2Keywords: FutureFeature, Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-8.4.0-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-27 13:29:27 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 Chaitanya Shastri 2017-04-26 10:20:52 UTC
Description of problem:
While performing the minor update of OSP, it would be good if we can check which repositories are enabled on the overcloud nodes. 

If there are some extra repositories enabled like EPEL, there should be a error displayed and the update process should abort.

On one of our setup, we faced this issue. We had EPEL repository enabled on controller nodes, which updated the packages on a controller node and galara went down because of package mismatch on the controllers.


How reproducible:
Always



Actual results:
No warning / error displayed if any extra repository enabled on overcloud nodes.

Expected results:
Operation should abort immediately with an error.

Comment 6 Udi Kalifon 2018-04-24 08:38:47 UTC
Verified in: openstack-tripleo-validations-8.4.0-2.el7ost.noarch

This only checks if EPEL is enabled (and fails if it is), and checks that there is at least 1 repo enabled. It doesn't guarantee that the *correct* repos are enabled for the upgrade.

Chaitanya, if you would like to additionally verify that the needed repos are not missing, please specify what those repos are. You can re-open this bug or file a new one.

Comment 7 Chaitanya Shastri 2018-05-08 06:49:04 UTC
I think there should be a verification of those repositories which should commonly be enabled on all the overcloud nodes (be it controllers, computes or ceph nodes).

There are some scenarios where we have ceph nodes in the overcloud stack for which we will have to enable the mon and osd repos on controllers and ceph nodes, otherwise these repos are not required.

Would this be doable here? If not, I think we can only verify the common repos as stated earlier. Let me know and I will raise a separate bug for it.

Comment 8 Ana Krivokapic 2018-05-08 09:30:41 UTC
It's definitely doable - we can have a list of 'mandatory' and a list of 'forbidden' repos. Please open another bug with as much detail as possible as to what these repos should be.

Comment 9 Chaitanya Shastri 2018-05-08 11:13:37 UTC
I have opened another bug to validate the necessary repositories required ahead of beginning a minor update / major upgrade: https://bugzilla.redhat.com/show_bug.cgi?id=1575946

Comment 11 errata-xmlrpc 2018-06-27 13:29:27 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-2018:2086