EC2 volumes - attach_time is null

Bug #1001828 reported by Chuck Short
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Chuck Short

Bug Description

This has been split out from #960265, so it can be solved individually:

Description: attachTime is NULL when some attachment exist + workaround from case (2)

Code
 my $aws = Net::Amazon::EC2->new (...);
 my $vol = "vol-00000008";
 my @avol = ($vol);
 my $p_avol = \@avol;
 my $rtn=$aws->ec2->describe_volumes(VolumeId => $p_avol);

 response:
  <DescribeVolumesResponse xmlns="http://ec2.amazonaws.com/doc/2009-11-30/">
   <requestId>...</requestId>
   <volumeSet>
    <item>
     <status>in-use (nova, host1, i-00000001[host1], /dev/sdf)</status>
     <availabilityZone>nova</availabilityZone>
     <displayName/>
     <volumeId>vol-00000008</volumeId>
     <displayDescription/>
     <attachmentSet>
      <item>
       <status>attached</status>
       <attachTime/>
       <instanceId>i-00000037</instanceId>
       <volumeId>vol-00000008</volumeId>
       <deleteOnTermination>false</deleteOnTermination>
       <device>/dev/sdf</device>
      </item>
     </attachmentSet>
     <snapshotId/>
     <createTime>2012-03-12T10:43:31Z</createTime>
     <size>15</size>
    </item>
   </volumeSet>
  </DescribeVolumesResponse>

 error message from Net::Amazon::EC2:
  Attribute (attach_time) does not pass the type constraint because: Validation failed for 'Str' with value HASH(0x3ce5d10) at /usr/share/perl5/vendor_perl/Net/Amazon/EC2.pm line 391

 SQL:
  [root@host1 nova]# mysql -u.... -p..... nova -e "select attach_time,id from volumes;"
  +-------------+----+
  | attach_time | id |
  +-------------+----+
  | NULL | 1 |
  | NULL | 2 |
  | NULL | 3 |
  | NULL | 4 |
  | NULL | 5 |
  | NULL | 6 |
  | NULL | 7 |
  | NULL | 8 |
  | NULL | 9 |
  | NULL | 10 |
  | NULL | 11 |
  | NULL | 12 |
  | NULL | 13 |
  | NULL | 14 |
  | NULL | 15 |
  +-------------+----+

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/7601

Changed in nova:
assignee: nobody → Chuck Short (zulcss)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/7601
Committed: http://github.com/openstack/nova/commit/0414446063101bf2931f1c9cf568bf3c46488363
Submitter: Jenkins
Branch: master

commit 0414446063101bf2931f1c9cf568bf3c46488363
Author: Chuck Short <email address hidden>
Date: Sat May 19 21:02:20 2012 -0400

    Add attach_time for EC2 Volumes

    According to the EC2 API spec, attach_time has a
    timestamp that is returned when running euca-describe-volumes.
    Openstack EC2 API currently does not do this.

    This fixes bug 1001828

    Change-Id: I571b937481f22e8d0f4eb38d4cabcafc5fbb920b
    Signed-off-by: Chuck Short <email address hidden>

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-2 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.