DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide ?· Infoblox OpenStack Driver Deployment…

Embed Size (px)

Text of DEPLOYMENT GUIDE Infoblox OpenStack Driver Deployment Guide ?· Infoblox OpenStack Driver...

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

    DEPLOYMENT GUIDE

    Infoblox OpenStack Driver Deployment Guide

  • 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

  • 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

  • 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

  • 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

    (EAs) 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

  • 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.

  • 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 Sys