This is the presentation materials of Japanese OCDET of bare metal computing meeting.
In "GMO AppsCloud" of GMO Internet, Inc., by modifying the nova Baremetal compute of OpenStack Havana so as to drive the Ansible, by installing the OS in the cobbler, has commercialized the environment to start with disk boot loader.
21. GMOアプリクラウドでのOpenStack Baremetal
nova boot seq: 2) generate data(host_vars)
for Ansible on
bare-comp node
Ansibleのdataで読み込まれるyaml data(host_vars)を生成
- root pw, ssh public key, VLAN(ext, int), IP address(ext, int),
Flavor(host type), Image(OS type), target node(IPMI IP addr)
22. GMOアプリクラウドでのOpenStack Baremetal
nova boot seq: 3) copy Ansible host_var.yaml
to cobbler node
Ansibleのdataで読み込まれるyaml dataをcobbler nodeのansible
playbook 領域にコピー
./baremetal/ansible/host_vars/<host_name>.yml
23. GMOアプリクラウドでのOpenStack Baremetal
nova boot seq: 4) exec cobbler system add
cobblerにsystemオブジェクトの登録(OSの選定)
cobbler system add -‒name=<host_name>
--profile=<OS_type_kick_profile> --interface=eth0 -‒mac=<MAC>
cobbler sync (pxe boot情報更新)
24. GMOアプリクラウドでのOpenStack Baremetal
nova boot seq: 5) exec Ansible playbook on
cobbler node
Ansibleが実行される
実行時のinventoryは cobbler dynamic inventory を用いる
./baremetal/ansible/host_vars/<host_name>.yml
25. GMOアプリクラウドでのOpenStack Baremetal
nova boot seq: 6) (in Ansible) lldptool network
Switch discovery
and SW setup
(Ansible) cobblerでOSインストール後、再起動
lldpadを起動、lldptool で SW の {SW hostname, sw IP, Port ID} 情報
を取得、SW設定APIをcallして、SWのallowed VLANにVLAN(ext, int)の
許可する設定をいれる
26. GMOアプリクラウドでのOpenStack Baremetal
nova boot seq: 7) (in Ansible) setting up OS
bonding network
and VLAN(ext, int)
(Ansible) SWの設定が終わったら、OSのbonding設定、
VLAN(ext, int)の設定を投入、疎通を確認する
>> ioDrive2などoptionがある場合には、ここでセットアップ、マウントする
27. GMOアプリクラウドでのOpenStack Baremetal
nova boot seq: 8) (in Ansible) configuration
test (serverspec)
(Ansible) VLAN dhcpをallowed VLANから外して、再起動。
設定、ネットワークの疎通など確認をserverspecなどで実行、
検品できたら、nova bootのstatusを ACTIVE にする