Ironic virt driver should not JSON encode traits in instance_info
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Mark Goddard | ||
Queens |
Fix Committed
|
Low
|
Mark Goddard |
Bug Description
As of queens, the ironic virt driver pushes traits set on the flavor to the ironic node's instance_info during instance spawn. This list of traits is currently encoded as a JSON string, inside the JSON-encoded instance_info. We should not use this double layer of JSON encoding, as ironic expects instance_
Steps to reproduce
==================
Add a trait to an ironic node:
openstack baremetal node add trait <node> <trait>
Add a required trait to a flavor:
openstack flavor set <flavor> --property 'trait:
Create an instance using this flavor:
openstack server create ...
Expected result
===============
Nova sets the node's instance_
Actual result
=============
Nova sets the node's instance_
Environment
===========
Nova stable/queens @ 01b756f960ed19a
Changed in nova: | |
assignee: | nobody → Mark Goddard (mgoddard) |
Fix proposed to branch: master /review. openstack. org/543574
Review: https:/