In this blog we will see in detail how an openstack environment is setup from scratch using VMware vSphere.

Prerequisites

  • VMware vSphere installed and running on the machine.
  • Mirantis fuel 5.1.1 iso image uploaded in the respective cluster.
  • Here my Host cluster is : cfx-lab-esxi03.cfxlab.com: one master node and two slave nodes should be created in same cluster.

VMware Network configuration Prerequisites:

In order to start creating the Virtual machines for Fuel-master node and slave-nodes we need to do some necessary network settings on the NICs which we will be using in order to create the master and slave nodes:

Note: The NICs should use distributed port switch in order to setup all nodes,it is advisable to use distributed port group NICs switches in order to avoid internal network conflict issue while deploying the openstack environment.

1. The NICs and their configurations which we are using in this demo installation scenario for the master node as well as the slave nodes are as below:

VLAN Network label VLAN Type VLAN Trunking range Adapter Type
VLAN_101 VLAN not applicable E1000
VLAN_102 VLAN not applicable E1000
VLAN_103 VLAN not applicable E1000
VLAN_104 VLAN Trunking 1000-1030,101,102,104 E1000

VLAN_101

Each VLAN should be a distributed port group switch as shown above.

2. On each VLAN network mentioned above, go to Inventory>Networking> VLAN_xx > edit settings>security make:

  • Promiscuous mode : Accept
  • MAC address changes : Accept
  • Forged Transmits : Accept

VLAN_102_security

3. For enabling trunking on VLAN_104 we need to make changes as below:

VLAN_104_type

VLAN_104_range

Note: Trunking is a technique used in data communications transmission systems to provide many users with access to a network by sharing multiple lines or frequencies,in our case we are using trunking on VLAN_104 to avoid address space intersection between storage, management and VM(Fixed) while configuring the interfaces on each slave node as they are placed on same eth3 port.

Now let us see in more detail how we need to install and configure openstack-icehouse version using Fuel-master node and minimum two Fuel-slave nodes.

Creating Fuel-master-node

1. We need to create one virtual machine which will act as our Fuel-Master node,the following parameters needs to be configured in order to boot the master node machine with the mirantis iso image:

  • Memory : 8 GB
  • CPUs : 4
  • Hard Disk -1: 50 GB(min.)
  • Network: 4 NICs:
  • VLAN_101
  • VLAN_102
  • VLAN_103
  • VLAN_104 Adapter type for all the four NICs will be- E1000

Note: While booting the VM with the mirantis iso image from CD/DVD drive-1 make sure that in device status the check box should be selected : connect at power on

2. After power On,the master VM will be booted and the fuel console will appear & the installation screen which says "Welcome to Fuel Installer".It will now install Fuel and reboot the server.

Fuel_screen

3. After the boot from the local disk. The Fuel menu window will start.

4. Network setup:

  • Configure eth0- PXE (Admin) network interface.
  • Ensure the default Gateway entry for the interface.
  • Select Apply.

network_screen

Note: The IP address you input here will be the IP address through which you will be able to access the Fuel web console once the setup gets installed on the master node virtual machine.

for e.g. : I have set the IP address to 172.16.103.241,and the gateway is: 172.16.103.1 so the Fuel web console will be available for me on: 172.16.103.241:8000/

5. Configure the PXE setup.

  • Enter the start and end static IP range for the slave node under the static pool for installed nodes. for e.g.: static pool start: 172.16.103.130 static pool end: 172.16.103.240

  • Enter the start and end DHCP range for the slave nodes to get discoverable. for e.g.: DHCP pool start: 172.16.103.242 DHCP pool end: 172.16.103.253

6. Hit the check button in fuel menu after entering the desired IP ranges in order to verify the settings.

7. Navigate to Quit Setup and select Save and Quit to proceed with the installation.

8. Once the Fuel installation is done, you are provided with Fuel access details. Access Fuel Web UI through 172.16.103.241:8000/

9. Use "admin" for both username and password.

10. The master- node summary can be viewed as below:

master_node_summary

Creating Fuel-slave-nodes

1. We need to create two virtual machines under the same cluster which will act as our Fuel-Slave nodes (both nodes) the following parameters needs to be configured for each slave node virtual machine in order to PXE boot each slave node machine:

  • Memory : 8 GB
  • CPUs : 2
  • Hard Disk -1: 50 GB(min.)
  • Network: 4 NICs:
  • VLAN_101
  • VLAN_102
  • VLAN_103
  • VLAN_104 Adapter type for all the four NICs will be- E1000

2. The Fuel-slave-node-1 summary will look something like this:

slave_node1_summary

3. For Fuel-slave-node-2 the same parameters needs to be configured before PXE boot of the machine.

  • Memory : 8 GB
  • CPUs : 2
  • Hard Disk -1: 50 GB(min.)
  • Network: 4 NICs:
  • VLAN_101
  • VLAN_102
  • VLAN_103
  • VLAN_104 Adapter type for all the four NICs will be- E1000

4. The fuel-slave-node-2 summary will be like this:

slave_node2_summary

5. After both the nodes are powered on they will PXE boot and will get discovered on the Fuel web console so that further we can use the slave nodes to deploy a new openstack environment.

6. Login to the Fuel web console with username and password as “admin” through:172.16.103.241:8000/

fuel_web_console

Setting up a new openstack environment

1. The following screenshots gives us a step-by-step procedure to setup a new openstack environment:

envi_1

2. Select a multi-node deployment mode if we have at least 1 controller node(slave-node-1) and 1 or more compute/cinder node(slave-node-2).

envi_2

3. Choose QEMU if we want to run openstack on virtual host

envi_3

4. Select Nova-Network for this openstack environment

envi_4

5. Keep the storage backends as Default

envi_5

6. You can just click The Next> button without selecting additional services.

envi_6

7. Press the create button to finally create a new environment

envi_7

8. So your new “Demo environment” could be seen on the Fuel web console,now here you can add the slave nodes by editing the roles for each node:

  • Fuel-slave-node-1> Controller node
  • Fuel-slave-node-2> Compute-storage node

9. Now we need to configure the interface for each slave node as below,press the apply button in order to save the interface configuration:

config_interface

10. Now go into the network tab keep the public,management,storage and Nova-network configuration values as it is without changing any value in the network tab click save settings and then press verify network:

network_1

network_2

11. Now you can press the “Deploy ” button in order to deploy the openstack environment.After deployment is done it will display the following message on fuel console screen:

deployment

12. You can access the link: 172.16.103.133/ in order to login to the openstack dashboard, use “admin” both for username and password, after login it will appear like this :

openstack_dashboard

13. After creating and launching an instance on the openstack dashboard,you will be able to see it on the openstack dashboard:

active_instance

This is how we can successfully setup Mirantis openstack environment with VMware vSphere.

To know more about Flint capabilities, visit http://www.getflint.io or share your automation requirements with us at info@infiverve.com

Flint is free to use. Download it today!

Previous Post