Bug 1394464

Summary: Typo in command for setting deploy_kernel and deploy_ramdisk images
Product: Red Hat OpenStack Reporter: Punit Kundal <pkundal>
Component: documentationAssignee: Dan Macpherson <dmacpher>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 10.0 (Newton)CC: dmacpher, srevivo
Target Milestone: ---Keywords: Documentation
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 16:22:46 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:

Description Punit Kundal 2016-11-12 10:29:46 UTC
Description of problem:

While scaling out an OSP deployment, we have to specify deploy_kernel and deploy_ramdisk images for the node.

For this purpose, we need to use "openstack baremetal node set" command

Documentation for osp 10 beta specifies this command as 

openstack baremetal node set --driver_info deploy_kernel='09b40e3d-0382-4925-a356-3a4b4f36b514' [NODE UUID]

upon running it: 

openstack baremetal node set --driver_info deploy_kernel='4f7f59f8-f5c1-4b3c-8a24-cfe39521a2a4' d2e18776-9bae-4977-bca7-72807da32106

It fails as below:

usage: openstack baremetal node set [-h] [--instance-uuid <uuid>]
                                    [--name <name>] [--driver <driver>]
                                    [--network-interface <network_interface>]
                                    [--resource-class <resource_class>]
                                    [--target-raid-config <target_raid_config>]
                                    [--property <key=value>]
                                    [--extra <key=value>]
                                    [--driver-info <key=value>]
                                    [--instance-info <key=value>]
                                    <node>
openstack baremetal node set: error: unrecognized arguments: --driver_info d2e18776-9bae-4977-bca7-72807da32106

The correct command is 

openstack baremetal node set --driver-info deploy_kernel='4f7f59f8-f5c1-4b3c-8a24-cfe39521a2a4' d2e18776-9bae-4977-bca7-72807da32106

So the "_" in "--driver_info" should be replaced with "-" i.e. "--driver-info"

Link to documentation:
https://access.redhat.com/documentation/en/red-hat-openstack-platform/10-beta/paged/director-installation-and-usage/chapter-7-scaling-the-overcloud

Section 7.1 Adding Additional Nodes