Bug 1244001

Summary: bulk introspection with active nodes fails
Product: Red Hat OpenStack Reporter: Ben Nemec <bnemec>
Component: python-rdomanager-oscpluginAssignee: Lennart Regebro <lregebro>
Status: CLOSED ERRATA QA Contact: Marius Cornea <mcornea>
Severity: unspecified Docs Contact:
Priority: high    
Version: DirectorCC: akrivoka, calfonso, dmacpher, dmatthew, jslagle, kbasil, lregebro, mburns, mcornea, ohochman, rhel-osp-director-maint
Target Milestone: y1Keywords: Rebase, Triaged, ZStream
Target Release: 7.0 (Kilo)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-rdomanager-oscplugin-0.0.9-1.el7ost Doc Type: Rebase: Bug Fixes and Enhancements
Doc Text:
Bulk introspection applied to all nodes including active nodes. However, bulk introspection failed on active nodes. This fix no longer applies introspection to active nodes.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-08 12:15:11 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:
Attachments:
Description Flags
ironic nodes none

Description Ben Nemec 2015-07-16 20:30:45 UTC
Description of problem: Running "openstack baremetal introspection bulk start" fails if there are already nodes active.  This is a problem if, for example, you try to add more nodes to an existing cloud.  Each new node must be introspected individually, which can be painful for large numbers of nodes.


Version-Release number of selected component (if applicable): beta 2


How reproducible: Always


Steps to Reproduce:
1. Deploy a cloud
2. Register additional ironic nodes
3. Attempt bulk introspection on new nodes.

Actual results: Failure due to attempt to introspect an active node.


Expected results: Introspection of nodes in manageable state.


Additional info: Note that the same bug applies to introspection bulk status.

https://github.com/rdo-management/python-rdomanager-oscplugin/blob/master/rdomanager_oscplugin/v1/baremetal.py#L138 should only be iterating over the nodes in manageable state, not all nodes.

Comment 4 Marius Cornea 2015-09-16 14:29:01 UTC
Created attachment 1074060 [details]
ironic nodes

Attaching log with the verification steps output.

Comment 6 errata-xmlrpc 2015-10-08 12:15:11 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/RHSA-2015:1862