brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (BROOKLYN-257) Can't replace imageId with imageNameRegex in jcloudsLocation.obtain(Map)
Date Tue, 03 May 2016 16:38:13 GMT

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

Aled Sage resolved BROOKLYN-257.
--------------------------------
    Resolution: Fixed

> Can't replace imageId with imageNameRegex in jcloudsLocation.obtain(Map)
> ------------------------------------------------------------------------
>
>                 Key: BROOKLYN-257
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-257
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>             Fix For: 0.10.0, 0.9.1
>
>
> A customer has a pre-defined AWS location (which could be a named location in brooklyn.properties,
or a location added to the catalog) that defines a imageId. When calling {{location.obtain(Map)}},
they want to override the image choice by passing in an imageNameRegex instead. However, the
imageId always takes precedence.
> If they try to pass in a map of {{ {imageId: null, imageNameRegex: myval} }}, then it
gives an error like:
> {noformat}
> java.lang.NullPointerException
> 	at org.apache.brooklyn.location.jclouds.JcloudsLocation$6.apply(JcloudsLocation.java:1153)
> 	at org.apache.brooklyn.location.jclouds.JcloudsLocation.buildTemplate(JcloudsLocation.java:1493)
> 	at org.apache.brooklyn.location.jclouds.JcloudsLocation.obtainOnce(JcloudsLocation.java:682)
> 	at org.apache.brooklyn.location.jclouds.JcloudsLocation.obtain(JcloudsLocation.java:614)
> 	at org.apache.brooklyn.location.jclouds.AbstractJcloudsLiveTest.obtainMachine(AbstractJcloudsLiveTest.java:141)
> 	at org.apache.brooklyn.location.jclouds.JcloudsImageChoiceStubbedLiveTest.testJcloudsCreateWithImageDescriptionRegex(JcloudsImageChoiceStubbedLiveTest.java:80)
> {noformat}



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

Mime
View raw message