You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Adrian Cole (JIRA)" <ji...@apache.org> on 2014/11/14 17:26:33 UTC

[jira] [Resolved] (JCLOUDS-765) create EBS volume for amazon ec2 using jclouds giving error

     [ https://issues.apache.org/jira/browse/JCLOUDS-765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Cole resolved JCLOUDS-765.
---------------------------------
    Resolution: Fixed

let's track this here. It should be possible to get to the bottom of this.

> create EBS volume for amazon ec2 using jclouds giving error
> -----------------------------------------------------------
>
>                 Key: JCLOUDS-765
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-765
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-labs, jclouds-labs-aws
>    Affects Versions: 1.7.3
>         Environment: Linux
>            Reporter: Subhadip
>            Priority: Blocker
>             Fix For: 1.7.3
>
>   Original Estimate: 1m
>  Remaining Estimate: 1m
>
> Hi,
> I'm using the below code to create EBS volume in amazon ec2. The same code is in production and was working fine. But suddenly from last couple of days I'm getting a new exception. I cant find out the exact error reason. Please help to understand the error.
> else if (cloudType.toUpperCase().equalsIgnoreCase("AWS-EC2")) {
> 				EC2Api ec2Api = computeServiceContext.unwrapApi(EC2Api.class);
> 				LOG.info("initialized ec2 api for volume creation");
> 				org.jclouds.ec2.domain.Volume volume = ec2Api
> 						.getElasticBlockStoreApi()
> 						.get()
> 						.createVolumeInAvailabilityZone(zoneId, size);
> 				
> 				ec2Api.getTagApi().get().applyToResources(ImmutableMap.of("Name",volumeName), ImmutableSet.of(volume.getId()));
> 				
> 				responseTemplate.setJobId(volume.getId());
> 				responseTemplate.setCreationTime(volume.getCreateTime());
> 				responseTemplate.setZoneId(volume.getAvailabilityZone());
> 			}
> Exception :
> java.lang.IllegalArgumentException: argument at index 0 on invocation.getInvoked() public abstract org.jclouds.ec2.domain.Volume org.jclouds.ec2.features.ElasticBlockStoreApi.createVolumeInAvailabilityZone(java.lang.String,int) was null



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)