Difference between revisions of "Bright:CaaS"
| Line 19: | Line 19: | ||
[root@shadow-head ~] systemctl start pxehelper | [root@shadow-head ~] systemctl start pxehelper | ||
[root@shadow-head ~] systemctl enable pxehelper | [root@shadow-head ~] systemctl enable pxehelper | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | The pxehelper service uses port 8082. Unblock this port by adding the following rule to <tt>/etc/shorewall/rules</tt> and then restarting shorewall: | ||
| + | <syntaxhighlight> | ||
| + | # -- Allow pxehelper service for automatic head node installation | ||
| + | ACCEPT net fw tcp 8082 | ||
| + | |||
| + | [root@shadow-head ~] systemctl restart shorewall | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | The OpenStack images can now be created: | ||
| + | <syntaxhighlight> | ||
| + | [root@shadow-head ~] openstack image create --file /cm/local/apps/ipxe/ipxe-plain-net0.img --disk-format=raw --container-format=bare --public iPXE-plain-eth0 | ||
| + | [root@shadow-head ~] openstack image create --file /cm/local/apps/ipxe/ipxe-plain-net1.img --disk-format=raw --container-format=bare --public iPXE-plain-eth1 | ||
| + | [root@shadow-head ~] openstack image create --file /cm/local/apps/ipxe/ipxe-caas.img --disk-format=raw --container-format=bare --public ipxe-caas | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | The dnsmasq utility must now be configured. Its configuration file: <tt>/cm/shared/apps/cm-openstack-caas/etc/dnsmasq.dev.conf</tt> has two strings that need to be changed: | ||
| + | <syntaxhighlight> | ||
| + | # The string is replaced with the external IP address of the head node(s). | ||
| + | <INSERT EXTERNAL IP OF THE MACHINE RUNNING PXE HELPER HERE> | ||
| + | ... | ||
| + | # This is replaced with the FQDN of the head node (In case of HA setup with the FQDN assigned to the VIP) and with the IP address. | ||
| + | <INSERT EXTERNAL FQDN OF BUILDMATIC SERVER HERE>,<INSERT EXTERNAL IP OF BUILDMATIC SERVER HERE> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 15:05, 29 October 2015
Make sure, you've followed the Openstack installation guide and you have a working Openstack environment on your Bright cluster. (http://wiki.bostonlabs.co.uk/w/index.php?title=Bright:Openstack-install)
Installing CaaS
[root@shadow-head ~] yum install -y cm-openstack-caas cm-ipxe-caas
[root@shadow-head ~] yum update -yNext, in the file /cm/shared/apps/cm-openstack-caas/bin/Settings.py, the values of “external_dns_server” and “buildmatic_host_ip” should be edited appropriately:
'external_dns_server': '172.28.0.2'
'buildmatic_host_ip': '172.28.0.199' # this is the external ip of the head node
'pxe_helper_url': 'http://localhost:8082/chain'After the modifications are in place, the pxehelper service is started and enabled:
[root@shadow-head ~] systemctl start pxehelper
[root@shadow-head ~] systemctl enable pxehelperThe pxehelper service uses port 8082. Unblock this port by adding the following rule to /etc/shorewall/rules and then restarting shorewall:
# -- Allow pxehelper service for automatic head node installation
ACCEPT net fw tcp 8082
[root@shadow-head ~] systemctl restart shorewallThe OpenStack images can now be created:
[root@shadow-head ~] openstack image create --file /cm/local/apps/ipxe/ipxe-plain-net0.img --disk-format=raw --container-format=bare --public iPXE-plain-eth0
[root@shadow-head ~] openstack image create --file /cm/local/apps/ipxe/ipxe-plain-net1.img --disk-format=raw --container-format=bare --public iPXE-plain-eth1
[root@shadow-head ~] openstack image create --file /cm/local/apps/ipxe/ipxe-caas.img --disk-format=raw --container-format=bare --public ipxe-caasThe dnsmasq utility must now be configured. Its configuration file: /cm/shared/apps/cm-openstack-caas/etc/dnsmasq.dev.conf has two strings that need to be changed:
# The string is replaced with the external IP address of the head node(s).
<INSERT EXTERNAL IP OF THE MACHINE RUNNING PXE HELPER HERE>
...
# This is replaced with the FQDN of the head node (In case of HA setup with the FQDN assigned to the VIP) and with the IP address.
<INSERT EXTERNAL FQDN OF BUILDMATIC SERVER HERE>,<INSERT EXTERNAL IP OF BUILDMATIC SERVER HERE>