OpenStack: instackenv.json Format Example

stack-example

Here is a quick and dirty example of the format of your instackenv.json. This is the file that Ironic uses to import nodes.

Enter your IPMI user id under “pm_user”

Enter your IPMI password under “pm_password”

 

[code language=”css”]
{
"nodes":[
{
"mac":[
"74:E6:E2:FB:71:B0"
],
"cpu":"4",
"memory":"6144",
"disk":"40",
"arch":"x86_64",
"name":"control01",
"pm_type":"pxe_ipmitool",
"pm_user":"admin",
"pm_password":"admin",
"pm_addr":"10.75.99.120"
},
{
"mac":[
"74:E6:E2:FB:71:D6"
],
"cpu":"4",
"memory":"6144",
"disk":"40",
"arch":"x86_64",
"name":"control02",
"pm_type":"pxe_ipmitool",
"pm_user":"admin",
"pm_password":"admin",
"pm_addr":"10.75.99.119"
},
{
"mac":[
"74:E6:E2:FB:73:D0"
],
"cpu":"4",
"memory":"6144",
"disk":"40",
"arch":"x86_64",
"name":"control03",
"pm_type":"pxe_ipmitool",
"pm_user":"admin",
"pm_password":"admin",
"pm_addr":"10.75.99.118"
},
{
"mac":[
"74:E6:E2:FB:27:D4"
],
"cpu":"4",
"memory":"6144",
"disk":"40",
"arch":"x86_64",
"name":"compute01",
"pm_type":"pxe_ipmitool",
"pm_user":"admin",
"pm_password":"admin",
"pm_addr":"10.75.99.117"
},
]
}
[/code]

Advertisements

3 thoughts on “OpenStack: instackenv.json Format Example

  1. Hi Christopher ,
    Nice blog, Thank you for posting. What would be the command if i have VM running on ESXI , assigned to become compute node? openstack baremetal import –json ~/instackenv.json . What has to be replaced with the word “baremetal” ?

    • “Baremetal” just means that you are running an OpenStack command for Ironic. This command structure is part of the unified cli for openstack. So baremetal just means “run and ironic command”

  2. Can I assume that the command “openstack baremetal import –json ~/instackenv.json ” can work for ESXi as well ? In my case, I have 3 nodes 1 director running as one VM , and 2 nodes 1 Controller and 1 Compute. However, Controller and Computes are not getting provisioned and throwing an error.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.