Bug 1445662

Summary: [RFE] Validation that root device hints are set for multi-disk nodes
Product: Red Hat OpenStack Reporter: Dmitry Tantsur <dtantsur>
Component: openstack-tripleo-validationsAssignee: Florian Fuchs <flfuchs>
Status: CLOSED ERRATA QA Contact: Amit Ugol <augol>
Severity: high Docs Contact:
Priority: high    
Version: 12.0 (Pike)CC: agurenko, apannu, augol, beth.white, flfuchs, gchamoul, jjoyce, jrist, jschluet, slinaber, tvignaud
Target Milestone: Upstream M3Keywords: FutureFeature, Triaged
Target Release: 15.0 (Stein)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-validations-10.4.1-0.20190621220403.673148d.el8ost Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-21 11:15: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:
Bug Depends On: 1445650    
Bug Blocks:    

Description Dmitry Tantsur 2017-04-26 08:59:05 UTC
When we implement support for root device hints in the UI, we need to start enforcing setting them for nodes that have multiple disks (see bug 1445650 for reasoning behind it). I suggest two actions:

1. Issue a validation WARNING when introspection data shows multiple disk devices, and node.properties['root_device'] is not set.

2. Issue a validation ERROR when introspection data shows that the smallest disk which is larger than 4 GiB is still smaller (or equal) than what is required by flavors.

An example. Imagine we have a baremetal flavor requiring disk of 20 GiB.

Node 1 has one disk of 40 GiB, no root device hints. No warnings of errors.

Node 2 has two disks: 40 GiB and 21 GiB, no root device hints. A warning.

Node 3 has two disks: 40 GiB and 10 GiB, no root device hints. An error, as the smallest disk will be picked for deployment.

Node 4 has two disks: 40 GiB and 10 GiB, root devices hints set. No warnings or errors.

3. Bonus point for validating that existing root devices hints point to a correct disk.

Comment 14 Florian Fuchs 2018-11-22 14:32:15 UTC
*** Bug 1647458 has been marked as a duplicate of this bug. ***

Comment 20 errata-xmlrpc 2019-09-21 11:15: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-2019:2811

Comment 21 Red Hat Bugzilla 2023-09-14 03:57:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days