Skip to content

Instantly share code, notes, and snippets.

View grkvlt's full-sized avatar
💭
🐧

Andrew Donald KENNEDY grkvlt

💭
🐧
View GitHub Profile
@grkvlt
grkvlt / master-56.md
Last active December 21, 2015 21:39
Brooklyn Integration Testing Results for 0.6.0

Brooklyn-Master-Integration

brooklyn.util.task.system.SystemTasksTest.testSubshellExitScriptDoesNotExit

http://brooklyn.builds.cloudsoftcorp.com/job/Brooklyn-Master-Integration/io.brooklyn$brooklyn-core/56/testReport/brooklyn.util.task.system/SystemTasksTest/testSubshellExitScriptDoesNotExit/

2013-08-28 18:15:29,880 INFO  TESTNG INVOKING: "Command line test" - brooklyn.util.task.system.SystemTasksTest.testSubshellExitScriptDoesNotExit()
2013-08-28 18:15:30,252 WARN  SSH task ended with exit code 1 when non-zero was not explicitly allowed (error may be thrown in future), in Task[ssh: echo hello ; ( exit 1 ) ; echo bye code $? [Stream[stdin/38b], Stream[stdout/6b], Stream[stderr/0b]]; FATgwEzz]: echo hello ; ( exit 1 ) ; echo bye code $?
2013-08-28 18:15:30,254 INFO  TESTNG FAILED: "Command line test" - brooklyn.util.task.system.SystemTasksTest.testSubshellExitScriptDoesNotExit() finished in 373 ms
Tests run: 53, Failures: 4, Errors: 0, Skipped: 0, Time elapsed: 1,051.447 sec <<< FAILURE!
testStartsApp(brooklyn.entity.brooklynnode.BrooklynNodeIntegrationTest) Time elapsed: 36.186 sec <<< FAILURE!
java.lang.AssertionError: null: lists don't have the same size expected [1] but found [0]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertEquals(Assert.java:123)
at org.testng.Assert.assertEquals(Assert.java:370)
at org.testng.Assert.assertEquals(Assert.java:537)
at org.testng.Assert.assertEquals(Assert.java:514)
at brooklyn.entity.brooklynnode.BrooklynNodeIntegrationTest.testStartsApp(BrooklynNodeIntegrationTest.java:201)
@grkvlt
grkvlt / 20131101.txt
Created November 1, 2013 15:07
Links
https://github.com/aledsage/brooklyn/commit/a143d810891a28e00f7a8d15f2b6443a71150f44#commitcomment-4481016
@grkvlt
grkvlt / deprecated.md
Last active December 29, 2015 07:59
Brooklyn 0.4.0 Deprecations

Deprecated Code from Brooklyn 0.4.0

These lists show files with code that has been deprecated since Brooklyn 0.4.0 and the lines in the files containing the deprecation notice along with the code that should be removed.

Unchanged

These have not been changed; see the notes in the comments.

@grkvlt
grkvlt / brooklyn.log
Created December 11, 2013 18:17
MariaDbNode Live on Debian Wheezy
2013-12-11 18:05:01,251 INFO TESTNG INVOKING: "Command line test" - brooklyn.entity.AbstractEc2LiveTest.test_Debian_7_2()
2013-12-11 18:05:01,272 INFO Starting MariaDbNodeImpl{id=FUYlqNIC}, obtaining a new location instance in JcloudsLocation[AWS Virginia:AKIAIMRXPO74OEURSQ4A/aws-ec2:us-east-1] with ports [22, 3306]
2013-12-11 18:05:01,272 INFO Creating VM in aws-ec2:us-east-1@MariaDbNodeImpl{id=FUYlqNIC} for JcloudsLocation[AWS Virginia:AKIAIMRXPO74OEURSQ4A/aws-ec2:us-east-1]
2013-12-11 18:08:45,433 INFO Started VM aws-ec2:us-east-1@MariaDbNodeImpl{id=FUYlqNIC}; waiting 5m for it to be sshable on [email protected]
2013-12-11 18:09:01,511 INFO VM aws-ec2:us-east-1@MariaDbNodeImpl{id=FUYlqNIC}; is sshable after 16.1s on [email protected]
2013-12-11 18:09:04,830 WARN Error querying aws-ec2 instance instance us-east-1/i-4ce92330@{scope=ZONE, id=us-east-1e, description=us-east-1e, parent=us-east-1, iso3166Codes=[US-VA]} over ssh for its hostname; falling back to first reachable IP
java.lang.IllegalSta
@grkvlt
grkvlt / brooklyn-live-tests-cleanup.md
Last active December 31, 2015 07:59
Brooklyn Live Tests Cleanup Proposal

Live Tests Cleanup

The Kuang program was green, exactly the shade of the T-A ice.
Even as Case watched, it grew gradually more opaque.

-- William Gibson, Neuromancer

Introduction

@grkvlt
grkvlt / scrum.md
Last active August 29, 2015 13:57
Training and Brooklyn Scrum

Wednesday 26 March 2014

Training

Gave my Brooklyn training session to about 8 Waratek staff, from both development and QA backgrounds. Covered a wide range of topics, starting with a basic introduction to Brooklyn concepts and components, then moved up to policies and blueprints. Also included some waratek specific instruction on using the 'exotic' WaratekInfrastrcture entity and the associated WaratekLocation that is created dynamically.

We used YAML to create blueprints almost exclusively, rather than forcing people to write (or edit) Java code. Everyone deployed their applications to AWS EC2 (in Dublin, of course!) locations, rather than 'localhost', using a temporary IAM credential set I created. This all helped to reduce the number of problems with laptop setup significantly although there were still various idiosyncratic configuration issues to deal with. Many thanks to @ahgittin and @sjcorbett for their helpful suggestions here.

Of course, when I explained that the version of the

@grkvlt
grkvlt / static.md
Created March 26, 2014 22:36
Changes to Startable Interface Static Fields

Changes to Startable Interface Static Fields

Recently the Startable#START field (public static final, by virtue of being part of a public interface) was modified. This caused problems when using applications linked against Brooklyn. In particular, if Brooklyn was built after the change without issuing an 'mvn clean' command then classes that merely referenced this static field did not get re-compiled, and their bytecode (including the old field value) was simply included in generated Jar files.

@grkvlt
grkvlt / dockercon-2014-submission.md
Created April 8, 2014 20:46
DockerCon 2014 Call for Papers - Submission

Migrating Complex Applications to Docker with Brooklyn

Abstract

Deploying enterprise-class distributed applications to docker containers spanning multiple hosts is tricky. Dealing with port forwarding, firewalls and injecting configuration into containers for inter-dependencies are just some of the problems.

We will show how Brooklyn's cloud abstractions can be used to simplify the deployment and management of a complex application to a virtual Docker infrastructure. Brooklyn will create and maintain the required Docker containers in the right locations for your application, and control and manage the software and services using policies to scale both the application and infrastructure based on their state.

@grkvlt
grkvlt / jmxrmi-agent-notes.md
Last active August 29, 2015 13:59
Brooklyn JMXRMI Agent Notes

Are there any examples of using the JMX agent? There doesn't seem to be any inside the brooklyn project, so I guess the users are hidden in some AMP-specific entities? [...] I'm trying to enable JMX-based sensors for Websphere Liberty Profile

The way I usually configure entities when I want to be sure that JMX works the way I expect, I set the JMXRMI agent and ports explicitly. In a Java application class, I do it when building an EntitySpec, setting the configuration in the init() method. This is from a Cassandra cluster application I was using at Waratek:

    @Override
    public void init() {