brooklyncentral / clocker

Apache Brooklyn cloud native infrastructure blueprints
Apache License 2.0
428 stars 66 forks source link

Fails at startup then reboots machine #108

Open robertgmoss opened 9 years ago

robertgmoss commented 9 years ago

Trying to use 0.8.1 on ubuntu but it restarts the machine. Here's a Vagrant file to recreate:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/trusty64"
  config.vm.provision :shell, path: "bootstrap.sh"
  config.vm.network :forwarded_port, host: 8888, guest: 8081
  config.vm.synced_folder ".", "/root/.brooklyn", mount_options: ["dmode=777", "fmode=600"]
  config.vm.provider "virtualbox" do |v|
    v.memory = 1048
  end
end

with bootstrap.sh

sudo apt-get update -qq
sudo apt-get install -qqy openjdk-7-jdk

ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

wget --no-check-certificate --quiet \
  -O brooklyn-clocker-dist.tar.gz http://git.io/vfCE8
tar zxf brooklyn-clocker-dist.tar.gz
cd brooklyn-clocker
./bin/clocker.sh localhost weave

I get this output, before the VM reboots

 _                     _    _             
| |__  _ __ ___   ___ | | _| |_   _ _ __ (R)
| '_ \| '__/ _ \ / _ \| |/ / | | | | '_ \ 
| |_) | | | (_) | (_) |   <| | |_| | | | |
|_.__/|_|  \___/ \___/|_|\_\_|\__, |_| |_|
                              |___/             0.7.0-ea-cloudsoft.7

2015-05-19 13:05:40,785 INFO  YAML app combined with command line locations; YAML locations will take precedence; this behaviour may change in subsequent versions
2015-05-19 13:05:42,903 INFO  Persistence disabled
2015-05-19 13:05:42,904 INFO  High availability disabled
2015-05-19 13:05:46,615 INFO  Geo info lookup unavailable (for 127.0.0.1/127.0.0.1; cause brooklyn.util.exceptions.RuntimeInterruptedException: java.lang.InterruptedException)
2015-05-19 13:05:46,632 INFO  Starting Brooklyn web-console with passwordless access on localhost and protected access from any other interfaces (no bind address specified)
2015-05-19 13:05:48,645 INFO  Started Brooklyn console at http://127.0.0.1:8081/, running brooklyn-jsgui.war and [brooklyn-jsgui.war, brooklyn-clocker-console.war]
2015-05-19 13:05:49,054 INFO  Starting Docker infrastructure id DwF0lsgU
2015-05-19 13:05:49,240 INFO  Starting Weave network id bWRNjUDl
2015-05-19 13:05:49,240 INFO  Starting SDN provider id bWRNjUDl
2015-05-19 13:05:49,529 INFO  Starting brooklyn application BasicApplicationImpl{id=wHegkoCP} in location [LocalhostMachineProvisioningLocation{id=jKm2eygh, name=localhost}]
2015-05-19 13:05:49,628 INFO  Creating new DockerLocation wrapping LocalhostMachineProvisioningLocation{id=jKm2eygh, name=localhost}
2015-05-19 13:05:49,642 INFO  New Docker location DockerLocation{id=gYaMrzJA, name=Docker Infrastructure DwF0lsgU, provisioner=LocalhostMachineProvisioningLocation{id=jKm2eygh, name=localhost}, infrastructure=DockerInfrastructureImpl{id=DwF0lsgU}, strategies=[DockerAwarePlacementStrategy(MaxContainersPlacementStrategy@vtN2OPDa), DockerAwarePlacementStrategy(BreadthFirstPlacementStrategy@KIYkjc8I)]} created
2015-05-19 13:05:49,645 INFO  Starting entity DockerInfrastructureImpl{id=DwF0lsgU} at [LocalhostMachineProvisioningLocation{id=jKm2eygh, name=localhost}]
2015-05-19 13:05:49,719 INFO  Starting entity WeaveNetworkImpl{id=bWRNjUDl} at [LocalhostMachineProvisioningLocation{id=jKm2eygh, name=localhost}]
2015-05-19 13:05:49,747 INFO  Added policy MemberTrackingPolicy{name=Docker host tracker, running=true} to WeaveNetworkImpl{id=bWRNjUDl}, during start
2015-05-19 13:05:49,752 INFO  Resize DynamicClusterImpl{id=pUBUQvAC} from 0 to 2
2015-05-19 13:05:49,839 INFO  Starting Docker host id IuE3vjGd
2015-05-19 13:05:49,839 INFO  Starting server pool machine with id IuE3vjGd
2015-05-19 13:05:49,965 INFO  Starting Docker host id GjwKQ9XD
2015-05-19 13:05:49,965 INFO  Starting server pool machine with id GjwKQ9XD
2015-05-19 13:05:50,113 INFO  Starting DockerHostImpl{id=GjwKQ9XD} on machine SshMachineLocation[LocalhostMachine:RJXF:127.0.0.1/127.0.0.1:22@RJXFN5Ia]
2015-05-19 13:05:50,125 INFO  Starting DockerHostImpl{id=IuE3vjGd} on machine SshMachineLocation[LocalhostMachine:ZeXT:127.0.0.1/127.0.0.1:22@ZeXT7XWU]
2015-05-19 13:05:50,273 WARN  DockerHostImpl{id=GjwKQ9XD}: port 2375 not available for docker.port
2015-05-19 13:05:50,278 WARN  DockerHostImpl{id=GjwKQ9XD}: port 2376 not available for docker.ssl.port
2015-05-19 13:05:50,280 INFO  DockerHostImpl{id=IuE3vjGd} not running in a JcloudsSshMachineLocation, not configuring extra security groups
2015-05-19 13:05:50,281 INFO  DockerHostImpl{id=GjwKQ9XD} not running in a JcloudsSshMachineLocation, not configuring extra security groups
2015-05-19 13:05:50,406 WARN  Deprecated use of unmanaged location (DockerHostLocation{id=eWbyYHmZ, name=Docker Host GjwKQ9XD, machine=SshMachineLocation[LocalhostMachine:RJXF:127.0.0.1/127.0.0.1:22@RJXFN5Ia], jcloudsLocation=JcloudsLocation[docker:https://127.0.0.1:null:conf/server-cert.pem/docker:https://127.0.0.1:null@bEQ0TlUm], dockerHost=DockerHostImpl{id=GjwKQ9XD}}); will be managed automatically now but not supported in future versions
2015-05-19 13:05:50,414 WARN  Deprecated use of unmanaged location (DockerHostLocation{id=M65pH8nK, name=Docker Host IuE3vjGd, machine=SshMachineLocation[LocalhostMachine:ZeXT:127.0.0.1/127.0.0.1:22@ZeXT7XWU], jcloudsLocation=JcloudsLocation[docker:https://127.0.0.1:2376:conf/server-cert.pem/docker:https://127.0.0.1:2376@wCaLcufg], dockerHost=DockerHostImpl{id=IuE3vjGd}}); will be managed automatically now but not supported in future versions
2015-05-19 13:05:50,420 INFO  New Docker host location DockerHostLocation{id=eWbyYHmZ, name=Docker Host GjwKQ9XD, machine=SshMachineLocation[LocalhostMachine:RJXF:127.0.0.1/127.0.0.1:22@RJXFN5Ia], jcloudsLocation=JcloudsLocation[docker:https://127.0.0.1:null:conf/server-cert.pem/docker:https://127.0.0.1:null@bEQ0TlUm], dockerHost=DockerHostImpl{id=GjwKQ9XD}} created
2015-05-19 13:05:50,421 INFO  New Docker host location DockerHostLocation{id=M65pH8nK, name=Docker Host IuE3vjGd, machine=SshMachineLocation[LocalhostMachine:ZeXT:127.0.0.1/127.0.0.1:22@ZeXT7XWU], jcloudsLocation=JcloudsLocation[docker:https://127.0.0.1:2376:conf/server-cert.pem/docker:https://127.0.0.1:2376@wCaLcufg], dockerHost=DockerHostImpl{id=IuE3vjGd}} created
2015-05-19 13:05:52,075 WARN  SSH task ended with exit code 1 when non-zero was not explicitly allowed (error may be thrown in future), in Task[ssh: modprobe overlay:lC0JchRt]: modprobe overlay
2015-05-19 13:05:52,103 WARN  SSH task ended with exit code 1 when non-zero was not explicitly allowed (error may be thrown in future), in Task[ssh: modprobe overlay:mRLlW0X9]: modprobe overlay

Broadcast message from root@vagrant-ubuntu-trusty-64
    (unknown) at 13:06 ...

The system is going down for reboot NOW!
Connection to 127.0.0.1 closed by remote host.
Connection to 127.0.0.1 closed.```
grkvlt commented 9 years ago

Clocker is checking for the overlay kernel module, and (seems to be) is crashing when it isn't found, which ought not to happen?

grkvlt commented 9 years ago

May be fixed by using Ubuntu 15.04 which avoids the stupid kernel issue...