Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1625273

Summary: Some nodes not being discovered with auto-discover feature without delay added between powering nodes
Product: Red Hat OpenStack Reporter: mlammon
Component: openstack-ironicAssignee: RHOS Maint <rhos-maint>
Status: CLOSED WORKSFORME QA Contact: mlammon
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 14.0 (Rocky)CC: bfournie, hjensas, mburns, racedoro, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-20 15:22:36 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 mlammon 2018-09-04 14:16:04 UTC
Some nodes not being discovered with auto-discover feature without delay added between powering nodes

Description:
Some nodes not being discovered with auto-discover feature when powering unless we insert greater then two or more minutes delay between each node.


Steps:
1. enable auto-discover feature in undercloud.conf
(enable_node_discovery = true)
2. install undercloud
3. add discover rule 
(openstack baremetal introspection rule)

[
        {
            "description": "Set default IPMI credentials",
            "conditions": [
                {"op": "eq", "field": "data://auto_discovered", "value": true}
            ],
            "actions": [
                {"action": "set-attribute", "path": "driver_info/ipmi_username",
                 "value": "admin"},
                {"action": "set-attribute", "path": "driver_info/ipmi_password",
                 "value": "password"},
                {"action": "set-attribute", "path": "driver_info/ipmi_address",
                 "value": "172.16.0.1"},
                {"action": "set-attribute", "path": "driver_info/ipmi_port",
                 "value": "6234"}
            ]
        }
        ]

4. power nodes on  ( power on nodes without delay)  
*Only if delay ( > 2 min per node ) gives better reliability of discovery 

5. openstack baremetal node list

We should see all nodes discovered and many times none or a few
out of the five being tested

Environment:
python2-ironicclient-2.5.0-0.20180810135843.fb94fb8.el7ost.noarch
python2-ironic-inspector-client-3.3.0-0.20180810080932.53bf4e8.el7ost.noarch
puppet-ironic-13.3.1-0.20180822161555.5d7cfcf.el7ost.noarch
instack-undercloud-9.2.1-0.20180809233055.ed96987.el7ost.noarch
python2-openstackclient-3.16.0-0.20180809175603.f77ca68.el7ost.noarch