Bug 1655776

Summary: Incorrect capabilities handling on node update (OSP-14)
Product: Red Hat OpenStack Reporter: Bob Fournier <bfournie>
Component: openstack-tripleo-commonAssignee: Dmitry Tantsur <dtantsur>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: bfournie, dtantsur, mburns, sasha, slinaber
Target Milestone: z1Keywords: Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-common-9.4.1-0.20181012010891.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1647931 Environment:
Last Closed: 2019-03-18 13:03:24 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: 1647931    
Bug Blocks:    

Description Bob Fournier 2018-12-03 21:40:22 UTC
+++ This bug was initially created as a clone of Bug #1647931 +++

Capabilities provided as a dict are not converted into string representation.

Comment 4 Bob Fournier 2019-03-04 18:07:42 UTC
Sasha - see the original bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1647931#c10

Comment 5 Alexander Chuzhoy 2019-03-04 22:35:32 UTC
Verified:


Environment:
openstack-tripleo-common-9.4.1-0.20190119050432.261de49.el7ost.noarch

(undercloud) [stack@undercloud-0 ~]$ openstack baremetal node show controller-1 -c properties
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                         |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
| properties | {u'memory_mb': u'20480', u'cpu_arch': u'x86_64', u'local_gb': u'39', u'cpus': u'4', u'capabilities': u'profile:controller,boot_option:local'} |
+------------+-----------------------------------------------------------------------------------------------------------------------------------------------+


Added the following line under controller-1 in instackenv.json:
      "capabilities": {"profile": "controller", "boot_option": "local", "boot_mode": "uefi"},

Executed "openstack overcloud node import instackenv.json"


(undercloud) [stack@undercloud-0 ~]$ openstack baremetal node show controller-1 -c properties
+------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field      | Value                                                                                                                                                        |
+------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| properties | {u'memory_mb': u'20480', u'cpu_arch': u'x86_64', u'local_gb': u'40', u'cpus': u'4', u'capabilities': u'profile:controller,boot_mode:uefi,boot_option:local'} |
+------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------+

Comment 7 errata-xmlrpc 2019-03-18 13:03:24 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-2019:0446