我正在尝试连接Openstack和Opendaylight。
配置:
Opendaylight(192.168.2.15) 0.4.4-铍
在distribution-karaf-0.4.4-Breryllium-SR4 / etc / opendaylight / karaf目录中,我有一个名为90-vtn-neutron.xml的文件,该文件包含以下内容:
@login_required()
def delete_members(request, pk):
user_organisation = get_object_or_404(Organisation, user=request.user)
member_to_delete = get_object_or_404(Organisation_member, pk=pk)
user_organisation.members.remove(member_to_delete.member_name)
member_to_delete.delete()
return redirect(reverse('userprofile:organisation_member_list'))
我安装了以下功能:
Openstack: 版本ROCKY 我有2个节点:控制器和计算节点(每个节点有2个接口:enp0s8和enp0s9)
控制器(enp0s8:192.168.2.12,enp0s9 10.0.0.4)
local.conf
bridgename=br-int
portname=enp0s9
protocols=OpenFlow13
failmode=secure
计算(enp0s8:192.168.2.14,enp0s9 10.0.0.3)
计算local.conf
[[local|localrc]]
#IP Details
HOST_IP=192.168.2.12 #Please Add The Control Node IP Address in this line
SERVICE_HOST=$HOST_IP
FLAT_INTERFACE=enp0s8
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
SCREEN_LOGDIR=/opt/stack/data/log
LOG_COLOR=False
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-meta
disable_service q-l3
enable_service n-cpu
enable_service q-dhcp
enable_service n-cauth
enable_service neutron
enable_service tempest
enable_service neutron-api
enable_service neutron-metadata-agent
enable_service neutron-dhcp
ADMIN_PASSWORD=cosign
MYSQL_PASSWORD=cosign
RABBIT_PASSWORD=cosign
SERVICE_PASSWORD=cosign
SERVICE_TOKEN=cosign
ENABLE_TENANT_TUNNELS=True
NEUTRON_CREATE_INITIAL_NETWORKS=False
enable_plugin networking-odl http://git.openstack.org/openstack/networking-odl stable/rocky
ODL_MODE=externalodl
ODL_MGR_IP=192.168.2.15# Please Add the ODL IP Address in this line
ODL_PORT=8080
ODL_USERNAME=admin
ODL_PASSWORD=admin
OVS_PHYSICAL_BRIDGE=br-int
Q_OVS_USE_VETH=True
Q_ML2_TENANT_NETWORK_TYPE=local
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
KEYSTONE_AUTH_HOST=$SERVICE_HOST
KEYSTONE_SERVICE_HOST=$SERVICE_HOST
[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
[agent]
minimize_polling=True
现在,该连接正在工作,并且如果sudo ovs-vsctl显示在计算节点和控制器节点中,我将看到以下内容:
[[local|localrc]]
#IP Details
HOST_IP=192.168.2.14
FLAT_INTERFACE=enp0s8
SERVICE_HOST=192.168.2.12
MULTI_HOST=1
LOGFILE=/opt/stack/logs/stack.sh.log
SCREEN_LOGDIR=/opt/stack/data/log
LOG_COLOR=False
RECLONE=yes # Make it "no" after stacking successfully the first time
#OFFLINE=True # Uncomment this after stacking successfully the first time
disable_all_services
enable_service n-cpu, neutron
NOVA_VNC_ENABLED=True
ADMIN_PASSWORD=cosign
MYSQL_PASSWORD=cosign
RABBIT_PASSWORD=cosign
SERVICE_PASSWORD=cosign
SERVICE_TOKEN=cosign
ENABLE_TENANT_TUNNELS=True
NEUTRON_CREATE_INITIAL_NETWORKS=False
enable_plugin networking-odl http://git.openstack.org/openstack/networking-odl stable/rocky
ODL_MODE=compute
ODL_MGR_IP=192.168.2.15 # Please Add the ODL IP Address in this line
ODL_PORT=8080
ODL_USERNAME=admin
ODL_PASSWORD=admin
OVS_PHYSICAL_BRIDGE=br-int
NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html"
VNCSERVER_LISTEN=$HOST_IP
VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
MYSQL_HOST=$SERVICE_HOST
RABBIT_HOST=$SERVICE_HOST
GLANCE_HOSTPORT=$SERVICE_HOST:9292
KEYSTONE_AUTH_HOST=$SERVICE_HOST
KEYSTONE_SERVICE_HOST=$SERVICE_HOST
[[post-config|/etc/neutron/plugins/ml2/ml2_conf.ini]]
[agent]
minimize_polling=True
实际上,我不知道桥br-ex为何会出现(我只是在90-vtn-neutron.xml中配置了br-int,但是可以)
我可以看到OpenDaylight dlux中的4个OVSwitch(计算机节点的br-int和br-ex以及控制器节点的br-int和br-ex)。
当我尝试在Openstack中创建网络时,这很好。 (类型:本地)。但是,当我尝试启动连接到该网络的实例时,它会出现以下错误:
无法执行calculate_task_build_instances:超过最大重试次数。用尽了所有可供重试的主机
中子和新星的测井记录如下。 Nova(n-cpu.service)
Manager "tcp:192.168.2.15:6640"
is_connected: true
Bridge br-ex
Controller "tcp:192.168.2.15:6633"
is_connected: true
Port br-ex
Interface br-ex
type: internal
Bridge br-int
Controller "tcp:192.168.2.15:6633"
is_connected: true
fail_mode: secure
Port "enp0s9"
Interface "enp0s9"
ovs_version: "2.9.2"
Neutron(neutron-api.service)
ERROR nova.compute.manager [None req-37cb76b9-b8ee-41a3-b21c-770ff27cf11e demo admin] [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] Instance failed to spawn: PortBindingFailed: Binding failed for port 20a309bd-707a-49b8-83af-1c5df2d6d6ed, please check neutron logs for more information.
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] Traceback (most recent call last):
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/compute/manager.py", line 2368, in _build_resources
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] yield resources
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/compute/manager.py", line 2132, in _build_and_run_instance
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] block_device_info=block_device_info)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 3084, in spawn
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] mdevs=mdevs)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 5425, in _get_guest_xml
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] network_info_str = str(network_info)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/model.py", line 568, in __str__
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] return self._sync_wrapper(fn, *args, **kwargs)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/model.py", line 551, in _sync_wrapper
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] self.wait()
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/model.py", line 583, in wait
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] self[:] = self._gt.wait()
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 175, in wait
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] return self._exit_event.wait()
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/usr/local/lib/python2.7/dist-packages/eventlet/event.py", line 125, in wait
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] current.throw(*self._exc)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] result = function(*args, **kwargs)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/utils.py", line 810, in context_wrapper
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] return func(*args, **kwargs)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/compute/manager.py", line 1522, in _allocate_network_async
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] six.reraise(*exc_info)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/compute/manager.py", line 1505, in _allocate_network_async
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] bind_host_id=bind_host_id)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/neutronv2/api.py", line 1070, in allocate_for_instance
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] bind_host_id, available_macs, requested_ports_dict)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/neutronv2/api.py", line 1203, in _update_ports_for_instance
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] vif.destroy()
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] self.force_reraise()
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/usr/local/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] six.reraise(self.type_, self.value, self.tb)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/neutronv2/api.py", line 1173, in _update_ports_for_instance
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] port_client, instance, port_id, port_req_body)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/neutronv2/api.py", line 551, in _update_port
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] _ensure_no_port_binding_failure(port)
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] File "/opt/stack/nova/nova/network/neutronv2/api.py", line 249, in _ensure_no_port_binding_failure
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] raise exception.PortBindingFailed(port_id=port['id'])
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36] PortBindingFailed: Binding failed for port 20a309bd-707a-49b8-83af-1c5df2d6d6ed, please check neutron logs for more information.
mrt 14 13:37:26 controller nova-compute[9347]: ERROR nova.compute.manager [instance: 562eef07-ee1f-4930-9f07-85bf4b544c36]
有人可以帮助我吗?我找不到问题!