当前位置: 代码迷 >> 综合 >> openstack-Agile Controller-DCN插件安装
  详细解决方案

openstack-Agile Controller-DCN插件安装

热度:56   发布时间:2024-01-18 02:53:33.0
一:目录
  1. 下载插件包
  2. 安装插件
  3. 安装过程遇见的问题
  4. 注意
二: 下载插件包
  1. 插件包

    networking-huawei.tar.gz

  2. 用下面三个文件替换目录/networking-huawei/tools下的对应文件(此处与kilo版openstack才需要替换,原因:对接K版时原脚本文件有几处问题)

    networking_huawei_config.txt

    networking_huawei_install.sh

    networking_huawei_uninstall.sh

三: 安装插件
  1. 在VCF集成页面点击资料跳转到安装文档,Agile Controller-DCN插件安装文档
    在这里插入图片描述
四:安装过程遇见的问题
  1. python未安装urllib3模块

安装完成后点击openstack界面的网络/路由菜单,出现如下错误

Error: 无法获取外部网络"Connection to neutron failed: 
HTTPConnectionPool(host='10.15.25.201', port=9696): 
Max retries exceeded with url: /v2.0/networks.json?router%3Aexternal=True (
Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f930b287290>: Failed to establish a new connection: Errno 111] Connection refused',)):列表

或在/var/log/neutron/server.log日志中出现如下错误

2020-02-16 21:15:32.559 29265 DEBUG neutron.callbacks.manager [-] Subscribe: <function migration_callback at 0x7f92aadb7758> router before_update subscribe /usr/lib/python2.7/dist-packages/neutron/callbacks/manager.py:43
2020-02-16 21:15:32.602 29265 ERROR stevedore.extension [-] Could not load 'huawei_ac_ml2': No module named ssl_
2020-02-16 21:15:32.602 29265 ERROR stevedore.extension [-] No module named ssl_
2020-02-16 21:15:32.602 29265 TRACE stevedore.extension Traceback (most recent call last):2020-02-16 21:15:32.602 29265 TRACE stevedore.extension     import urllib3.util.ssl_
2020-02-16 21:15:32.602 29265 TRACE stevedore.extension ImportError: No module named ssl_

解决方法:安装urllib3模块

pip install urllib3==1.22
  1. 配置文件中未设置物理网卡名称

/etc/neutron/huawei_driver_config.ini physical_network not configured

2020-02-17 23:07:20.069 21491 TRACE neutron.service   File "/usr/local/lib/python2.7/dist-packages/networking_huawei/drivers/ac/sync/message_reliability_driver.py", line 162, in _config_validation
2020-02-17 23:07:20.069 21491 TRACE neutron.service     raise ParamNotConfigured(para='physical_network')
2020-02-17 23:07:20.069 21491 TRACE neutron.service ParamNotConfigured: /etc/neutron/huawei_driver_config.ini physical_network not configured.
2020-02-17 23:07:20.069 21491 TRACE neutron.service 
2020-02-17 23:07:20.073 21491 CRITICAL neutron [-] ParamNotConfigured: /etc/neutron/huawei_driver_config.ini physical_network not configured.
2020-02-17 23:07:20.073 21491 TRACE neutron Traceback (most recent call last):
2020-02-17 23:07:20.073 21491 TRACE neutron   File "/usr/bin/neutron-server", line 10, in <module>

参数在配置文件中的位置
在这里插入图片描述
解决方法:根据下图配置物理网卡参数
在这里插入图片描述

五:注意

在这里插入图片描述

  相关解决方案