【已解决】如何彻底删除openvswitch的一个port?

查看数: 52252 | 评论数: 5 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2015-1-15 09:38

正文摘要:

本帖最后由 marsaber 于 2015-1-15 10:03 编辑 之前配置失误,导致br-tun的一个Port是错误的,想删除掉,使用: ovs-vsctl del-port br-tun gre-c0a8190c 分别在网络节点和计算节点执行,再次查看,没有了。 ...

回复

marsaber 发表于 2015-1-15 10:04:23
[root@controller ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 145
Server version: 5.1.73 Source distribution

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| cinder             |
| glance             |
| heat               |
| keystone           |
| mysql              |
| neutron            |
| nova               |
+--------------------+
8 rows in set (0.00 sec)

mysql> use neutron;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+------------------------------+
| Tables_in_neutron            |
+------------------------------+
| agents                       |
| alembic_version              |
| allowedaddresspairs          |
| arista_provisioned_nets      |
| arista_provisioned_tenants   |
| arista_provisioned_vms       |
| cisco_ml2_credentials        |
| cisco_ml2_nexusport_bindings |
| consistencyhashes            |
| dnsnameservers               |
| externalnetworks             |
| extradhcpopts                |
| floatingips                  |
| ipallocationpools            |
| ipallocations                |
| ipavailabilityranges         |
| ml2_brocadenetworks          |
| ml2_brocadeports             |
| ml2_flat_allocations         |
| ml2_gre_allocations          |
| ml2_gre_endpoints            |
| ml2_network_segments         |
| ml2_port_bindings            |
| ml2_vlan_allocations         |
| ml2_vxlan_allocations        |
| ml2_vxlan_endpoints          |
| networkdhcpagentbindings     |
| networks                     |
| ports                        |
| quotas                       |
| routerl3agentbindings        |
| routerroutes                 |
| routers                      |
| securitygroupportbindings    |
| securitygrouprules           |
| securitygroups               |
| servicedefinitions           |
| servicetypes                 |
| subnetroutes                 |
| subnets                      |
+------------------------------+
40 rows in set (0.00 sec)

mysql> select * from ml2_gre_endpoints;
+---------------+
| ip_address    |
+---------------+
| 172.16.10.21  |
| 172.16.10.31  |
| 192.168.25.12 |
+---------------+
3 rows in set (0.00 sec)

mysql> delete from ml2_gre_endpoints where ip_address = '192.168.25.12';
Query OK, 1 row affected (0.03 sec)

mysql> select * from ml2_gre_endpoints;
+--------------+
| ip_address   |
+--------------+
| 172.16.10.21 |
| 172.16.10.31 |
+--------------+
2 rows in set (0.00 sec)

mysql>

网络节点重启openvswitch等服务之后,没有再次出现。
marsaber 发表于 2015-6-20 08:55:42
wangzy208 发表于 2015-6-20 03:22:43
marsaber 发表于 2015-1-15 10:04
[root@controller ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end w ...

给力,确实是这样解决了问题,openstack自己的同步有问题,导致即使重启服务也不行,解决了,谢谢!
marsaber 发表于 2015-1-15 10:19:04
langke93 发表于 2015-1-15 10:16
openstack还是有些bug的,有的是并不是真正的删除,当然这个可能是为了误操作,或则黑客之类的,可是也会 ...

嗯,是的,非常感谢您的回复。
langke93 发表于 2015-1-15 10:16:05
marsaber 发表于 2015-1-15 10:04
[root@controller ~]# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end w ...
openstack还是有些bug的,有的是并不是真正的删除,当然这个可能是为了误操作,或则黑客之类的,可是也会造成些麻烦。
所以想真正删除,需要使用命令删除后,产生问题,还需要看看数据库

关闭

推荐上一条 /2 下一条