zoukankan      html  css  js  c++  java
  • [转]openstack-kilo--issue(十四)Tunnel IP %(ip)s in use with host %(host)s'

    bug:

    http://lists.openstack.org/pipermail/openstack-operators/2015-August/007924.html

    https://bugs.launchpad.net/neutron/+bug/1464178

    解决方案地址:

    https://bugs.launchpad.net/neutron/+bug/1464178

    https://ask.openstack.org/en/question/79967/tunnel-ip-ips-in-use-with-host-hosts/

    解决方案:

    将数据库neutron中的ml2_gre_endpoints数据改为正确的IP 和域名(跟/etc/hosts中的一致)

    参考解决方案摘要如下:

    Check your mysql tables to see if the hostname shown on logs matches the one in the DB: on the controller: mysql -u root -pPASSWORD use neutron; select * from ml2_gre_endpoints;
    
    you should see both tunnels with the same hostname as in /etc/hosts and "nova service-list"
    Ran into this issue as well in Kilo where my node initially came up with the hostname "localhost.localdomain", and then I corrected it to the proper name.
    
    These are the steps I did to correct my setup, but may not be complete, so use with caution.
    
    I first ran "neutron agent-list" and then "neutron agent-delete $id" of the id associated with localhost.localdomain.
    That didn't correct it fully, and not sure if this step was needed.
    
    So I then accessed the neutron database and ran
    
    MariaDB [neutron]> select * from ml2_gre_endpoints;
    +--------------+-----------------------+
    | ip_address | host |
    +--------------+-----------------------+
    | 172.20.20.70 | localhost.localdomain |
    
    this was the incorrect entry mapping the ip to localhost.localdomain instead of the correct entry.
    
    So i ran
    delete from ml2_gre_endpoints where host='localhost.localdomain';
    
    Next, on the bad compute node did " systemctl restart neutron-openvswitch-agent.service"
    
    And that made everything work for me. The database table was updated after the restart by openstack to contain the new correct entry.
    
    MariaDB [neutron]> select * from ml2_gre_endpoints;
    +--------------+--------------+
    | ip_address | host |
    +--------------+--------------+
    | 172.20.20.70 | icbm70.mgmt |
    
    You may have to look in ml2_vxlan_endpoints, depending on your setup.
  • 相关阅读:
    Apache Solr学习 第二篇 solr安装(windows)
    Apache Solr学习 第一篇 简介和安装环境准备
    第二篇 redis常用操作命令
    第一篇 redis简介及安装
    使用maven安装jar包到本地仓库时遇到The goal you specified requires a project to execute but there is no POM in this directory错误
    使用Arrays.asList()时遇到的问题
    linux下zookeeper的安装
    第六篇 mybatis的运行原理(3):工厂方法模式,SqlSession的创建
    leetcode 剑指 Offer 35. 复杂链表的复制
    leetcode 112. 路径总和
  • 原文地址:https://www.cnblogs.com/horizonli/p/6294169.html
Copyright © 2011-2022 走看看