Bug 1777336 - add validation to ensure lvm2 package is installed on overcloud nodes if ceph is being deployed w/ already provisioned servers
Summary: add validation to ensure lvm2 package is installed on overcloud nodes if ceph...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z11
: 13.0 (Queens)
Assignee: Francesco Pantano
QA Contact: Yogev Rabl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-27 12:52 UTC by John Fulton
Modified: 2020-03-10 11:23 UTC (History)
6 users (show)

Fixed In Version: openstack-tripleo-validations-8.5.0-4.el7ost.noarch.rpm
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-10 11:23:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1855692 0 None None None 2019-12-09 10:13:30 UTC
OpenStack gerrit 697453 0 'None' MERGED Add a validation to fail if a Ceph dependency is not installed 2020-09-10 16:46:03 UTC
OpenStack gerrit 703931 0 None MERGED Add a validation to fail if a Ceph dependency is not installed 2020-09-10 16:46:04 UTC
OpenStack gerrit 703932 0 None MERGED Sync 'validations/ceph-dependencies-installed.yaml' with the new role 2020-09-10 16:46:03 UTC
OpenStack gerrit 703943 0 None MERGED Sync 'validations/ceph-dependencies-installed.yaml' with the new role 2020-09-10 16:46:03 UTC
Red Hat Bugzilla 1777020 0 high CLOSED pre-provisioned nodes need missing lvm2 package 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2020:0760 0 None None None 2020-03-10 11:23:50 UTC

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


Note You need to log in before you can comment on or make changes to this bug.