Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-765

create EBS volume for amazon ec2 using jclouds giving error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.7.3
    • 1.7.3
    • None
    • Linux

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bagui Subhadip
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1m
                  1m
                  Remaining:
                  Remaining Estimate - 1m
                  1m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified