ironic / bifrost

# load env
. /opt/stack/bifrost/env-vars
 
# list nodes
ironic node-list
 
# remove / shutdown existing node
ironic node-set-provision-state foo.example.com deleted
 
# load node configuration
export BIFROST_INVENTORY_SOURCE=/opt/openstack-prepare-baremetal/bifrost/json/foo.example.com.json
 
# add new node
ansible-playbook -i inventory/bifrost_inventory.py enroll-dynamic.yaml
ironic node-update foo.example.com add properties/capabilities='boot_mode:uefi'
 
# deploy
ansible-playbook -v -i inventory/bifrost_inventory.py deploy-dynamic.yaml
 
# show node details
ironic node-show foo.example.com
 
# cli
#ironic node-set-maintenance 00000000-0000-0000-0000-112233445566 on
openstack baremetal node maintenance set ${NODE_UUID}
 
ironic node-delete 00000000-0000-0000-0000-112233445566
ironic node-list
 
ironic node-set-power-state  00000000-0000-0000-0000-112233445566 on
 
ironic node-set-maintenance ${NODE} on
ironic node-delete ${NODE}
ansible-playbook -i inventory/bifrost_inventory.py enroll-dynamic.yaml
ironic node-update ${NODE add properties/capabilities='boot_mode:uefi'
ansible-playbook -i inventory/bifrost_inventory.py deploy-dynamic.yaml
 
# log (on ironic server)
tail -f /var/log/daemon.log
 
# show node state
ironic node-show  node1
 
# rebuild
ironic node-set-provision-state ${NODE} rebuild