brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetoslav Neykov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-99) JcloudsLocationSecurityGroupCustomizer broken on OpenStack
Date Mon, 22 Dec 2014 22:19:13 GMT

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

Svetoslav Neykov commented on BROOKLYN-99:
------------------------------------------

One more failure on OpenStack. 

{noformat}
2014-12-22 19:49:40,167 DEBUG b.l.j.n.JcloudsLocationSecurityGroupCustomizer [brooklyn-execmanager-epybak4o-19]:
Adding permission to security group jclouds-brooklyn-j7fxy3xv-shared: {ipProtocol=tcp, fromPort=0,
toPort=65535, tenantIdGroupNamePairs={}, groupIds=[b5f4afcb-71d4-42b5-80a2-3dc6f323e5fd],
cidrBlocks=[]}
2014-12-22 19:49:40,169 ERROR b.l.jclouds.JcloudsLocation [brooklyn-execmanager-epybak4o-21]:
Failed to start VM for openstack-nova:http://192.168.4.3:5000/v2.0@DockerHostImpl{id=TCek9n5f}:
java.lang.IllegalArgumentException: id must be in format zoneId/id
2014-12-22 19:49:40,172 DEBUG b.l.jclouds.JcloudsLocation [brooklyn-execmanager-epybak4o-21]:
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException:
id must be in format zoneId/id
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2201)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3934)
	at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4736)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer.setSecurityGroupOnTemplate(JcloudsLocationSecurityGroupCustomizer.java:250)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer.customize(JcloudsLocationSecurityGroupCustomizer.java:241)
	at brooklyn.location.jclouds.JcloudsLocation.obtainOnce(JcloudsLocation.java:590)
	at brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:520)
	at brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:1)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:277)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5$1.call(MachineLifecycleEffectorTasks.java:1)
	at brooklyn.util.task.Tasks.withBlockingDetails(Tasks.java:99)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:275)
	at brooklyn.entity.software.MachineLifecycleEffectorTasks$5.call(MachineLifecycleEffectorTasks.java:1)
	at brooklyn.util.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:337)
	at brooklyn.util.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:469)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: id must be in format zoneId/id
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:125)
	at org.jclouds.openstack.nova.v2_0.domain.zonescoped.ZoneAndId.fromSlashEncoded(ZoneAndId.java:29)
	at org.jclouds.openstack.nova.v2_0.compute.extensions.NovaSecurityGroupExtension.addIpPermission(NovaSecurityGroupExtension.java:226)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer.addPermission(JcloudsLocationSecurityGroupCustomizer.java:340)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer.createBaseSecurityGroupInLocation(JcloudsLocationSecurityGroupCustomizer.java:319)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer.getOrCreateSharedSecurityGroup(JcloudsLocationSecurityGroupCustomizer.java:294)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer.access$1(JcloudsLocationSecurityGroupCustomizer.java:278)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer$3.call(JcloudsLocationSecurityGroupCustomizer.java:252)
	at brooklyn.location.jclouds.networking.JcloudsLocationSecurityGroupCustomizer$3.call(JcloudsLocationSecurityGroupCustomizer.java:1)
	at com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4739)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
	... 18 more
{noformat}

addPermission expects IpPermission where groupIds are in the format zone/id; groupIds are
set at line 316 and not prefixed by the zone:
{noformat}
.groupId(group.getProviderId())
{noformat}


> JcloudsLocationSecurityGroupCustomizer broken on OpenStack
> ----------------------------------------------------------
>
>                 Key: BROOKLYN-99
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-99
>             Project: Brooklyn
>          Issue Type: Bug
>    Affects Versions: 0.7.0-SNAPSHOT
>            Reporter: Richard Downer
>
> jclouds openstack-nova driver expects security group names to be prefixed with the region
name e.g. region-a.geo-1/mysecuritygroup.
> The method JcloudsLocationSecurityGroupCustomizer.getNameForSharedSecurityGroup() generates
a security group name which does not follow this rule; subsequently, the jclouds driver throws
an exception about the naming of the security group.



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

Mime
View raw message