Skip Menu |

This queue is for tickets about the VM-EC2 CPAN distribution.

Report information
The Basics
Id: 97637
Status: new
Priority: 0/
Queue: VM-EC2

Owner: Nobody in particular
Requestors: epimetreus [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: wait_for_volume hangs indefinitely
Date: Wed, 30 Jul 2014 16:32:15 -0600
To: bug-VM-EC2 [...]
From: Kai Moonbourn <epimetreus [...]>
Download (untitled) / with headers
text/plain 801b
It appears that wait_for_volume uses cached information when testing the volume status; the following hangs indefinitely: my @wait = map { $ec2->detach_volume($_) } @volumes; $ec2->wait_for_volumes(@wait); However, the following works: my @wait = map { $ec2->detach_volume($_) } @volumes; my $to = 0; VOL_WAIT: while($to < 600) { sleep 1; $to++; say $to; foreach my $vol (@wait) { say $vol->volumeId.':'.$ec2->describe_volumes($vol->volumeId)->status; next VOL_WAIT if $ec2->describe_volumes($vol->volumeId)->status ne 'available'; } last; } On a side note, why is there no detach_volumes() method? Being able to detach multiple volumes at once would seem to be a very obvious function . . .

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to