分享

【已解决】创建subnet迟迟没有响应。

marsaber 发表于 2015-1-13 10:29:18 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 9736
本帖最后由 marsaber 于 2015-1-13 12:27 编辑

我的是KVM的虚拟机,4G内存。
操作系统是CentOS6.5 x86_64的,用的是Icehouse版本。

[root@controller ~]# neutron net-create ext-net --shared --router:external=True
Created a new network:
+---------------------------+--------------------------------------+
| Field                     | Value                                |
+---------------------------+--------------------------------------+
| admin_state_up            | True                                 |
| id                        | c71a3252-881d-42b2-bb53-0cbf3eca4e9a |
| name                      | ext-net                              |
| provider:network_type     | gre                                  |
| provider:physical_network |                                      |
| provider:segmentation_id  | 1                                    |
| router:external           | True                                 |
| shared                    | True                                 |
| status                    | ACTIVE                               |
| subnets                   |                                      |
| tenant_id                 | e749593321444a89a2ab0359d52a8f88     |
+---------------------------+--------------------------------------+
[root@controller ~]# neutron net-list
+--------------------------------------+---------+---------+
| id                                   | name    | subnets |
+--------------------------------------+---------+---------+
| c71a3252-881d-42b2-bb53-0cbf3eca4e9a | ext-net |         |
+--------------------------------------+---------+---------+
[root@controller ~]# neutron subnet-create ext-net --name ext-subnet --allocation-pool start=10.0.2.11,end=10.0.2.100 --disable-dhcp --gateway 10.0.2.1 10.0.2.0/24

然后一直没有响应,也不报错。该怎么处理?

已有(3)人评论

跳转到指定楼层
w123aw 发表于 2015-1-13 11:39:53
marsaber 发表于 2015-1-13 10:42
Ctrl+C取消后:
[root@network ~]# neutron net-create Ext-Net --provider:network_type local --router: ...
可能原因是内存比较小,所以反应比较慢。意外停止,导致出错了。
回复

使用道具 举报

marsaber 发表于 2015-1-13 10:42:37
Ctrl+C取消后:
[root@network ~]# neutron net-create Ext-Net --provider:network_type local --router:external true
^CTraceback (most recent call last):
  File "/usr/bin/neutron", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 665, in main
    argv))
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 510, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 526, in run_subcommand
    return run_command(cmd, cmd_parser, sub_argv)
  File "/usr/lib/python2.6/site-packages/neutronclient/shell.py", line 79, in run_command
    return cmd.run(known_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/common/command.py", line 34, in run
    return super(OpenStackCommand, self).run(parsed_args)
  File "/usr/lib/python2.6/site-packages/cliff/display.py", line 84, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/common/command.py", line 40, in take_action
    return self.get_data(parsed_args)
  File "/usr/lib/python2.6/site-packages/neutronclient/neutron/v2_0/__init__.py", line 419, in get_data
    data = obj_creator(body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 111, in with_params
    ret = self.function(instance, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 343, in create_network
    return self.post(self.networks_path, body=body)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1241, in post
    headers=headers, params=params)
  File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/client.py", line 1156, in do_request
    resp, replybody = self.httpclient.do_request(action, method, body=body)
  File "/usr/lib/python2.6/site-packages/neutronclient/client.py", line 192, in do_request
    **kwargs)
  File "/usr/lib/python2.6/site-packages/neutronclient/client.py", line 146, in _cs_request
    resp, body = self.request(*args, **kargs)
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", line 1605, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", line 1353, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.6/site-packages/httplib2/__init__.py", line 1323, in _conn_request
    response = conn.getresponse()
  File "/usr/lib64/python2.6/httplib.py", line 990, in getresponse
    response.begin()
  File "/usr/lib64/python2.6/httplib.py", line 391, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.6/httplib.py", line 349, in _read_status
    line = self.fp.readline()
  File "/usr/lib64/python2.6/socket.py", line 433, in readline
    data = recv(1)
KeyboardInterrupt
[root@network ~]#
回复

使用道具 举报

marsaber 发表于 2015-1-13 12:02:10
w123aw 发表于 2015-1-13 11:39
可能原因是内存比较小,所以反应比较慢。意外停止,导致出错了。

哇塞 感谢大牛指点,我看了一下,4G的内存被吃的差不多了,我增大到8G就好了。
非常感谢啊。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条