Skip to content

Instantly share code, notes, and snippets.

@grkvlt
Created December 11, 2013 18:17
Show Gist options
  • Save grkvlt/7915598 to your computer and use it in GitHub Desktop.
Save grkvlt/7915598 to your computer and use it in GitHub Desktop.
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.IllegalStateException: Could not obtain aws-ec2 hostname for vm 184.72.177.49:22; exitcode=0; stdout=; stderr=bash: curl: command not found
at brooklyn.location.jclouds.JcloudsLocation.getPublicHostnameAws(JcloudsLocation.java:1663) [brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:na]
2013-12-11 18:09:04,834 INFO Starting MariaDbNodeImpl{id=FUYlqNIC} on machine SshMachineLocation[184.72.177.49:184.72.177.49/184.72.177.49]
2013-12-11 18:09:08,090 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.IllegalStateException: Could not obtain aws-ec2 hostname for vm 184.72.177.49:22; exitcode=0; stdout=; stderr=bash: curl: command not found
at brooklyn.location.jclouds.JcloudsLocation.getPublicHostnameAws(JcloudsLocation.java:1663) ~[brooklyn-locations-jclouds-0.7.0-SNAPSHOT.jar:na]
2013-12-11 18:09:10,110 WARN Configuration being made to SshMachineLocation[184.72.177.49:184.72.177.49/184.72.177.49] after deployment; may not be supported in future versions
2013-12-11 18:10:11,875 WARN Execution failed, invalid result 9 for installing MariaDbNodeImpl{id=FUYlqNIC} (throwing)
2013-12-11 18:10:11,876 INFO STDERR of problem in Task[ssh: installing MariaDbNodeImpl{id=FUYlqNIC} [Stream[stdin/5.09kb], Stream[stdout/7.04kb], Stream[stderr/1.97kb], Wrapped[contextEntity:MariaDbNodeImpl{id=FUYlqNIC}]]; q9PbcBZy]:
... apt=libaio1 libaio-dev}, may fail subsequently
E: Unable to correct problems, you have held broken packages.
WARNING: no known/successful package manager to install {yum=libaio, apt=ia32-libs}, may fail subsequently
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
WARNING: no known/successful package manager to install curl, may fail subsequently
/tmp/brooklyn-20131211-180911079-zCCM-installing_MariaDbNodeImpl_id_.sh: line 15: curl: command not found
/tmp/brooklyn-20131211-180911079-zCCM-installing_MariaDbNodeImpl_id_.sh: line 15: curl: command not found
/tmp/brooklyn-20131211-180911079-zCCM-installing_MariaDbNodeImpl_id_.sh: line 15: curl: command not found
Could not retrieve mariadb-5.5.33a-linux-x86_64.tar.gz (from 3 sites)
2013-12-11 18:10:11,876 INFO STDOUT of problem in Task[ssh: installing MariaDbNodeImpl{id=FUYlqNIC} [Stream[stdin/5.09kb], Stream[stdout/7.04kb], Stream[stderr/1.97kb], Wrapped[contextEntity:MariaDbNodeImpl{id=FUYlqNIC}]]; q9PbcBZy]:
... ckages
Hit http://http.debian.net wheezy/main Translation-en
Hit http://http.debian.net wheezy-backports/main Sources/DiffIndex
Hit http://http.debian.net wheezy-backports/main amd64 Packages/DiffIndex
Hit http://http.debian.net wheezy-backports/main Translation-en/DiffIndex
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libcurl3
The following NEW packages will be installed:
curl libcurl3
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/601 kB of archives.
After this operation, 988 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
libcurl3 curl
Authentication warning overridden.
WARNING: no known/successful package manager to install curl, may fail subsequently
Could not retrieve mariadb-5.5.33a-linux-x86_64.tar.gz (from 3 sites)
Executed /tmp/brooklyn-20131211-180911079-zCCM-installing_MariaDbNodeImpl_id_.sh, result 9
2013-12-11 18:10:11,877 INFO STDIN of problem in Task[ssh: installing MariaDbNodeImpl{id=FUYlqNIC} [Stream[stdin/5.09kb], Stream[stdout/7.04kb], Stream[stderr/1.97kb], Wrapped[contextEntity:MariaDbNodeImpl{id=FUYlqNIC}]]; q9PbcBZy]:
... -get exists, doing update && export DEBIAN_FRONTEND=noninteractive && (( if test "$UID" -eq 0; then ( apt-get update ); else sudo -E -n -S -- apt-get update; fi ) || true) && ( if test "$UID" -eq 0; then ( apt-get install -y --allow-unauthenticated curl ); else sudo -E -n -S -- apt-get install -y --allow-unauthenticated curl; fi ) ; } ; } || { which yum && ( if test "$UID" -eq 0; then ( yum -y --nogpgcheck install curl ); else sudo -E -n -S -- yum -y --nogpgcheck install curl; fi ) ; } || { which brew && brew install curl ; } || { which port && ( if test "$UID" -eq 0; then ( port install curl ); else sudo -E -n -S -- port install curl; fi ) ; } || ( echo "WARNING: no known/successful package manager to install curl, may fail subsequently" | tee /dev/stderr ) ) ; }
echo installing extra packages
( { which yum && ( if test "$UID" -eq 0; then ( yum -y --nogpgcheck install libgcc_s.so.1 ); else sudo -E -n -S -- yum -y --nogpgcheck install libgcc_s.so.1; fi ) ; } || ( echo "WARNING: no known/successful package manager to install {yum=libgcc_s.so.1}, may fail subsequently" | tee /dev/stderr ) )
( { which apt-get && { echo apt-get exists, doing update && export DEBIAN_FRONTEND=noninteractive && (( if test "$UID" -eq 0; then ( apt-get update ); else sudo -E -n -S -- apt-get update; fi ) || true) && ( if test "$UID" -eq 0; then ( apt-get install -y --allow-unauthenticated libaio1 libaio-dev ); else sudo -E -n -S -- apt-get install -y --allow-unauthenticated libaio1 libaio-dev; fi ) ; } ; } || { which yum && ( if test "$UID" -eq 0; then ( yum -y --nogpgcheck install libaio.so.1 libncurses.so.5 ); else sudo -E -n -S -- yum -y --nogpgcheck install libaio.so.1 libncurses.so.5; fi ) ; } || ( echo "WARNING: no known/successful package manager to install {yum=libaio.so.1 libncurses.so.5, apt=libaio1 libaio-dev}, may fail subsequently" | tee /dev/stderr ) )
(( { which apt-get && { echo apt-get exists, doing update && export DEBIAN_FRONTEND=noninteractive && (( if test "$UID" -eq 0; then ( apt-get update ); else sudo -E -n -S -- apt-get update; fi ) || true) && ( if test "$UID" -eq 0; then ( apt-get install -y --allow-unauthenticated ia32-libs ); else sudo -E -n -S -- apt-get install -y --allow-unauthenticated ia32-libs; fi ) ; } ; } || { which yum && ( if test "$UID" -eq 0; then ( yum -y --nogpgcheck install libaio ); else sudo -E -n -S -- yum -y --nogpgcheck install libaio; fi ) ; } || ( echo "WARNING: no known/successful package manager to install {yum=libaio, apt=ia32-libs}, may fail subsequently" | tee /dev/stderr ) ) || true)
echo finished installing extra packages
{ which curl || ( { which apt-get && { echo apt-get exists, doing update && export DEBIAN_FRONTEND=noninteractive && (( if test "$UID" -eq 0; then ( apt-get update ); else sudo -E -n -S -- apt-get update; fi ) || true) && ( if test "$UID" -eq 0; then ( apt-get install -y --allow-unauthenticated curl ); else sudo -E -n -S -- apt-get install -y --allow-unauthenticated curl; fi ) ; } ; } || { which yum && ( if test "$UID" -eq 0; then ( yum -y --nogpgcheck install curl ); else sudo -E -n -S -- yum -y --nogpgcheck install curl; fi ) ; } || { which brew && brew install curl ; } || { which port && ( if test "$UID" -eq 0; then ( port install curl ); else sudo -E -n -S -- port install curl; fi ) ; } || ( echo "WARNING: no known/successful package manager to install curl, may fail subsequently" | tee /dev/stderr ) ) ; }
{ ( curl -f -L "file://$HOME/.brooklyn/repository/MariaDbNode/5.5.33a/mariadb-5.5.33a-linux-x86_64.tar.gz" -o mariadb-5.5.33a-linux-x86_64.tar.gz || curl -f -L "http://mirrors.coreix.net/mariadb//mariadb-5.5.33a/kvm-bintar-hardy-amd64/mariadb-5.5.33a-linux-x86_64.tar.gz" -o mariadb-5.5.33a-linux-x86_64.tar.gz || curl -f -L "http://downloads.cloudsoftcorp.com/brooklyn/repository/MariaDbNode/5.5.33a/mariadb-5.5.33a-linux-x86_64.tar.gz" -o mariadb-5.5.33a-linux-x86_64.tar.gz ) || { ( echo "Could not retrieve mariadb-5.5.33a-linux-x86_64.tar.gz (from 3 sites)" | tee /dev/stderr ) && exit 9 ; } ; }
tar xfvz mariadb-5.5.33a-linux-x86_64.tar.gz
date > $INSTALL_DIR/BROOKLYN
2013-12-11 18:10:11,885 WARN Error invoking start at MariaDbNodeImpl{id=FUYlqNIC}: java.lang.IllegalStateException: Execution failed, invalid result 9 for installing MariaDbNodeImpl{id=FUYlqNIC}
2013-12-11 18:10:11,897 WARN Error invoking start at Application[xIdNz2km]: Error invoking start at MariaDbNodeImpl{id=FUYlqNIC}: java.lang.IllegalStateException: Execution failed, invalid result 9 for installing MariaDbNodeImpl{id=FUYlqNIC}
2013-12-11 18:10:11,903 INFO TESTNG FAILED: "Command line test" - brooklyn.entity.AbstractEc2LiveTest.test_Debian_7_2() finished in 310646 ms
brooklyn.util.exceptions.PropagatedRuntimeException: Error invoking start at Application[xIdNz2km]: Error invoking start at MariaDbNodeImpl{id=FUYlqNIC}: java.lang.IllegalStateException: Execution failed, invalid result 9 for installing MariaDbNodeImpl{id=FUYlqNIC}
at brooklyn.management.internal.EffectorUtils.handleEffectorException(EffectorUtils.java:247)
at brooklyn.management.internal.EffectorUtils.invokeMethodEffector(EffectorUtils.java:227)
at brooklyn.entity.proxying.EntityProxyImpl.invoke(EntityProxyImpl.java:84)
at sun.proxy.$Proxy12.start(Unknown Source)
at brooklyn.entity.database.mariadb.MariaDbLiveEc2Test.doTest(MariaDbLiveEc2Test.java:22)
at brooklyn.entity.AbstractEc2LiveTest.runTest(AbstractEc2LiveTest.java:108)
at brooklyn.entity.AbstractEc2LiveTest.test_Debian_7_2(AbstractEc2LiveTest.java:68)
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:189)
at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:105)
at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:117)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:158)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment