You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Tomaz Muraus (JIRA)" <ji...@apache.org> on 2013/10/17 20:10:45 UTC

[jira] [Commented] (LIBCLOUD-411) I pass the result of node.extra.availability to create volume is't not work

    [ https://issues.apache.org/jira/browse/LIBCLOUD-411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798203#comment-13798203 ] 

Tomaz Muraus commented on LIBCLOUD-411:
---------------------------------------

The reason for this error is that you are passing a string value of availability zone for "location" argument and this won't work.

Value of "location" argument needs to be an instance of EC2NodeLocation class. The reason this method takes "location" and not "availability_zone" is because of consistency with other drivers.

> I pass the result of node.extra.availability to create volume is't not work
> ---------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-411
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-411
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.13.0
>            Reporter: Frederic Michaud
>
> ec2 driver.
> I try to create volume in the same availability of my node but I have any possibility to format that correctly:
> node.extra.get('availability') is the return of node creation in ec2 (suppose that return good location)
> drive = createVolume(ec2_conn,volumeName=file_sys,size=size,location=node.extra.get('availability'))
> explode with this stack
>   File "C:\Python27\lib\site-packages\apache_libcloud-0.13.0-py2.7.egg\libcloud\compute\drivers\ec2.py", line 686, in create_volume
>     params['AvailabilityZone'] = location.availability_zone.name
> AttributeError: 'str' object has no attribute 'availability_zone'
> in the node you return avalability but isn't not avalibility it's I don't no but



--
This message was sent by Atlassian JIRA
(v6.1#6144)