OpenStack

From EWIKI
Jump to navigation Jump to search

siehe auch: OpenStack Status

Servers

Server list

  • s01:
    • NIC 1: 192.168.2.70
    • NIC 2: 10.1.1.10
    • Ubuntu 14.04 LTS Server
    • MaaS Controller
  • s02:
    • NIC 1: PXE Boot

MaaS netw.png

Initial Steps For MaaS On s01

Prepare Network

S01: /etc/network/interfaces

# The loopback network interface
auto lo
       iface lo inet loopback
# The primary network interface
auto eth0
       iface eth0 inet static
       address 192.168.2.70
       network 192.168.2.0
       netmask 255.255.255.0
       broadcast 192.168.2.255
       gateway 192.168.2.1
       dns-nameservers 8.8.8.8 8.8.4.4
# IPv6 on primary per DHCP (fallback for static misconfigs ;-)
iface eth0 inet6 auto
# Link to nodes:
auto eth1
       iface eth1 inet static
       address 10.1.1.10
       netmask 255.255.255.0

Restart and check:

/etc/init.d/networking restart
ifup eth1
ifconfig

Check or configure route:

mh@s01:~$ sudo route add -net 10.1.1.0 netmask 255.255.255.0 dev eth1
mh@s01:~$ sudo route add default gw 192.168.2.1
mh@s01:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.2.1     0.0.0.0         UG    0      0        0 eth0
10.1.1.0        *               255.255.255.0   U     0      0        0 eth1
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0

Prepare Proper Locale

Append this to the end of the file /etc/environment:

...
LC_ALL="en_US.utf-8"

Then reboot the server

sudo reboot

Set up MaaS

sudo dpkg-reconfigure locales
sudo add-apt-repository ppa:maas/stable
sudo add-apt-repository ppa:juju/stable
sudo add-apt-repository ppa:cloud-installer/stable
sudo apt-get update

Set Up MaaS

sudo apt-get install maas

silly question for psql -- i answered "abort" -- no other chance, perhaps "ignore"?

sudo maas-region-admin createadmin

Open http://192.168.2.70/MAAS/ -> “Images”: import disk images “14.04 LTS amd64”

MaaS Configuration

Screenshot from 2016-02-12 21-46-09maas.png


Configuration templates:

# ls /etc/maas/templates/dhcp/
dhcpd6.conf.template  
dhcpd.conf.template

Results:

root@mgr01:/etc/maas# ls /var/lib/maas/ -l
total 28
drwxr-xr-x 4 maas maas 4096 Mar 19 18:05 boot-resources
drwxr-xr-x 2 root root 4096 Aug  3  2008 dhcp
-rw-r--r-- 1 root maas 1531 Aug  3  2008 dhcpd.conf
-rw-r--r-- 1 root maas    4 Aug  3  2008 dhcpd-interfaces
drwxr-xr-x 2 maas maas 4096 Apr  4 17:11 gnupg
drwxr-xr-x 3 maas maas 4096 Mar 19 17:31 media
-rw-r----- 1 maas maas   32 Mar 19 17:32 secret

Seems to be mix up in interfaces in dhcpd.conf.

Edited:

and rebooted. The PXE boot worked finally -- and node can register itself after PXE-boot at cluster.

Node Set Up

HP DL360 G5

F9 = BIOS / F8 = ILO / Stg-S = Storage Setup

  • IMPI 2.0
  • mh / q4
  • MAC: 002481a8f77a

F8 -> ILO: Shared Network Port / DHCP / mh+q / DNS Name = maas reboot -> F8 -> DHCP

Result

Took me some hours to get here:

Screenshot from 2016-02-12 21-33-42maas.png

Screenshot from 2016-02-12 21-30-32maas.png

Links