Bug 1777336

Summary: add validation to ensure lvm2 package is installed on overcloud nodes if ceph is being deployed w/ already provisioned servers
Product: Red Hat OpenStack Reporter: John Fulton <johfulto>
Component: openstack-tripleo-validationsAssignee: Francesco Pantano <fpantano>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: low Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: gchamoul, jjoyce, jschluet, nweinber, slinaber, tvignaud
Target Milestone: z11Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-8.5.0-4.el7ost.noarch.rpm Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-10 11:23:19 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 John Fulton 2019-11-27 12:52:02 UTC
As per bz 1777020 when using pre-provisioned servers [1] it's possible that the lvm2 package won't be installed on overcloud nodes which will cause deployment of ceph to fail. Though we can document that lvm2 needs to be installed we should also have a validation which fails early if the package is missing. 

We already have a check to ensure that ceph-ansible is installed on the undercloud [2]. We could have a similar check to ensure that lvm2 is installed on the overcloud.


[1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/15/html-single/director_installation_and_usage/index#registering-the-operating-system-for-pre-provisioned-nodes

[2] https://review.opendev.org/#/c/662542/

Comment 1 John Fulton 2019-11-27 12:53:32 UTC
Example:

- name: Check required packages
  package_facts:

- name: Fail if missing required packages
  fail:
    msg: "Missing required package: lvm2"
  when: not 'lvm2' in ansible_facts.packages

Comment 2 Gaƫl Chamoulaud 2019-11-27 14:07:18 UTC
Thanks John, to take care of this! Again ;-)

You can even check if the package release (if it is already there) is the latest one available.

Take a look at https://github.com/openstack/tripleo-validations/blob/master/roles/check-latest-packages-version/tasks/main.yml

Comment 10 John Fulton 2020-02-12 21:01:54 UTC
docbug: https://bugzilla.redhat.com/show_bug.cgi?id=1802304

Comment 12 errata-xmlrpc 2020-03-10 11:23:19 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-2020:0760