Ich konfiguriere OpenStack HA und konnte bis zu Nova konfigurieren, aber die Neutronenkonfiguration erfolgt mithilfe der OpenStack Yoga-Dokumentation (https://docs.openstack.org/install-guide/). Das einzige Problem, das ich habe, ist, dass beim Ausführen von „OpenStack Network Agent List“ nichts angezeigt wird.
Ich bin nicht sicher, was ich falsch mache.
Vielen Dank für Ihre Hilfe im Voraus
Unten ist die Konfiguration der Datei neutron.conf:
[DEFAULT]
core_plugin = ml2
#state_path
bind_host = 192.168.120.10
auth_strategy = keystone
service_plugins = router
allow_overlapping_ips = true
notify_nova_on_port_status_changes = true
notify_nova_on_port_data_changes = true
transport_url = rabbit://openstack:rabbit_pass@controller:5671
rpc_response_timeout = 500
rpc_response_timeout = 200
l3_ha = true
service_token_roles_required = true
[database]
connection = mysql+pymysql://neutron:[email protected]/neutron
[keystone_authtoken]
auth_type = password
project_domain_name = Default
project_name = service
user_domain_name = Default
username = neutron
password = neutron_pass
auth_url = https://controller:5000/v3
www_authenticate_uri = https://controller:5000/v3
memcached_servers = 192.168.120.11:11211,192.168.120.12:11211,192.168.120.13:11211
certfile = /etc/ssl/certs/neutron/openstack.pem
keyfile = /etc/ssl/private/neutron/openstackkey.pem
cafile = /etc/ssl/certs/ca.cer
[nova]
auth_type = password
project_domain_name = Default
project_name = service
user_domain_name = Default
username = nova
password = nova_pass
auth_url = https://controller:5000/v3
www_authenticate_uri = https://controller:5000/v3
memcached_servers = 192.168.120.11:11211,192.168.120.12:11211,192.168.120.13:11211
certfile = /etc/ssl/certs/neutron/openstack.pem
keyfile = /etc/ssl/private/neutron/openstackkey.pem
cafile = /etc/ssl/certs/ca.cer
[oslo_concurrency]
lock_path = /var/lib/neutron/tmp
**rabbitmq log**
`
dev-team@cont-00:~$ sudo tail -f /var/log/rabbitmq/[email protected]
2022-12-15 12:04:08.319846-06:00 [info] <0.9671.0> Mirrored queue 'conductor_fanout_135dfab533b146d7a5955ba17cd79639' in vhost '/': Adding mirror on node 'rabbit@cont-01': <18272.7289.0>
2022-12-15 12:05:50.873928-06:00 [info] <0.9927.0> accepting AMQP connection <0.9927.0> (192.168.10.11:54102 -> 192.168.10.11:5671)
2022-12-15 12:05:50.880573-06:00 [info] <0.9927.0> Connection <0.9927.0> (192.168.10.11:54102 -> 192.168.10.11:5671) has a client-provided name: neutron-dhcp-agent:15818:93eba9f1-a48a-4cc0-b217-78b6a47c4e7d
2022-12-15 12:05:50.881628-06:00 [info] <0.9927.0> connection <0.9927.0> (192.168.10.11:54102 -> 192.168.10.11:5671 - neutron-dhcp-agent:15818:93eba9f1-a48a-4cc0-b217-78b6a47c4e7d): user 'openstack' authenticated and granted access to vhost '/'
2022-12-15 12:05:50.896757-06:00 [info] <0.9940.0> Mirrored queue 'dhcp_agent' in vhost '/': Adding mirror on node 'rabbit@cont-02': <18271.7555.0>
2022-12-15 12:05:50.902008-06:00 [info] <0.9940.0> Mirrored queue 'dhcp_agent' in vhost '/': Adding mirror on node 'rabbit@cont-01': <18272.7490.0>
2022-12-15 12:05:50.934746-06:00 [info] <0.9951.0> Mirrored queue 'dhcp_agent.cont-02.altracom.net' in vhost '/': Adding mirror on node 'rabbit@cont-02': <18271.7567.0>
2022-12-15 12:05:50.939653-06:00 [info] <0.9951.0> Mirrored queue 'dhcp_agent.cont-02.altracom.net' in vhost '/': Adding mirror on node 'rabbit@cont-01': <18272.7501.0>
2022-12-15 12:05:50.973962-06:00 [info] <0.9964.0> Mirrored queue 'dhcp_agent_fanout_ac659e839d164932b5663f471874a104' in vhost '/': Adding mirror on node 'rabbit@cont-02': <18271.7578.0>
2022-12-15 12:05:50.985345-06:00 [info] <0.9964.0> Mirrored queue 'dhcp_agent_fanout_ac659e839d164932b5663f471874a104' in vhost '/': Adding mirror on node 'rabbit@cont-01': <18272.7512.0>
`
**Configure the ml2 component sudo vi /etc/neutron/plugins/ml2/ml2_conf.ini**
[ml2]
type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan/ml2/ml2_conf.ini
mechanism_drivers = linuxbridge,l2population
extension_drivers = port_security
[ml2_type_flat]
flat_networks = tunl
[ml2_type_vxlan]
vni_ranges = 1:1000
[securitygroup]
enable_ipset = true
**Configure the linux bridge sudo vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini**
[linux_bridge]
physical_interface_mappings = tunl:ens192
[securitygroup]
firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
enable_security_group = true
[vxlan]
enable_vxlan = true
local_ip = 192.168.120.11
l2_population = true
**Configure layer-3 Layer 3 switch agent sudo vi /etc/neutron/l3_agent.ini**
[DEFAULT]
interface_driver = linuxbridge
**Configure DHCP proxy, use DNSMASQ sudo vi /etc/neutron/dhcp_agent.ini**
[DEFAULT]
interface_driver = linuxbridge
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = true
**Do neutron basic configuration sudo vi /etc/neutron/metadata_agent.ini**
[DEFAULT]
nova_metadata_host = controller
metadata_proxy_shared_secret = shared_secret
sudo tail -f /var/log/neutron/neutron-linuxbridge-agent.log
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 689, in send
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent return self._send(target, ctxt, message, wait_for_reply, timeout,
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 678, in _send
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent result = self._waiter.wait(msg_id, timeout,
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 567, in wait
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent message = self.waiters.get(msg_id, timeout=timeout)
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent File "/usr/lib/python3/dist-packages/oslo_messaging/_drivers/amqpdriver.py", line 443, in get
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent raise oslo_messaging.MessagingTimeout(
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent oslo_messaging.exceptions.MessagingTimeout: Timed out waiting for a reply to message ID 62c0b27563df4470818635c6515bdfc1
2022-12-16 14:56:01.943 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent
2022-12-16 14:56:31.946 1968 ERROR neutron.plugins.ml2.drivers.agent._common_agent [-] Failed reporting state!: oslo_messaging.exceptions.MessagingTimeout: Timed out waiting for a reply to message ID fe0871b76c214fa6989c9e8313b6e0f6
**Here is the other Agent configuration:**
Konfigurieren Sie die ml2-Komponente sudo vi /etc/neutron/plugins/ml2/ml2_conf.ini auf allen Controllern [ml2] type_drivers = flat,vlan,vxlan
tenant_network_types = vxlan
Mechanismustreiber = Linuxbridge, L2Population
Erweiterungstreiber = Portsicherheit
[ml2_type_flat] flat_networks = Anbieter
[ml2_type_vxlan] vni_ranges = 1:1000
[Sicherheitsgruppe] enable_ipset = true
Konfigurieren Sie die Linux-Bridge sudo vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini auf allen Controllern [linux_bridge] physical_interface_mappings = provider:ens192
[Sicherheitsgruppe] Firewall-Treiber = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
enable_security_group = wahr
[vxlan] enable_vxlan = true
lokale_ip = 192.168.120.11
lokale_ip = 192.168.120.12
lokale_ip = 192.168.120.13
l2_population = wahr
Konfigurieren Sie den Layer-3-Switch-Agenten sudo vi /etc/neutron/l3_agent.ini auf allen Controllern [DEFAULT] interface_driver = linuxbridge
Konfigurieren Sie den DHCP-Proxy und verwenden Sie DNSMASQ sudo vi /etc/neutron/dhcp_agent.ini auf allen Controllern [DEFAULT] interface_driver = linuxbridge
dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
enable_isolated_metadata = wahr
Führen Sie die Neutron-Grundkonfiguration mit sudo vi /etc/neutron/metadata_agent.ini auf allen Controllern durch [DEFAULT] nova_metadata_host = Controller
metadata_proxy_shared_secret = Metadatengeheimnis
memcache_servers = 192.168.10.11:11211,192.168.10.12:11211,192.168.10.13:11211
Konfigurieren Sie Nova erneut und fügen Sie das obige Passwort zu Nova sudo vi /etc/nova/nova.conf auf allen Controllern hinzu [Neutron] auth_type = Passwort project_domain_name = Standard project_name = Dienst user_domain_name = Standard Benutzername = Neutron Passwort = FGG6A92 region_name = RegionOne auth_url = https://controller:5000/v3 www_authenticate_uri = https://controller:5000/v3 memcached_servers = 192.168.120.11:11211,192.168.120.12:11211,192.168.120.13:11211 certfile = /etc/ssl/certs/certitficate.pem keyfile = /etc/ssl/private/certitficatekey.pem cafile = /etc/ssl/certs/ca.cer service_metadata_proxy = wahr metadata_proxy_shared_secret = Metadatengeheimnis
sudo ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins.ini