1

我正在尝试使用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.

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

4

1 回答 1

1

我在 Vagrantfile 中指定了“私有”:

os.floating_ip_pool   = 'private'

我应该一直使用“公共网络”:

os.floating_ip_pool   = 'Public-Network'

我当时没有意识到,但你可以通过以下方式找到 floating_ip_pool:

snowch$ vagrant openstack floatingip-list

+-------------------+
| Floating IP pools |
+-------------------+
| Public-Network    |
+-------------------+
于 2015-09-27T11:31:27.573 回答