GNU/Linux >> Linux Esercitazione >  >> Ubuntu

OpenStack Liberty su Ubuntu 14.04 – Configura Neutron #2

Questa è la seconda parte della configurazione di neutron (Networking) su Ubuntu 14.04, puoi leggere l'articolo precedente su Configure Neutron n. 1, in cui abbiamo installato e configurato i componenti di rete sul nodo Controller.

Qui, in questo tutorial installeremo e configureremo Compute Node.

Per cominciare, installa i componenti sul nodo di calcolo.

# apt-get install neutron-plugin-linuxbridge-agent conntrack

Configura nodo di calcolo:

Facciamo un po' di configurazione dei comandi che include il meccanismo di autenticazione, la coda dei messaggi e il plug-in

Modifica il file /etc/neutron/neutron.conf.

# nano /etc/neutron/neutron.conf

Apporta le modifiche appropriate al file.

[DEFAULT]
...
rpc_backend = rabbit
auth_strategy = keystone
verbose = True

[oslo_messaging_rabbit]
...
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = password

## Replace "password" with the password you chose for the openstack account in RabbitMQ.

[keystone_authtoken]
...
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = password

## Replace "password" with the password you chose for the neutron user in the Identity service.
## Commentout other authentication details.

[database]

#connection = sqlite:////var/lib/neutron/neutron.sqlite

## Comment out any connection options because compute nodes do not directly access the database.

Configura l'agente bridge Linux:

Poiché utilizziamo reti self-service, è necessario configurare l'agente bridge Linux su un nodo di calcolo. L'agente bridge Linux crea un'infrastruttura di rete virtuale di livello 2 per istanze che include tunnel VXLAN per reti private e gestisce i gruppi di sicurezza.

Modifica il file /etc/neutron/plugins/ml2/linuxbridge_agent.ini.

# nano /etc/neutron/plugins/ml2/linuxbridge_agent.ini

Apporta modifiche al file.

[linux_bridge]
physical_interface_mappings = public:eth1

## Replace "eth1" with the name of the physical public facing network interface.

[vxlan]
enable_vxlan = True
local_ip = 192.168.12.22
l2_population = True

## Replace "192.168.12.22" with the management ip-address of compute node.

[agent]
...
prevent_arp_spoofing = True

[securitygroup]
...
enable_security_group = True
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

Configura Compute per utilizzare la rete:

Modifica il file /etc/nova/nova.conf.

# nano /etc/nova/nova.conf

Apporta le modifiche al file come di seguito.

[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = neutron
password = password

## Replace "password" with the password you chose for the neutron user in the Identity service.

Completa l'installazione:

Riavvia il servizio di calcolo:

# service nova-compute restart

Riavvia l'agente bridge Linux:

# service neutron-plugin-linuxbridge-agent restart

Verifica:

Elenca gli agenti per verificare il corretto avvio degli agenti neutroni, esegui questo comando sul nodo Controller.

# neutron agent-list
+--------------------------------------+--------------------+--------------------------+-------+----------------+---------------------------+
| id                                   | agent_type         | host                     | alive | admin_state_up | binary                    |
+--------------------------------------+--------------------+--------------------------+-------+----------------+---------------------------+
| 02030132-55f1-4136-8b47-7b495b66c672 | L3 agent           | controller.itzgeek.local | :-)   | True           | neutron-l3-agent          |
| 6b2fd77d-8b23-4932-8010-6436bf01319c | Metadata agent     | controller.itzgeek.local | :-)   | True           | neutron-metadata-agent    |
| 9324094a-878c-4ba2-b822-7b070268deec | DHCP agent         | controller.itzgeek.local | :-)   | True           | neutron-dhcp-agent        |
| cac6003d-b25a-4b1f-8144-1ae0293f26b0 | Linux bridge agent | compute.itzgeek.local    | :-)   | True           | neutron-linuxbridge-agent |
| faec1d38-5b5a-4c46-a614-4db12b4ff9e6 | Linux bridge agent | controller.itzgeek.local | :-)   | True           | neutron-linuxbridge-agent |
+--------------------------------------+--------------------+--------------------------+-------+----------------+---------------------------+

Dovresti vedere l'output sopra con quattro agenti sul nodo controller e un agente su ogni nodo di calcolo .


Ubuntu
  1. Installa pgAdmin 4 su Ubuntu 16.04

  2. OpenStack Liberty su Ubuntu 14.04 LTS – Configura Nova

  3. OpenStack Kilo su Ubuntu 14.04.2 – Configura Neutron #1

  4. OpenStack Kilo su Ubuntu 14.04.2 – Configura Nova

  5. OpenStack Kilo su Ubuntu 14.04.2 – Configura Sguardo

OpenStack Liberty su Ubuntu 14.04 – Configura Neutron

OpenStack Liberty su Ubuntu 14.04 LTS – Configura Sguardo

OpenStack Liberty su Ubuntu 14.04 LTS – Configura KeyStone #2

OpenStack Liberty su Ubuntu 14.04 LTS – Configura KeyStone #1

Installa OpenStack Liberty su Ubuntu 14.04 LTS

OpenStack Liberty su Ubuntu 14.04 – Crea reti virtuali