Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1235325 - "openstack baremetal configure boot" should skip nodes that have maintenance=true
"openstack baremetal configure boot" should skip nodes that have maintenance=...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-rdomanager-oscplugin (Show other bugs)
7.0 (Kilo)
Unspecified Unspecified
low Severity high
: y1
: 7.0 (Kilo)
Assigned To: Marek Aufart
Marius Cornea
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-06-24 10:08 EDT by Udi
Modified: 2015-10-08 08:10 EDT (History)
7 users (show)

See Also:
Fixed In Version: python-rdomanager-oscplugin-0.0.9-1.el7ost
Doc Type: Bug Fix
Doc Text:
The "openstack baremetal configure boot" command attempted to configure nodes in maintenance mode. This caused boot configuration to fail. This fix skips nodes in maintenance mode. Now the boot configuration passes without error.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-10-08 08:10:02 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Gerrithub.io 237999 None None None Never
Red Hat Product Errata RHSA-2015:1862 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux OpenStack Platform 7 director update 2015-10-08 12:05:50 EDT

  None (edit)
Description Udi 2015-06-24 10:08:06 EDT
Description of problem:
I have 2 bare metal nodes whose power state is "None" due to an ipmi bug related to my hardware (see bug 1235255 for details on that). I wanted to proceed with my other 5 nodes so I put the 2 problematic nodes in maintenance and ran the command "openstack baremetal configure boot":

~]$ openstack baremetal configure boot
/usr/lib/python2.7/site-packages/novaclient/v1_1/__init__.py:30: UserWarning: Module novaclient.v1_1 is deprecated (taken as a basis for novaclient.v2). The preferable way to get client class or object you can find in novaclient.client module.
  warnings.warn("Module novaclient.v1_1 is deprecated (taken as a basis for "
WARNING: rdomanager_oscplugin.v1.baremetal.ConfigureBaremetalBoot Node 2a4d7a55-f186-42fa-a84f-3a4ef24fc5cc power state is in transition. Waiting up to 120 seconds for it to complete.
ERROR: openstack Timed out waiting for node 2a4d7a55-f186-42fa-a84f-3a4ef24fc5cc power state.


From the output I got above, it looks like the unified cli is still trying to work with the nodes whose power state can't be set. Those nodes are in maintenance so I expected them to be skipped.


Version-Release number of selected component (if applicable):
python-rdomanager-oscplugin-0.0.8-4.el7ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Put a few nodes in maintenance (you can also misconfigure them, like provide the wrong password to ipmi, to simulate the problem I'm having with my hardware).
2. Run "openstack baremetal configure boot".


Actual results:
The command ignores maintenance flags and fails on the misconfigured/broken hardware


Expected results:
It should be possible for the user to mark failed hardware as "maintenance" and not get stuck with the entire stack just because of 1 issue somewhere.
Comment 4 Marek Aufart 2015-06-29 08:20:22 EDT
Fix is on review https://review.gerrithub.io/#/c/237999/
Comment 6 Udi 2015-09-10 08:38:28 EDT
Verified in python-rdomanager-oscplugin-0.0.10-1.el7ost.noarch
Comment 8 errata-xmlrpc 2015-10-08 08:10:02 EDT
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/RHSA-2015:1862

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