Hi there,
I am trying to automate our servercreation with the profitbricks ruby sdk: https://github.com/profitbricks/profitbricks-sdk-ruby and I do have pretty big performance issues.
The code looks like this:
_bootvolume = {
size: 20,
name: 'gateway-hdd1',
#ubuntu-15.04-server-amd64.iso
image: '2315e831-ea7c-11e4-9660-52540066fee9',
bus: 'VIRTIO'
}
bootvolume = ProfitBricks::Volume.create(datacenter.id, _bootvolume)
_datavolume = {
size: 100,
name: 'gateway-hdd2',
bus: 'VIRTIO',
licenceType: 'LINUX'
}
datavolume = ProfitBricks::Volume.create(datacenter.id, _datavolume)
_server = {
:name => 'gateway',
:ram => 2048,
:cores => 1,
}
server = ProfitBricks::Server.create(datacenter.id, _server)
bootvolume.wait_for(1000) { ready? }
datavolume.wait_for(1000) { ready? }
server.wait_for(1000) { ready? }
bootvolume.attach(server.id)
datavolume.attach(server.id)
server.update(
:bootVolume => {
:id => bootvolume.id
}
)
The first wait_for runs into a timeout (the usual SDK timeout is 60 seconds, not the specified 1000 seconds => over 16 minutes).
So here my questions: - Do you have any experience in this topic? Is this creation-time "normal"? - Is there an error in my code?
I'd be glad for any hint.
Beste regards, Michael