Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1327866 - [RFE] Ironic properties/root_device allow "name" hint for deployment
[RFE] Ironic properties/root_device allow "name" hint for deployment
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic (Show other bugs)
8.0 (Liberty)
Unspecified Unspecified
medium Severity unspecified
: ga
: 9.0 (Mitaka)
Assigned To: Lucas Alvares Gomes
Raviv Bar-Tal
: FutureFeature, OtherQA, TestOnly, ZStream
Depends On:
Blocks: 1418556
  Show dependency treegraph
 
Reported: 2016-04-16 23:56 EDT by Andreas Karis
Modified: 2017-02-01 23:58 EST (History)
8 users (show)

See Also:
Fixed In Version: openstack-ironic-5.1.2-3.el7ost
Doc Type: Enhancement
Doc Text:
With this update, a new enhancement allows finding a suitable disk device for the Bare Metal Provisioning service to deploy the image onto by using its name or path. Some devices have persistent names (for example, RAID) and this new feature allows operators to use these names instead of having to use the disk WWN, serial, model names and so on.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-24 08:53:33 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:1761 normal SHIPPED_LIVE Red Hat OpenStack Platform 9 General Availability Advisory 2016-08-24 12:49:52 EDT

  None (edit)
Description Andreas Karis 2016-04-16 23:56:58 EDT
Description of problem:
Specify a hint according to:

http://docs.openstack.org/developer/ironic/deploy/install-guide.html#specifying-the-disk-for-deployment


It seems that "name" hints will work only for introspection (if at all) -> introspection succeeds and it seems that correct disk gets selected, but when deploying the actual instance, the following happens:

/var/log/ironic/ironic-api.log
InstanceDeployFailure: RPC do_node_deploy failed to validate deploy or power info. Error: The hints "name" are invalid. Valid hints are: "model, wwn, vendor, serial, size"

Version-Release number of selected component (if applicable):
openstack-ironic-api-4.2.2-4.el7ost.noarch

How reproducible:
All the time

Steps to Reproduce:

export IRONIC_DISCOVERD_PASSWORD=`sudo grep admin_password /etc/ironic-inspector/inspector.conf | egrep -v '^#'  | awk '{print $NF}'`


for node in $(ironic node-list | grep -v UUID| awk '{print $2}');

  do swift -U service:ironic -K $IRONIC_DISCOVERD_PASSWORD download ironic-inspector extra_hardware-$node;

done


for f in extra_hardware-*;

  do cat $f | jq -r 'map(select(.[0]=="disk" and .[1]=="vda"))';

done

e.g.:
[stack@undercloud ~]$ cat extra_hardware-6a4546be-7623-4fb8-a913-01b55c5bba01  | jq -r 'map(select(.[0]=="disk" and .[1]=="vda"))';
[
  [
    "disk",
    "vda",
    "size",
    "64"
  ],
  [
    "disk",
    "vda",
    "vendor",
    "0x1af4"
  ],
  [
    "disk",
    "vda",
    "optimal_io_size",
    "0"
  ],
  [
    "disk",
    "vda",
    "physical_block_size",
    "512"
  ],
  [
    "disk",
    "vda",
    "rotational",
    "1"
  ]
]



Specify a hint according to:

http://docs.openstack.org/developer/ironic/deploy/install-guide.html#specifying-the-disk-for-deployment


Attention: "name" hints will work only for introspection

e.g.:

ironic node-update <node-uuid> add properties/root_device='{"name": "/dev/vda"}'

for i in {1..3};do ironic node-update overcloud-ceph$i add properties/root_device='{"name": "/dev/vda"}';done

InstanceDeployFailure: RPC do_node_deploy failed to validate deploy or power info. Error: The hints "name" are invalid. Valid hints are: "model, wwn, vendor, serial, size"

Actual results:
InstanceDeployFailure: RPC do_node_deploy failed to validate deploy or power info. Error: The hints "name" are invalid. Valid hints are: "model, wwn, vendor, serial, size"

Expected results:
success

Additional info:
Comment 2 Lucas Alvares Gomes 2016-05-16 06:29:45 EDT
The feature was added as part of the mitaka release upstream [0]. For OSP it will be included in the version 9.

[0] http://docs.openstack.org/releasenotes/ironic/mitaka.html#id5
Comment 8 errata-xmlrpc 2016-08-24 08:53:33 EDT
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://rhn.redhat.com/errata/RHEA-2016-1761.html

Note You need to log in before you can comment on or make changes to this bug.