jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Turli (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-1269) Jclouds doesn't get the VPC when subnetId parameter is provided
Date Thu, 13 Apr 2017 13:11:41 GMT

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

Andrea Turli commented on JCLOUDS-1269:
---------------------------------------

[~nacx]I think Yavor is right. I actually spent a couple of hours with that and I'm working
on a fix which by the way could also fix https://issues.apache.org/jira/browse/JCLOUDS-1120

More soon, hopefully

> Jclouds doesn't get the VPC when subnetId parameter is provided
> ---------------------------------------------------------------
>
>                 Key: JCLOUDS-1269
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1269
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 2.0.1
>            Reporter: Yavor Yanchev
>              Labels: aws-ec2
>
> When subnetId is specified jclouds fails to obtain an existing AWS subnet in
> CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions#vpcIdForSubnet
> {code}
> Optional<Subnet> subnet = awsEC2Api.getSubnetApi().get().filter(new SubnetFilterBuilder().subnetId(subnetId).build()).first();
> {code}
> with
> {code}
>  java.lang.IllegalArgumentException: Subnet subnet-bb8aded2 not found
>         at org.jclouds.aws.ec2.compute.strategy.CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.vpcIdForSubnet(CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.java:208)
>         at org.jclouds.aws.ec2.compute.strategy.CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.addSecurityGroups(CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.java:195)
>         at org.jclouds.ec2.compute.strategy.CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions.execute(CreateKeyPairAndSecurityGroupsAsNeededAndReturnRunOptions.java:80)
>         at org.jclouds.aws.ec2.compute.strategy.CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.execute(CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.java:88)
>         at org.jclouds.aws.ec2.compute.strategy.CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.execute(CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.java:55)
>         at org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.createKeyPairAndSecurityGroupsAsNeededThenRunInstances(EC2CreateNodesInGroupThenAddToSet.java:213)
>         at org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.runInstancesAndWarnOnInvisible(EC2CreateNodesInGroupThenAddToSet.java:151)
>         at org.jclouds.ec2.compute.strategy.EC2CreateNodesInGroupThenAddToSet.execute(EC2CreateNodesInGroupThenAddToSet.java:132)
>         at org.jclouds.compute.internal.BaseComputeService.createNodesInGroup(BaseComputeService.java:217)
>         at org.jclouds.ec2.compute.EC2ComputeService.createNodesInGroup(EC2ComputeService.java:148)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message