Bug 1399777 - Incorrect command shown when extracting ironic password in 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
Summary: Incorrect command shown when extracting ironic password in https://access.red...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ceph
Version: 9.0 (Mitaka)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ian Colle
QA Contact: Warren
URL:
Whiteboard:
: 1399778 1399779 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-29 17:30 UTC by Warren
Modified: 2016-11-29 18:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-29 18:18:27 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Warren 2016-11-29 17:30:43 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 1 Warren 2016-11-29 17:32:38 UTC
*** Bug 1399778 has been marked as a duplicate of this bug. ***

Comment 2 Warren 2016-11-29 17:33:16 UTC
*** Bug 1399779 has been marked as a duplicate of this bug. ***

Comment 3 Warren 2016-11-29 18:18:27 UTC
I am closing this.  I will open as a doc bug.


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