Bug 1382017 - Documentation issues on JSON file newnodes.json
Summary: Documentation issues on JSON file newnodes.json
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: documentation
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Dan Macpherson
QA Contact: RHOS Documentation Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-05 14:13 UTC by Julio Villarreal
Modified: 2017-05-12 03:08 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-01 04:48:32 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Julio Villarreal 2016-10-05 14:13:02 UTC
Description of problem:
Documentation bug at https://access.redhat.com/documentation/en/red-hat-openstack-platform/8/paged/director-installation-and-usage/chapter-9-scaling-the-overcloud

at section 9.1. ADDING COMPUTE OR CEPH STORAGE NODES on the newnodes.json file. 

Version-Release number of selected component (if applicable):
RH OSP 8.0 director documentation.

How reproducible:
100%

Steps to Reproduce:
1. JSON file format is wrong. Import fails. 
2.
3.

Actual results:
File example is :


{
"nodes":[
    {
        "mac":[
            "dd:dd:dd:dd:dd:dd"
        ],
        "cpu":"4",
        "memory":"6144",
        "disk":"40",
        "arch":"x86_64",
        "pm_type":"pxe_ipmitool",
        "pm_user":"admin",
        "pm_password":"p@55w0rd!",
        "pm_addr":"192.0.2.207"
    },
    {
        "mac":[
            "ee:ee:ee:ee:ee:ee"
        ],
        "cpu":"4",
        "memory":"6144",
        "disk":"40",
        "arch":"x86_64",
        "pm_type":"pxe_ipmitool",
        "pm_user":"admin",
        "pm_password":"p@55w0rd!",
        "pm_addr":"192.0.2.208"
    },
]
}

Expected results:
File should not contain a comma at the end of the last json object : 

{
"nodes":[
    {
        "mac":[
            "dd:dd:dd:dd:dd:dd"
        ],
        "cpu":"4",
        "memory":"6144",
        "disk":"40",
        "arch":"x86_64",
        "pm_type":"pxe_ipmitool",
        "pm_user":"admin",
        "pm_password":"p@55w0rd!",
        "pm_addr":"192.0.2.207"
    },
    {
        "mac":[
            "ee:ee:ee:ee:ee:ee"
        ],
        "cpu":"4",
        "memory":"6144",
        "disk":"40",
        "arch":"x86_64",
        "pm_type":"pxe_ipmitool",
        "pm_user":"admin",
        "pm_password":"p@55w0rd!",
        "pm_addr":"192.0.2.208"
    }
]
}

Additional info:

Please remove the comma after the last node definition.

Comment 2 Dan Macpherson 2016-10-19 03:45:42 UTC
Hi Julio,

The comma should be removed and the JSON file should be correct now.

Was there anything else requires for this BZ?

Comment 3 Dan Macpherson 2016-12-01 04:48:32 UTC
No response in over a month. Closing this BZ.


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