вторник, 29 октября 2013 г.

Deploy Openstack by FUEL on libvirt: pre-install network configuration

Mirantis has released FUEL 3.2 deployment automation tool for OpenStack. It has a lot of documentation and QuickStart scripts for VirtualBox, but if you prefer libvirt or may be pure KVM, you probably plunge into networking issues or need to read and understand fuel networking. I'll try to explain quick way  how to prepare networking on linux box for FUEL 3.2.

Fuel 3.2 uses 5 networks by default:
  • FUEL- pxe and puppet - 10.20.0.0/24
  • PUBLIC - public APIs and floating range - 172.16.0.0/24 (VLAN 100) - internet access
  • MANAGEMENT - internal OpenStack communications -  192.168.0.0/24 (VLAN 101)
  • STORAGE - iscsi, swift - 192.168.1.0/24 (VLAN 102)
  • FIXED - for openstack projects - 10.0.0.0/16 (VLAN 103 or VLAN range)
You could cultivate all networks in single linux bridge. But it need some magic like routing, NAT and DNS.

1) create bridge
brctl addbr br0
ip link set up dev br0

2) add address and DNS forwarding server. 10.20.0.1 is used by default as dns server.
ip addr add 10.20.0.1/24 dev br0
dnsmasq -a 10.20.0.1

3) add VLAN interface, add gateway and configure NAT for PUBLIC network
ip link add link br0 name br0.100 type vlan id 100
ip link set up br0.100
ip addr add 172.16.0.1/24 dev br0.100
iptables -t nat -A POSTROUTING -s 172.16.0.0/24 ! -d 172.16.0.0/24 -j MASQUERADE

4) You should create VMs w/ single interface attached to br0.

After that install Fuel master node from iso. And follow steps in documentation.

Комментариев нет:

Отправить комментарий