23
Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 1 DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide

DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

  • Upload
    doxuyen

  • View
    278

  • Download
    0

Embed Size (px)

Citation preview

Page 1: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 1

DEPLOYMENT GUIDE

Infoblox OpenStack Driver Deployment Guide

Page 2: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 2

Table of Contents

1 Install Dependencies ................................................................................................. 3 1.1 Install neutron-lib ...........................................................................................................3

2 Install Infoblox Driver and Migrate DB .................................................................... 3 2.1 Install Infoblox OpenStack Driver ................................................................................3

2.1.1 Installing Infoblox Openstack Driver on Liberty OpenStack ...................................... 3 2.2 Installing Infoblox Driver on Mitaka and Newton .......................................................3 2.3 Migrate DB ......................................................................................................................3

3 Modify Open Stack Configuration ........................................................................... 4 3.1 Add Infoblox NIOS Configuration to neutron.conf ....................................................4

3.1.1 Add Infoblox Configuration ............................................................................................. 4 3.1.2 Enable Notifications ......................................................................................................... 4

3.2 Change OpenStack nova.conf ......................................................................................5 3.2.1 Add Notifications in nova.conf ........................................................................................ 5

4 Run Infoblox Script to create Extensible Attributes ............................................. 5 4.1 Execute create_ea_defs.py ...........................................................................................5

5 Starting Infoblox OpenStack Agent ......................................................................... 6 5.1 Starting Infoblox IPAM Agent Manually ......................................................................6 5.2 Starting Infoblox IPAM Agent through init.d ..............................................................6

6 Restart services as specified in user guide ........................................................... 7

7 Create Network in Open Stack ................................................................................. 7 7.1 Create the network in OpenStack ................................................................................7 7.2 Create subnet .................................................................................................................8 7.3 Validate that Network has been created in NIOS ..................................................... 10

8 Create a VM Instance in OpenStack ...................................................................... 12 8.1 Create a VM Instance ....................................................................................................... 12 8.2 Check VM IP Registration in NIOS ..................................................................................... 12

9 DNS Registration .......................................................................................................... 13 9.1 Create DNS Authorized Zone in NIOS ................................................................................ 13 9.2 Create Reverse Zone in NIOS ............................................................................................ 15 9.3 Create Network in OpenStack .......................................................................................... 18 9.4 Launch VM Instance ......................................................................................................... 20

9.4.1 Check NIOS to see if the DNS name has been registered ..................................................... 22

Page 3: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3

1 Install Dependencies

This section describes the dependencies that need to be installed before installing the

Infoblox OpenStack Driver.

1.1 Install neutron-lib

If neutron lib is not installed, install it using the command -

$ sudo pip install neutron-lib

2 Install Infoblox Driver and Migrate DB This section describes the steps to install the Driver and migrate the DB.

2.1 Install Infoblox OpenStack Driver

The driver needs to be installed on each controller node that is running the Neutron

service. Before installing the Infoblox OpenStack Driver, check the OpenStack version

on the setup.

2.1.1 Installing Infoblox OpenStack Driver on Liberty OpenStack

For installing Infoblox Driver on OpenStack Liberty, use the command –

$ sudo pip install networking-infoblox==7.0.0

2.2 Installing Infoblox Driver on Mitaka and Newton For installing Infoblox Driver on OpenStack Mitaka and Newton, use the command

$ sudo pip install networking-infoblox

2.3 Migrate DB

Infoblox OpenStack driver uses a number of different Infoblox-specific tables to manage

the integration. These are created by running the neutron-db-manage after you install

the networking_infoblox module:

$ sudo neutron-db-manage upgrade head

Page 4: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 4

3 Modify Open Stack Configuration

This section describes the changes that need to be made to OpenStack configuration

files so that Infoblox Driver gets invoked.

3.1 Add Infoblox NIOS Configuration to neutron.conf

Infoblox configuration needs to be added to /etc/neutron/neutron.conf on each

controller node.

3.1.1 Add Infoblox Configuration Add the following configuration to neutron.conf. Changes marked in green below have been added to the configuration file. Replace values in CAPS the values used for your installation [DEFAULT]

ipam_driver = infoblox [infoblox] cloud_data_center_id = 1 [infoblox-dc:1] grid_master_host = GRID_MASTER_HOST grid_master_name = GRID_MASTER_NAME admin_user_name = USER admin_password = PASSWORD wapi_version = 2.2.2 wapi_max_results = -50000

3.1.2 Enable Notifications

In addition to the options referenced above, you must also enable the notifications

options within Neutron (if they are not already enabled) in the file neutron.conf

[DEFAULT]

notification_driver = messagingv2

notification_topics = notifications

Page 5: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 5

3.2 Change OpenStack nova.conf

This section describes the changes that need to be made to /etc/nova/nova.conf on

each compute node.

3.2.1 Add Notifications in nova.conf

Add the following changes, in green, in nova.conf if they are not already enabled.

[DEFAULT] notification_driver = messagingv2 notification_topics = notifications notify_on_state_change = vm_state

4 Run Infoblox Script to create Extensible Attributes

This section describes the script that is used to create OpenStack Extensible Attributes

in NIOS.

4.1 Execute create_ea_defs.py

Execute the create_ea_defs.py script to populate the required Extensible Attributes

(EA’s) in NIOS. Example:

$ cd /usr/local/lib/python2.7/dist-packages/networking_infoblox/tools/ $ python create_ea_defs.py

Note: If more than one Network View has been configured in NIOS, you will be prompted if you want to associate the Driver with one or more. Example:

Associating/Unassociating network views for OpenStack...

--------------------------------------------------------------------------------

Found 5 network views from the grid.

Please type 'a' to associate network views, 'u' to unassociate. Enter 'a' or 'u': a

Do you want to list network views? Enter 'y' or 'n': y

default, test1

Please provide a comma separated list of network views: default

Page 6: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 6

2017-03-21 15:14:48.472 53538 INFO infoblox_client.objects [-] Infoblox object

was updated: networkview/ZG5zLm5ldHdvcmtfdmlldyQw:default/true

5 Starting Infoblox OpenStack Agent

This section describes how to run the Infoblox OpenStack Agent.

5.1 Starting Infoblox IPAM Agent Manually

Infoblox IPAM agent can be started manually using the command -

$ /usr/local/bin/infoblox-ipam-agent --config-file /etc/neutron/neutron.conf --config-file\ /etc/neutron/plugins/ml2/ml2_conf.ini >/var/log/neutron/infoblox-ipam-agent.log 2>&1

5.2 Starting Infoblox IPAM Agent through init.d

Depending on your distribution, create and configure init.d and/or system service

definitions for the infoblox-ipam-agent.

Page 7: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 7

6 Restart services as specified in user guide Restart Neutron and Compute Services

$ sudo service neutron-server restart $ sudo service nova-compute restart

7 Create Network in Open Stack

Infoblox OpenStack driver has been integrated with OpenStack, network creation and deletion operations in OpenStack are handled by the Infoblox Driver. When a VM is provision and is assigned an address on the network, it is registered with NIOS.

7.1 Create the network in OpenStack

1. Log in to the Horizon UI. 2. Switch to the System -> Networks tab. 3. Click + Create Network. 4. Enter the details for the network and click Create Network.

Page 8: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 8

7.2 Create subnet

1. Click on the name for your network.

2. Click + Create Subnet.

3. Enter the details for your subnet. 4. Click Next.

Page 9: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 9

5. Enter a start and end address for a DHCP range (comma separated). 6. Optional: Enter an IP address for DNS Name Servers and Host Routes. 7. Click Create. The network should now appear in NIOS.

Page 10: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 10

7.3 Validate that Network has been created in NIOS

This section describes how to validate that network has been created in NIOS

1. Log in to your Infoblox Grid Manager GUI.

2. Switch to the Data Management -> IPAM tab.

3. Click on the refresh button:

4. Verify that the network is now displayed

Page 11: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 11

5. Edit the properties for the network.

6. Switch to the Extensible Attributes panel.

7. Review the Extensible Attributes that were populated for your network.

8. Close the properties window.

9. Click on the link for the network.

10. Review the IPAM details for the subnet.

Page 12: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 12

8 Create a VM Instance in OpenStack This section describes that when a VM instance is created in OpenStack, now its address will be registered in Infoblox IPAM.

8.1 Create a VM Instance Create a VM Instance and use the network created above -

8.2 Check VM IP Registration in NIOS

Check Grid Manager UI to confirm that VM address has been registered in NIOS.

Page 13: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 13

9 DNS Registration

9.1 Create DNS Authorized Zone in NIOS Create the DNS Zone as per your EA configuration. By default EA has cloud.global.com as the

DNS zone.

Page 14: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 14

Add name server to handle the zone

Page 15: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 15

It will prompt to Restart the Grid services, click on Restart

This will create the zone in NIOS

9.2 Create Reverse Zone in NIOS

Page 16: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 16

Add name server

Page 17: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 17

DNS registration can be enabled by setting, EA “DNS Support” to true and “DHCP Support” to

true.

Page 18: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 18

9.3 Create Network in OpenStack Create a New Network

Page 19: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 19

Page 20: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 20

9.4 Launch VM Instance

Launch a VM instance that uses the created network

Page 21: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 21

Page 22: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 22

Keeping other values at default, Launch the instance

9.4.1 Check NIOS to see if the DNS name has been registered

Page 23: DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide · Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 3 1 Install Dependencies This section describes

Infoblox OpenStack Driver Deployment Guide. Copyright © Infoblox 2017. 23

Check NIOS to see if the DNS name has been registered