Skip to content

Instantly share code, notes, and snippets.

View aledsage's full-sized avatar

Aled Sage aledsage

View GitHub Profile
@aledsage
aledsage / gist:5186734
Created March 18, 2013 12:06
Brooklyn entity creation API
/*
* Below is an example of 0.5.0-M2 code using ApplicationBuilder:
*/
public class MyExample extends ApplicationBuilder {
protected void doBuild() {
MySqlNode mysql = createChild(BasicEntitySpec.newInstance(MySqlNode.class)
.configure(MySqlNode.CREATION_SCRIPT_URL, myUrl));
}
}
Manifest-Version: 1.0
Implementation-SHA-1: 41638183a07c9cf0f4866d7f02b8068f926e8c75
Export-Package: io.brooklyn.ambari.agent;uses:="com.google.common.refl
ect,org.apache.brooklyn.util.javalang,org.apache.brooklyn.api.entity,
javax.annotation,org.apache.brooklyn.api.sensor,org.apache.brooklyn.u
til.core.flags,org.apache.brooklyn.api.catalog,org.apache.brooklyn.co
re.sensor,io.brooklyn.ambari,org.apache.brooklyn.core.config,org.apac
he.brooklyn.config,org.apache.brooklyn.entity.java,org.apache.brookly
n.util.core.config,org.apache.brooklyn.entity.software.base,org.apach
e.brooklyn.api.internal,io.brooklyn.ambari.server,org.apache.brooklyn
When deploying to Softlayer (in a brooklyn live test), it failed to provision. There were two separate problems (shown in the log snippets below):
1. failed to login to the VM: `doesn't have login details within 3600000ms`
2. failed to delete the VM, when discarding it: softlayer sent back a 500 Internal Server Error `This cancellation could not be processed please contact support.This cancellation could not be processed. Please contact support. There is currently an active transaction.`
```
2016-12-13 12:45:23,293 INFO Creating VM null in JcloudsLocation[softlayer:software-development@pl9nu7srsh]
2016-12-13 12:45:32,963 INFO ignoring auto-generate-keypairs(false) in VM creation because not supported for cloud/type ({})