Bug 1399791

Summary: IRONIC_DISCOVERD_PASSWORD set incorrectly in doc.
Product: Red Hat OpenStack Reporter: Warren <wusui>
Component: documentationAssignee: Dan Macpherson <dmacpher>
Status: CLOSED CURRENTRELEASE QA Contact: RHOS Documentation Team <rhos-docs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: dmacpher, srevivo, wusui
Target Milestone: ---Keywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-17 06:30:48 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 Warren 2016-11-29 18:20:15 UTC
Description of problem:
Incorrect command shown when extracting ironic password in 
The following doc has an incorrect command.

https://access.redhat.com/documentation/en/red-hat-openstack-platform/9/paged/red-hat-ceph-storage-for-the-overcloud/chapter-2-creating-an-overcloud-with-ceph-storage-nodes

The line in section 2.5 that reads:

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

should be:

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

See this page for the correct command:

https://access.redhat.com/documentation/en/red-hat-openstack-platform/9/single/director-installation-and-usage/#sect-Completing_the_Undercloud_Configuration

How reproducible:
100% of the time

Steps to Reproduce:

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

returns

admin=XXX

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

returns

XXX (what we want)

Comment 2 Dan Macpherson 2017-01-17 06:30:48 UTC
This should now be included with the OSP9 doc.

Closing this BZ. If further changes are required, please feel free to reopen this BZ.