未找到浮动IP池

时间:2015-09-27 10:28:02

标签: vagrant virtual-machine openstack ibm-cloud openstack-horizon

我正在尝试使用vagrant-openstack-provider来管理Bluemix VM。

除了最后的错误消息外,所有内容都很好看:Floating ip pool not found.

2015-09-27 11:17 | DEBUG | request  => method  : POST
2015-09-27 11:17 | DEBUG | request  => url     : https://api2-dal09.open.ibmcloud.com:8774/v2/.../os-floating-ips
2015-09-27 11:17 | DEBUG | request  => headers : {"X-Auth-Token"=>"...", :accept=>:json, :content_type=>:json}
2015-09-27 11:17 | DEBUG | request  => body    : {"pool":"private"}
2015-09-27 11:17 | DEBUG | response => code    : 404
2015-09-27 11:17 | DEBUG | response => headers : {:content_length=>"73", :content_type=>"application/json; charset=UTF-8", :x_compute_request_id=>"...", :date=>"Sun, 27 Sep 2015 10:17:30 GMT"}
2015-09-27 11:17 | DEBUG | response => body    : {"itemNotFound": {"message": "Floating ip pool not found.", "code": 404}}
2015-09-27 11:17 |  WARN | Error allocating ip in pool private : Floating ip pool not found.
2015-09-27 11:17 |  WARN | Impossible to allocate a new IP
ERROR warden: Error occurred: Floating ip pool not found.

是否可以在地平线控制台中创建IP池?如果是这样,我该怎么做?我在网上找不到任何文件。

1 个答案:

答案 0 :(得分:1)

我指定了私人'在Vagrantfile中:

os.floating_ip_pool   = 'private'

我应该一直在使用' Public-Network'代替:

os.floating_ip_pool   = 'Public-Network'

我当时没有意识到,但你可以找到floating_ip_pool:

snowch$ vagrant openstack floatingip-list

+-------------------+
| Floating IP pools |
+-------------------+
| Public-Network    |
+-------------------+