【发布时间】:2014-07-01 16:36:45
【问题描述】:
我正在为 Chef 尝试一项名为 Chef-Metal 的新功能,它使用 Fog 作为连接到 Openstack 的驱动程序。我很难获得正确的语法来通过名称而不是:net_id来识别我想要的网络。这是我迄今为止一直在玩的:
:nics => [
{
:network => 'net-shared-vlan-25' # Doesn't Work
# :name => 'net-shared-vlan-25' # Original Test (didn't work)
# :net_id => '84685c12-ce9b-4056-8dcb-bfa2283e97bf' # Works! (but need name)
}
]
我不断得到(清理)的错误是:
Expected([200, 202]) <=> Actual(500 InternalServerError)
response => #<Excon::Response:0x0000000421c830
@data = {
:body => "{\"computeFault\": {\"message\": \"The server has either erred or is incapable of performing the requested operation.\", \"code\": 500}}",
:headers => {"Content-Length"=>"128", "Content-Type"=>"application/json; charset=UTF-8", "X-Compute-Request-Id"=>"req-eb48b850-0449-4a02-ae96-f6374b047b37", "Date"=>"Tue, 01 Jul 2014 16:08:55 GMT"},
:status => 500,
:remote_ip => "10.129.10.250",
:local_port => 54683,
:local_address => "10.129.17.41"},
@body = "{\"computeFault\": {\"message\": \"The server has either erred or is incapable of performing the requested operation.\", \"code\": 500}}",
@headers = {"Content-Length"=>"128", "Content-Type"=>"application/json; charset=UTF-8", "X-Compute-Request-Id"=>"req-eb48b850-0449-4a02-ae96-f6374b047b37", "Date"=>"Tue, 01 Jul 2014 16:08:55 GMT"},
@status = 500,
@remote_ip = "10.129.10.250",
@local_port = 54683,
@local_address = "10.129.17.41">
如果有人知道使用 Fog 在 Openstack 中通过名称而不是 ID 识别网络所需的正确语法,我们将不胜感激。谢谢。
【问题讨论】:
标签: chef-infra openstack fog