Bug 1596763

Summary: [RHOSP13] Not able to register baremetal nodes when using pxe_ucs driver
Product: Red Hat OpenStack Reporter: Bob Fournier <bfournie>
Component: openstack-tripleo-commonAssignee: Ilya Etingof <ietingof>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: high Docs Contact:
Priority: high    
Version: 13.0 (Queens)CC: bfournie, ietingof, joflynn, jschluet, konrad.meier, mburns, mlammon, msufiyan, slinaber, srevivo
Target Milestone: z2Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-common-8.6.3-7.el7ost Doc Type: Bug Fix
Doc Text:
When the undercloud imported bare metal nodes from the instackenv.json file and if the UCS driver was being configured, ironic nodes that only differ in `pm_service_profile` (or `ucs_service_profile`) fields overrode one another in ironic configuration. This resulted in just one of such ironic nodes ending up in the ironic configuration. An update to openstack-tripleo-common ensures that ironic nodes that only differ in `pm_service_profile` (or `ucs_service_profile`) fields are still considered distinct. All of the ironic nodes that only differ in `pm_service_profile` or `ucs_service_profile` fields get imported into ironic.
Story Points: ---
Clone Of: 1583893 Environment:
Last Closed: 2018-08-29 16:37:54 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: 1583893, 1613645    
Bug Blocks:    

Comment 1 Bob Fournier 2018-07-30 17:10:48 UTC
wrong bug updated.

Comment 3 Alexander Chuzhoy 2018-08-08 14:20:52 UTC
Environment:
openstack-tripleo-common-8.6.3-8.el7ost.noarch

In undercloud.conf I added the following line:
enabled_hardware_types = ipmi,redfish,ilo,idrac,cisco-ucs-managed
Before running 'openstack undercloud install'

Here's the instackenv.json I had to use, note the use of "pm_type": "cisco-ucs-managed" and pm_service_profile.
{
  "nodes": [
    {
      "name": "osmg01",
      "mac":[
          "00:25:b5:02:a1:2f"
      ],
      "pm_type": "cisco-ucs-managed",
      "pm_user": "openstack",
      "pm_password": "foo",
      "pm_addr": "10.48.50.10",
      "pm_service_profile": "org-root/org-OpenStack/ls-osmg01"
    },
        {
      "name": "osmg02",
      "mac":[
          "00:25:b5:02:a1:4f"
      ],
      "pm_type": "cisco-ucs-managed",
      "pm_user": "openstack",
      "pm_password": "foo",
      "pm_addr": "10.48.50.10",
      "pm_service_profile": "org-root/org-OpenStack/ls-osmg02"
    }
  ]
}

The reported error didn't reproduce.

Comment 4 Alexander Chuzhoy 2018-08-08 18:01:34 UTC
Verifying based on comment #3

Comment 5 Joanne O'Flynn 2018-08-15 07:51:32 UTC
This bug is marked for inclusion in the errata but does not currently contain draft documentation text. To ensure the timely release of this advisory please provide draft documentation text for this bug as soon as possible.

If you do not think this bug requires errata documentation, set the requires_doc_text flag to "-".


To add draft documentation text:

* Select the documentation type from the "Doc Type" drop down field.

* A template will be provided in the "Doc Text" field based on the "Doc Type" value selected. Enter draft text in the "Doc Text" field.

Comment 7 errata-xmlrpc 2018-08-29 16:37:54 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-2018:2574