I am using the Ruby binding on the CloudServers API to deploy a cluster of machines.
The API includes the ability to "embed" files into the file system of a newly created machine using the "identity" field. However, I cannot upload files through the "identity" key. The machine was created correctly, but the file is missing when creating the server.
Here's a test script that demonstrates this:
require 'rubygems'
require 'cloudservers'
cs = CloudServers::Connection.new(:username=>"user",:api_key=>"key")
begin
server = cs.create_server(:flavorId=>1,
:name=>"personality-test",
:imageId=>7888402,
:personality=>{"/tmp/foo"=>"/tmp/foo" })
rescue
print "Failed to create server ", $!, "\n"
end
Could anyone do this work?
source
share