Openstack Walkthrough-----08-Compute Node Neutron configuration

Source: Internet
Author: User

Neutron component Installation

[email protected] ~]# Yum install Openstack-neutron-linuxbridge ebtables ipset

Configuring Common Components

Networking Common components configuration includes authentication mechanisms, Message Queuing, and plug-ins

Edit the "/etc/neutron/neutron.conf" file and complete the following:

    • In the ' [Database] ' section, note all ' connection ' items because the compute nodes do not directly access the database.

    • In the ' [DEFAULT] ' section, configure the ' RabbitMQ ' Message Queue access rights:

Transport_url = Rabbit://openstack:[email protected]
    • In the "[DEFAULT]" and "[Keystone_authtoken]" sections, configure authentication Service access:

Auth_strategy = Keystoneauth_uri = Http://192.168.56.11:5000auth_url = Http://192.168.56.11:35357memcached_servers = 192.168.56.11:11211auth_type = Passwordproject_domain_name = Defaultuser_domain_name = Defaultproject_name = Serviceusername = Neutronpassword = Neutron

in the [oslo_concurrency] section, configure the lock path:

Lock_path =/var/lib/neutron/tmp

Configure calculations using of network services

Configuring the Linuxbridge Agent

The configuration and control nodes are the same here, so we have a copy of the control node configuration.

[Email protected] ~]# Scp/etc/neutron/plugins/ml2/linuxbridge_agent.ini 192.168.56.12:/etc/neutron/plugins/ml2/[ Email protected] ' s Password:linuxbridge_agent.ini

Edit the '/etc/nova/nova.conf ' file and do the following:

    • In the ' [Neutron] ' section, configure the Access parameters:

[Neutron]url = Http://192.168.56.11:9696auth_url = Http://192.168.56.11:35357auth_type = Passwordproject_domain_name = Defaultuser_domain_name = Defaultregion_name = Regiononeproject_name = Serviceusername = Neutronpassword = Neutron

Installation Complete

Restart COMPUTE Service:

[[email protected] ~]# systemctl restart Openstack-nova-compute.service[[email protected] ~]# PS Aux|grep NovaNova 21      400 56.7 6.9 1661432 130576? SSL 23:19 0:11/usr/bin/python2/usr/bin/nova-computeroot 21433 0.0 0.0 112644 952 pts/0 s+ 23:19 0:00 grep--color=auto Nova

Start the Linuxbridge agent and configure it to boot from:

[Email protected] ~]# systemctl enable neutron-linuxbridge-agent.servicecreated symlink from/etc/systemd/system/ Multi-user.target.wants/neutron-linuxbridge-agent.service to/usr/lib/systemd/system/ Neutron-linuxbridge-agent.service. [Email protected] ~]# systemctl start Neutron-linuxbridge-agent.service

Validation services

We see whether the compute nodes are received from the control node:

[[email protected] ~]# neutron agent-list+--------------------------------------+--------- -----------+-------------+-------------------+-------+----------------+---------------------------+| id                                     |  agent_type         | host         | availability_zone | alive | admin_state_up | binary                      |+--------------------------------------+--------------------+-------------+-------------------+-- -----+----------------+---------------------------+| 030154d2-c9ad-4af1-91db-ea1bf01bb99f |  Metadata agent     | linux-node1 |                    | :-)    | True            | neutron-metadata-agent    | |  27e1ee2f-6224-4a79-b3a5-ad0f46e59c4a | DHCP agent          | linux-node1 | nova               | :-)    | True            | neutron-dhcp-agent        | |  900f0ace-c809-4493-89b0-caf0094b217a | linux bridge agent | linux-node2  |                    | :-)    |&nbsp true           | neutron-linuxbridge-agent | |  f0b914bc-ab5b-4304-89a6-29d36d809705 | linux bridge agent | linux-node1  |                    | :-)    | True            | neutron-linuxbridge-agent |+--------------------------------------+------------------- -+-------------+-------------------+-------+----------------+---------------------------+

[[email protected] ~]# nova service-list+----+------------------+-------------+----------+ ---------+-------+----------------------------+-----------------+| id | binary            | Host         | zone     | status  | state | updated_at                  |  disabled reason |+----+------------------+-------------+----------+---------+-------+--------------- -------------+-----------------+| 3  | nova-consoleauth | linux-node1 |  internal | enabled | up    | 2017-01-02t20:27:14.000000  | -               | |  4  | nova-conductor   | linux-node1 | internal | enabled | up     | 2017-01-02T20:27:15.000000 | -                | |  5  | nova-scheduler   | linux-node1 | internal |  enabled | up    | 2017-01-02t20:27:15.000000 | -                | |  6  | nova-compute     | linux-node2 | nova      | enabled | up    | 2017-01-02t20:27:19.000000  | -               |+---- +------------------+-------------+----------+---------+-------+----------------------------+-----------------+

The service installation to this compute node was successful ~~~~~~~

Below we will learn to launch an instance!!!


This article from the "Circle of a Bird" blog, declined to reprint!

Openstack Walkthrough-----08-Compute Node Neutron configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.