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

People
Owner: Nobody in particular
Requestors: epimetreus [...] fastmail.fm
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-2.699 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"; format="flowed"
Message-ID: <53D9726F.2010200 [...] fastmail.fm>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Sasl-Enc: oFRO4t1EB79oA3aPII6Z3V4aBC4NuLDtrb7HPejy0y/B 1406759538
X-Spam-Score: -2.699
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id BD60C240448 for <cpan-bug+VM-EC2 [...] hipster.bestpractical.com>; Wed, 30 Jul 2014 18:32:26 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EtaOlgRm+U-J for <cpan-bug+VM-EC2 [...] hipster.bestpractical.com>; Wed, 30 Jul 2014 18:32:25 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 7AE40240359 for <bug-VM-EC2 [...] rt.cpan.org>; Wed, 30 Jul 2014 18:32:25 -0400 (EDT)
Received: (qmail 10037 invoked by alias); 30 Jul 2014 22:32:24 -0000
Received: from out2-smtp.messagingengine.com (HELO out2-smtp.messagingengine.com) (66.111.4.26) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 30 Jul 2014 15:32:22 -0700
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by gateway1.nyi.internal (Postfix) with ESMTP id 58F0125389 for <bug-VM-EC2 [...] rt.cpan.org>; Wed, 30 Jul 2014 18:32:18 -0400 (EDT)
Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 30 Jul 2014 18:32:18 -0400
Received: from [192.168.0.152] (unknown [67.166.118.234]) by mail.messagingengine.com (Postfix) with ESMTPA id 19B4CC0000C for <bug-VM-EC2 [...] rt.cpan.org>; Wed, 30 Jul 2014 18:32:18 -0400 (EDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] fastmail.fm
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] messagingengine.com
Delivered-To: cpan-bug+VM-EC2 [...] hipster.bestpractical.com
Subject: wait_for_volume hangs indefinitely
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
Return-Path: <epimetreus [...] fastmail.fm>
X-RT-Mail-Extension: vm-ec2
X-Original-To: cpan-bug+VM-EC2 [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=mesmtp; bh=qG47fZPjVu/tuove8vzYtbo GVR8=; b=O8zx9BvhT8TZu9R/s3lN96mqItvaXcNb0pPSmXGuQrlF845oUtMChiI 4NYUCPKe++J11pgfnfbH74x4ofU5axgVFcUcmCx0vc2h/VrObwyYEiqe18YOBIje fd6aSsc4WZWrNIXnUzolyz3tg2Lt3fvXpwyKqBZVWELZhkaVPqSI=
Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:content-type:content-transfer-encoding; s=smtpout; bh=q G47fZPjVu/tuove8vzYtboGVR8=; b=bgSm3uv+jbIFfyQbE2V4DkL+d5ocBRSma 9XLCOFFqFTeqvRb8f8TOMNKosJlmpO7ARzG7Ei4A933GC/h6URiDx6O/h2u2SY+s /0XIDrPlxo8xB+VKzWjj/P2Ru3wn5AptIt58Bd1k8nJ7ZYDXR4hqDjOprqzNQL6o LHgn5KDTGA=
Date: Wed, 30 Jul 2014 16:32:15 -0600
X-Spam-Level:
To: bug-VM-EC2 [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Kai Moonbourn <epimetreus [...] fastmail.fm>
X-RT-Original-Encoding: iso-8859-1
X-RT-Interface: Email
Content-Length: 801
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.