免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 14328 | 回复: 3
打印 上一主题 下一主题

[OpenStack] 使用neutron创建了一个router,可是网关端口总是down [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-08-27 16:23 |只看该作者 |倒序浏览
使用如下命令创建了一个router
  1. neutron router-create demo-router
  2. neutron router-interface-add demo-router demo-subnet
  3. neutron router-gateway-set demo-router ext-net
复制代码
在检查router状态时,发现网关的端口状态是down
<code>
[root@controller ~]# neutron port-list
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                            |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+
| 02496e68-e371-499a-bf87-4cd36cb9386d |      | fa:16:3e:f7:da:fb | {"subnet_id": "1a53f882-8644-4538-be01-331c4c90ecf1", "ip_address": "192.168.3.100"} |
| 29e5b0e6-51eb-4fc0-ada1-e6c7544c9e1b |      | fa:16:3e:2f:85:a5 | {"subnet_id": "9482028b-73ae-49f6-927d-22c49452d8fe", "ip_address": "192.168.128.2"} |
| 2e2efad0-1ba0-454e-9ad6-6e768585e9da |      | fa:16:3e:5d:67:1d | {"subnet_id": "1a53f882-8644-4538-be01-331c4c90ecf1", "ip_address": "192.168.3.101"} |
| 6a3c84c4-59f2-43da-9c00-4caec905699d |      | fa:16:3e:6b:f0:d3 | {"subnet_id": "9482028b-73ae-49f6-927d-22c49452d8fe", "ip_address": "192.168.128.1"} |
| 89d354ad-55cc-4a7b-9504-64aef95911de |      | fa:16:3e:a2:86:28 | {"subnet_id": "9482028b-73ae-49f6-927d-22c49452d8fe", "ip_address": "192.168.128.3"} |
+--------------------------------------+------+-------------------+--------------------------------------------------------------------------------------+


[root@controller ~]# neutron port-show  02496e68-e371-499a-bf87-4cd36cb9386d
+-----------------------+--------------------------------------------------------------------------------------+
| Field                 | Value                                                                                |
+-----------------------+--------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                 |
| allowed_address_pairs |                                                                                      |
| binding:host_id       | network                                                                              |
| binding:profile       | {}                                                                                   |
| binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}                                       |
| binding:vif_type      | ovs                                                                                  |
| binding:vnic_type     | normal                                                                               |
| device_id             | 1e0f7d5a-1e67-4d15-b7ab-713c4ffa4d23                                                 |
| device_owner          | network:router_gateway                                                               |
| extra_dhcp_opts       |                                                                                      |
| fixed_ips             | {"subnet_id": "1a53f882-8644-4538-be01-331c4c90ecf1", "ip_address": "192.168.3.100"} |
| id                    | 02496e68-e371-499a-bf87-4cd36cb9386d                                                 |
| mac_address           | fa:16:3e:f7:da:fb                                                                    |
| name                  |                                                                                      |
| network_id            | d3079c73-f118-4f68-9c27-9d0db107d746                                                 |
| security_groups       |                                                                                      |
| status                | DOWN                                                                                 |
| tenant_id             |                                                                                      |
+-----------------------+--------------------------------------------------------------------------------------+
</code>

论坛徽章:
26
CU十二周年纪念徽章
日期:2013-10-24 15:41:34技术图书徽章
日期:2014-07-11 16:27:52辰龙
日期:2014-09-04 13:40:43白羊座
日期:2014-09-09 12:51:55双子座
日期:2014-09-26 11:00:042014年中国系统架构师大会
日期:2014-10-14 15:59:00子鼠
日期:2014-10-23 16:48:23巨蟹座
日期:2014-10-27 08:21:10申猴
日期:2014-12-08 10:16:282015年辞旧岁徽章
日期:2015-03-03 16:54:15NBA常规赛纪念章
日期:2015-05-04 22:32:03IT运维版块每日发帖之星
日期:2016-01-29 06:20:00
2 [报告]
发表于 2014-09-23 08:07 |只看该作者
我的路由器看上去也是down,但用启来很正常,所以,以用为主吧,能用就行

论坛徽章:
0
3 [报告]
发表于 2014-09-29 20:38 |只看该作者
恩,我的也是端口down,但是使用正常
而且如果不用命令行创建就有问题
当时也没管,认为可能是openstack自己的bug

论坛徽章:
0
4 [报告]
发表于 2016-05-16 09:03 |只看该作者
Unrecognized attribute(s) 'allowed_address_pairs'
--这个参数无法识别,怎么破解?                  
谢谢!~~              
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP