Bug 1211474

Summary: CLI node registration doesn't support instackenv file
Product: [Community] RDO Reporter: Jaromir Coufal <jcoufal>
Component: rdo-manager-cliAssignee: Ana Krivokapic <akrivoka>
Status: CLOSED DUPLICATE QA Contact: Ami Jeain <ajeain>
Severity: high Docs Contact:
Priority: medium    
Version: trunkCC: yeylon
Target Milestone: ---   
Target Release: Kilo   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-05 13:25:27 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:
Embargoed:

Description Jaromir Coufal 2015-04-14 05:37:38 UTC
Description of problem:
instackenv.json file starts the set of nodes with following structure:
{
  nodes: [...]
}
which is not accepted by parser.


Version-Release number of selected component (if applicable):
Master


How reproducible:
100 %


Steps to Reproduce:
1. Install RDO-Manager via instack using virtual environment
2. Try to register nodes with unified CLI using instackenv.json file


Actual results:
Parsing error.


Expected results:
Any file containing list named "nodes" will be accepted.


Additional info:
See https://repos.fedorapeople.org/repos/openstack-m/instack-undercloud/html/baremetal-setup.html for example structure of the file.

"openstack baremetal import --json" should support both file structures:
* simple list starting with `[]`
* any list starting with `nodes: []`

Comment 1 Ana Krivokapic 2015-05-05 13:25:27 UTC

*** This bug has been marked as a duplicate of bug 1209153 ***