radeksmg

TripleO with Deployed Servers

Oct 8th, 2019
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. deployed-server/README.rst
  2.  
  3. mkdir ~/tmp
  4.  
  5. yum install -y libvirt-devel.x86_64 python-virtualenv.noarch gcc python-devel.x86_64
  6. virtualenv ~/tmp/venv-virtualbmc
  7. source ~/tmp/venv-virtualbmc/bin/activate
  8. pip install virtualbmc
  9.  
  10. /root/tmp/venv-virtualbmc/bin/vbmcd
  11.  
  12. vbmc add --username user --password password --port 4001 --address 10.5.202.10 radek-01
  13. vbmc add --username user --password password --port 4001 --address 10.75.225.98 radek-01
  14. vbmc start radek-01
  15. vbmc list
  16.  
  17. iptables -A IN_public_allow -p udp -m udp --dport 4001 -m conntrack --ctstate NEW -j ACCEPT
  18.  
  19. ipmitool -I lanplus -U user -P password -H 10.5.202.10 -p 4001 power status
  20. ipmitool -I lanplus -U user -P password -H 10.5.202.10 -p 4001 power on
  21.  
  22. ipmitool -I lanplus -U user -P password -H 10.75.225.98 -p 4001 power on
  23. ipmitool -I lanplus -U user -P password -H 10.75.225.98 -p 4001 power status
  24.  
  25.  
  26. # Examples:
  27. # https://docs.openstack.org/kolla-ansible/rocky/reference/ironic-guide.html
  28. openstack baremetal node create \
  29. --name server-r \
  30. --driver ipmi \
  31. --driver-info ipmi_address=10.75.225.98 \
  32. --driver-info ipmi_port=4001 \
  33. --driver-info ipmi_username=user \
  34. --driver-info ipmi_password=password \
  35. --resource-class baremetal.OvsCompute \
  36. --property cpu_arch=x86_64 \
  37. --driver-info deploy_kernel=a635a48d-4949-4515-8699-aa618243a235 \
  38. --driver-info deploy_ramdisk=3258cc1d-ca36-4afb-b361-1bad908246bf
  39.  
  40. openstack baremetal node manage server-r
  41. openstack baremetal node inspect server-r
  42.  
  43. openstack baremetal node provide server-r
Advertisement
Add Comment
Please, Sign In to add comment