GithubHelp home page GithubHelp logo

spotify / helios Goto Github PK

View Code? Open in Web Editor NEW
2.1K 87.0 233.0 7.56 MB

Docker container orchestration platform

License: Apache License 2.0

Python 0.20% Shell 1.18% Java 98.44% Makefile 0.01% Dockerfile 0.16%
helios java docker container orchestration

helios's Introduction

Helios Circle CI Slack Status Download

Status: Bug-fix only

This project was created when there were no open source container orchestration frameworks. Since the advent of Kubernetes and other tools, we've stopped adding new features to helios and are now switching to other tools like Kubernetes. This project will no longer have new features or accept PRs for new features. We will continue to accept bug fixes, however.

Helios is a Docker orchestration platform for deploying and managing containers across an entire fleet of servers. Helios provides a HTTP API as well as a command-line client to interact with servers running your containers. It also keeps a history of events in your cluster including information such as deploys, restarts and version changes.

Usage Example

# Create an nginx job using the nginx container image, exposing it on the host on port 8080
$ helios create nginx:v1 nginx:1.7.1 -p http=80:8080

# Check that the job is listed
$ helios jobs

# List helios hosts
$ helios hosts

# Deploy the nginx job on one of the hosts
$ helios deploy nginx:v1 <host>

# Check the job status
$ helios status

# Curl the nginx container when it's started running
$ curl <host>:8080

# Undeploy the nginx job
$ helios undeploy -a nginx:v1

# Remove the nginx job
$ helios remove nginx:v1

Getting Started

If you're looking for how to use Helios, see the docs directory. Most probably the User Manual is what you're looking for.

If you're looking for how to download, build, install and run Helios, keep reading.

Prerequisites

The binary release of Helios is built for Ubuntu 14.04.1 LTS, but Helios should be buildable on any platform with at least Java 8 and a recent Maven 3 available.

Other components that are required for a helios installation are:

Install & Run

Quick start for local usage

Use helios-solo to launch a local environment with a Helios master and agent.

First, ensure you have Docker installed locally. Test this by making sure docker info works. Then install helios-solo:

# add the helios apt repository
$ sudo apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-keys 6F75C6183FF5E93D
$ echo "deb https://dl.bintray.com/spotify/deb trusty main" | sudo tee -a /etc/apt/sources.list.d/helios.list

# install helios-solo on Debian/Ubuntu
$ sudo apt-get update && sudo apt-get install helios-solo

# install helios-solo on OS X
$ brew tap spotify/public && brew install helios-solo

Once you've got it installed, bring up the helios-solo cluster:

# launch a helios cluster in a Docker container
$ helios-up

# check if it worked and the solo agent is registered
$ helios-solo hosts

You can now use helios-solo as your local Helios cluster. If you have issues, see the detailed helios-solo documentation.

Production on Debian, Ubuntu, etc.

Prebuilt Debian packages are available for production use. To install:

# add the helios apt repository
$ sudo apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-keys 6F75C6183FF5E93D
$ echo "deb https://dl.bintray.com/spotify/deb trusty main" | sudo tee -a /etc/apt/sources.list.d/helios.list

# install Helios command-line tools
$ sudo apt-get install helios

# install Helios master (assumes you have zookeeperd installed)
$ sudo apt-get install helios-master

# install Helios agent (assumes you have Docker installed)
$ sudo apt-get install helios-agent

Note that the Helios master and agent services both try to connect to ZooKeeper at localhost:2181 by default. We recommend reading the Helios configuration & deployment guide before starting a production cluster.

Manual approach

The launcher scripts are in bin/. After you've built Helios following the instructions below, you should be able to start the agent and master:

$ bin/helios-master &
$ bin/helios-agent &

If you see any issues, make sure you have the prerequisites (Docker and Zookeeper) installed.

Build & Test

First, make sure you have Docker installed locally. If you're using OS X, we recommend using docker-machine.

Actually building Helios and running its tests should be a simple matter of running:

$ mvn clean package

For more info on setting up a development environment and an introduction to the source code, see the Developer Guide.

How it all fits together

The helios command line tool connects to your helios master via HTTP. The Helios master is connected to a Zookeeper cluster that is used both as persistent storage and as a communications channel to the agents. The helios agent is a java process that typically lives on the same host as the Docker daemon, connecting to it via a Unix socket or optionally TCP socket.

Helios is designed for high availability, with execution state being confined to a potentially highly available Zookeeper cluster. This means that several helios-master services can respond to HTTP requests concurrently, removing any single point of failure in the helios setup using straight forward HTTP load balancing strategies.

Production Readiness

We at Spotify are running Helios in production (as of October 2015) with dozens of critical backend services, so we trust it. Whether you should trust it to not cause smoking holes in your infrastructure is up to you.

Why Helios?

There are a number of Docker orchestration systems, why should you choose Helios?

  • Helios is pragmatic. We're not trying to solve everything today, but what we have, we try hard to ensure is rock-solid. So we don't have things like resource limits or dynamic scheduling yet. Today, for us, it has been more important to get the CI/CD use cases, and surrounding tooling solid first. That said, we eventually want to do dynamic scheduling, composite jobs, etc. (see below for more). But what we provide, we use (i.e. we eat our own dogfood), so you can have reasonable assurances that anything that's been in the codebase for more than a week or two is pretty solid as we release frequently (usually, at least weekly) into production here at Spotify.

  • Helios should be able to fit in the way you already do ops. Of the popular Docker orchestration frameworks, Helios is the only one we're aware of that doesn't have anything much in the way of system dependencies. That is, we don't require that you run in AWS or GCE, etc. We don't require a specific network topology. We don't require you run a specific operating system. We don't require that you're using Mesos. Our only requirement is that you have a ZooKeeper cluster somewhere and a JVM on the machines which Helios runs on. So if you're using Puppet, Chef, etc., to manage the rest of the OS install and configuration, you can still continue to do so with whatever Linux OS you're using.

  • Don't have to drink all the Kool-Aid. Generally, we try to make it so you only have to take the features you want to use, and should be able to ignore the rest. For example, Helios doesn't prescribe a discovery service: we happen to provide a plugin for SkyDNS, and we hear that someone else is working on one for another service, but if you don't want to even use a discovery service, you don't have to.

  • Scalability. We're already at hundreds of machines in production, but we're nowhere near the limit before the existing architecture would need to be revisited. Helios can also scale down well in that you can run a single machine instance if you want to run it all locally.

Other Software You Might Want To Consider

Here are a few other things you probably want to consider using alongside Helios:

  • docker-gc Garbage collects dead containers and removes unused images.
  • helios-skydns Makes it so you can auto register services in SkyDNS. If you use leading underscores in your SRV record names, let us know, we have a patch for etcd which disables the "hidden" node feature which makes this use case break.
  • skygc When using SkyDNS, especially if you're using the Helios Testing Framework, can leave garbage in the skydns tree within etcd. This will clean out dead stuff.
  • docker-maven-plugin Simplifies the building of Docker containers if you're using Maven (and most likely Java).

Findbugs

To run findbugs on the helios codebase, do mvn clean compile site. This will build helios and then run an analysis, emitting reports in helios-*/target/site/findbugs.html.

To silence an irrelevant warning, add a filter match along with a justification in findbugs-exclude.xml.

The Nickel Tour

The sources for the Helios master and agent are under helios-services. The CLI source is under helios-tools. The Helios Java client is under helios-client.

The main meat of the Helios agent is in Supervisor.java, which revolves around the lifecycle of managing individual running Docker containers.

For the master, the HTTP response handlers are in src/main/java/com/spotify/helios/master/resources.

Interactions with ZooKeeper for the agent and master are mainly in ZookeeperAgentModel.java and ZooKeeperMasterModel.java, respectively.

The Helios services use Dropwizard which is a bundle of Jetty, Jersey, Jackson, Yammer Metrics, Guava, Logback and other Java libraries.

Community Ideas

These are things we want, but haven't gotten to. If you feel inspired, we'd love to talk to you about these (in no particular order):

  • Host groups
  • ACLs - on jobs, hosts, and deployments
  • Composite jobs -- be able to deploy related containers as a unit on a machine
  • Run once jobs -- for batch jobs
  • Resource specification and enforcement -- That is: restrict my container to X MB of RAM, X CPUs, and X MB disk and perhaps other things like IOPs, network bandwidth, etc.
  • Dynamic scheduling of jobs -- either within Helios itself or as a layer on top
  • Packaging/Config for other Linux distributions such as RedHat, CoreOS, etc.

helios's People

Contributors

caipre avatar carlanton avatar christoe avatar danielnorberg avatar davidxia avatar dflemstr avatar drewcsillag avatar evgeny-goldin avatar firstway avatar gimaker avatar lavanyachennupati avatar mattnworb avatar mavenraven avatar mbruggmann avatar mishako avatar mzeo avatar negz avatar pehrs avatar perfa avatar philipcristiano avatar rculbertson avatar regadas avatar rohansingh avatar rwstephenson avatar saunakchakrabarti avatar smstone avatar sncohen avatar spotify-helios-ci-agent avatar vbhavsar avatar zalenski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

helios's Issues

helios-master and /helios-agent dont start

Hello I try to use helios. first my system is Debian VM Jessie 64 already installed docker and zookeeper, after I install the debs from helios master agent service and helios. when I try to start the master, and the agent gives me this error:

Error Master:

root@docker01:/home/nodo/helios# /etc/init.d/helios-master status
â helios-master.service - LSB: Helios master daemon
Loaded: loaded (/etc/init.d/helios-master)
Active: failed (Result: exit-code) since Thu 2014-11-06 15:26:55 EST; 5min ago
Process: 14980 ExecStart=/etc/init.d/helios-master start (code=exited, status=203/EXEC)

Nov 06 15:26:55 docker01 systemd[14980]: Failed at step EXEC spawning /etc/init.d/helios-master: Exec format error
Nov 06 15:26:55 docker01 systemd[1]: helios-master.service: control process exited, code=exited status=203
Nov 06 15:26:55 docker01 systemd[1]: Failed to start LSB: Helios master daemon.
Nov 06 15:26:55 docker01 systemd[1]: Unit helios-master.service entered failed state.

Error Agent

root@docker01:/home/nodo/helios# /etc/init.d/helios-agent status
â helios-agent.service - LSB: Helios agent daemon
   Loaded: loaded (/etc/init.d/helios-agent)
   Active: failed (Result: exit-code) since Thu 2014-11-06 15:21:32 EST; 12min ago
  Process: 14919 ExecStart=/etc/init.d/helios-agent start (code=exited, status=203/EXEC)

Nov 06 15:21:32 docker01 systemd[14919]: Failed at step EXEC spawning /etc/init.d/helios-agent: Exec format error
Nov 06 15:21:32 docker01 systemd[1]: helios-agent.service: control process exited, code=exited status=203
Nov 06 15:21:32 docker01 systemd[1]: Failed to start LSB: Helios agent daemon.
Nov 06 15:21:32 docker01 systemd[1]: Unit helios-agent.service entered failed state.

thx for all

Doesn't run in 250 MB RAM

Hi,

I tried your mvn clean test and ran into a "There is insufficient memory for the Java Runtime Environment to continue." issue, not sure why you need more than 250MB to build helios, doesn't seem too big of an application.

Best Regards,

Docker 1.3.x regression: Entrypoint overrides Cmd

The coreos/etcd image is packages using the golang:onbuild base image, which causes the Cmd to end up in a base layer.

The helios agent only looks for Cmd/Entrypoint in the last image layer when it decorates and creates the container command line. So the container ends up with only syslog-redirector in the command line, which then immediately exits when the agent tries to start the container.

Helios CLI outputs invalid JSON

helios jobs -d a,b -u dxia --json foobar

returns

{
"a":
job pattern foobar matched no jobs
,
"b":
{
  "foobar" : {
    "command" : [ "-v", "--syslog" ],
    "creatingUser" : null,
    "env" : { },
    "expires" : null,
    "gracePeriod" : null,
    "id" : "foobar",
    "image" : "registry:80/spotify/foobar",
  }
}
}

helios hosts -d a,b host1 --json returns

{
"a":
  {
  "host1" : {
    ...
  },
}
,

"b":
host pattern host1 matched no hosts
}

Specify Zookeeper root path

Hi,
It would be great if we can specify zookeeper root path like "<ZK_HOST:ZK_PORT>/zkpath". This will help in the case where multiple services are using same zookeeper cluster.

Poor helios create error message

The below command fails with a pretty useless error message: "version".

$ helios create busybox test:1 -p foo=4711 -r foobar -- sh -c "while :; do sleep 1; done"
version

The error is that I mixed up the name:version and image parts. Preferably the error message should be something more descriptive.

Forward logs to remote syslog

Just wanted to know if we can forward logs to a remote syslog with custom TAG or APP_NAME (as defined in rsyslog documentation, helps in creating separate template based on these). If yes then I really don't see this anywhere in documentation.

helios CLI JSON output will break if too many versions behind latest release

If anyone uses a specific version of helios-tools and relies on the JSON output from CliMain, it will break if they are too many versions behind.

The JSON output will have

WARN  [2014-10-29 17:16:07,691] com.spotify.helios.client.HeliosClient: Your Helios client is nearly out of date.  Please upgrade to [0.8.40]

Helios Agent State Start

ubuntu@:~$ helios status -z http://localhost:5801
JOB ID HOST GOAL STATE CONTAINER ID PORTS
buildbot:v2:e237916 buildbot.mysite.com.br. START

Sirs,

So I have created a job and associated to a agent, now I want to start this.

I ran the deploy and that's how I got here, how do I run it now?

01:49:13.337 helios[25032]: ERROR [Reactor(zk-client-async-init)] AgentZooKeeperRegistrar: Another agent already registered as 'buildbot.mysite.com.br' (local=20991C1EAA066296722D5AB72CD98EB6126B0A55 remote=C4B368CF71B1F372BC9E12D30A87A936CEAEBE44).
java.lang.IllegalStateException: Expected the service to be RUNNING, but the service has FAILED
at com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:285)
at com.google.common.util.concurrent.AbstractService.awaitRunning(AbstractService.java:229)
at com.google.common.util.concurrent.AbstractIdleService.awaitRunning(AbstractIdleService.java:151)
at com.spotify.helios.agent.AgentMain.main(AgentMain.java:71)
Caused by: java.lang.IllegalStateException: Expected the service to be RUNNING, but was STOPPING
at com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:288)
at com.google.common.util.concurrent.AbstractService.awaitRunning(AbstractService.java:229)
at com.google.common.util.concurrent.AbstractIdleService.awaitRunning(AbstractIdleService.java:151)
at com.spotify.helios.agent.AgentMain.startUp(AgentMain.java:58)
at com.google.common.util.concurrent.AbstractIdleService$2$1.run(AbstractIdleService.java:54)
at com.google.common.util.concurrent.Callables$3.run(Callables.java:95)
at java.lang.Thread.run(Thread.java:745)
01:49:13.350 helios[25032]: ERROR [AgentMain STARTING] UncaughtExceptionLogger: Uncaught exception in thread Thread[AgentMain STARTING,5,main]
java.lang.IllegalStateException: Expected the service to be RUNNING, but was STOPPING
at com.google.common.util.concurrent.AbstractService.checkCurrentState(AbstractService.java:288) ~[helios-services-0.8.9-shaded.jar:0.8.9]
at com.google.common.util.concurrent.AbstractService.awaitRunning(AbstractService.java:229) ~[helios-services-0.8.9-shaded.jar:0.8.9]
at com.google.common.util.concurrent.AbstractIdleService.awaitRunning(AbstractIdleService.java:151) ~[helios-services-0.8.9-shaded.jar:0.8.9]
at com.spotify.helios.agent.AgentMain.startUp(AgentMain.java:58) ~[helios-services-0.8.9-shaded.jar:0.8.9]
at com.google.common.util.concurrent.AbstractIdleService$2$1.run(AbstractIdleService.java:54) ~[helios-services-0.8.9-shaded.jar:0.8.9]
at com.google.common.util.concurrent.Callables$3.run(Callables.java:95) ~[helios-services-0.8.9-shaded.jar:0.8.9]
at java.lang.Thread.run(Thread.java:745) ~[na:1.7.0_65]

Artifacts missing for Helios 0.8.130

Hi,

recently I updated my infrastructure to the latest deb release (0.8.130). However at client side I'm only able to reference versions up to 0.8.129. Looks to me like the artifacts haven't been pushed to Sonatype OSS?

Best regards,
tom

Tests take a looong time to run

Here's a list of the tests from slowest to fastest:

grep elapsed jenkins_log --text | cut -d' ' -f12- | sort --reverse --numeric-sort | pbcopy

464.756 sec - in com.spotify.helios.testing.TemporaryJobsTest
328.226 sec - in com.spotify.helios.system.ZooKeeperHeliosFailoverTest
271.071 sec - in com.spotify.helios.system.FlappingTest
188.109 sec - in com.spotify.helios.system.ClusterDeploymentTest
170.534 sec - in com.spotify.helios.system.TerminationTest
166.056 sec - in com.spotify.helios.system.JobExpirationTest
156.119 sec - in com.spotify.helios.system.DeploymentTest
154.83 sec - in com.spotify.helios.servicescommon.coordination.ZooKeeperUpdatingPersistentDirectoryTest
139.597 sec - in com.spotify.helios.system.JobHistoryTest
105.801 sec - in com.spotify.helios.system.MultiplePortJobTest
103.995 sec - in com.spotify.helios.system.AgentRestartTest
96.806 sec - in com.spotify.helios.system.ZooKeeperRestoreTest
88.286 sec - in com.spotify.helios.system.CliJobCreationTest
80.976 sec - in com.spotify.helios.system.VersionResponseFilterTest
75.941 sec - in com.spotify.helios.system.DnsServerTest
73.574 sec - in com.spotify.helios.system.CliDeploymentTest
72.11 sec - in com.spotify.helios.system.AgentZooKeeperDownTolerationTest
66.426 sec - in com.spotify.helios.servicescommon.coordination.PersistentPathChildrenCacheTest
62.873 sec - in com.spotify.helios.system.VolumeTest
58.444 sec - in com.spotify.helios.system.ZooKeeperClusterIdTest
57.322 sec - in com.spotify.helios.system.QueryFailureTest
54.234 sec - in com.spotify.helios.system.UndeployFilteringTest
51.319 sec - in com.spotify.helios.system.ContainerHostNameTest
50.723 sec - in com.spotify.helios.system.ReapingTest
37.988 sec - in com.spotify.helios.system.JobWatchExactTest
30.691 sec - in com.spotify.helios.system.PredefinedPortImageDeploymentTest
30.166 sec - in com.spotify.helios.system.EnvironmentVariableTest
27.832 sec - in com.spotify.helios.system.VersionCommandTest
27.132 sec - in com.spotify.helios.testing.ProberTest
26.668 sec - in com.spotify.helios.system.JobServiceRegistrationTest
24.734 sec - in com.spotify.helios.system.NamespaceTest
22.545 sec - in com.spotify.helios.agent.QueueingHistoryWriterTest
21.258 sec - in com.spotify.helios.system.DeregisterTest
20.753 sec - in com.spotify.helios.system.JobWatchTest
20.485 sec - in com.spotify.helios.system.MasterServiceRegistrationTest
20.029 sec - in com.spotify.helios.system.JobListTest
19.884 sec - in com.spotify.helios.system.ConfigFileJobCreationTest
19.842 sec - in com.spotify.helios.system.ImageMissingTest
18.014 sec - in com.spotify.helios.system.ZooKeeperNamespacingTest
17.256 sec - in com.spotify.helios.system.AgentReportingTest
14.763 sec - in com.spotify.helios.system.PortCollisionJobTest
13.943 sec - in com.spotify.helios.system.IdMismatchJobCreateTest
13.805 sec - in com.spotify.helios.system.UndeployRaceTest
11.055 sec - in com.spotify.helios.testing.ConfigTest
11.044 sec - in com.spotify.helios.system.CliMasterListTest
10.843 sec - in com.spotify.helios.ZooKeeperMasterModelIntegrationTest
10.083 sec - in com.spotify.helios.system.MasterRespondsWithNoZKTest
7.303 sec - in com.spotify.helios.servicescommon.coordination.ZooKeeperHealthCheckerTest
5.449 sec - in com.spotify.helios.system.AgentStateDirConflictTest
2.992 sec - in com.spotify.helios.agent.SupervisorTest
2.785 sec - in com.spotify.helios.agent.GracePeriodTest
1.758 sec - in com.spotify.helios.agent.AgentTest
1.736 sec - in com.spotify.helios.servicescommon.SentryTest
1.418 sec - in com.spotify.helios.master.ExpiredJobReaperTest
1.407 sec - in com.spotify.helios.agent.TaskMonitorTest
1.39 sec - in com.spotify.helios.agent.DockerHealthCheckerTest
1.372 sec - in com.spotify.helios.servicescommon.ZooKeeperRegistrarTest
1.367 sec - in com.spotify.helios.agent.TaskRunnerTest
1.17 sec - in com.spotify.helios.common.descriptors.JobTest
1.076 sec - in com.spotify.helios.system.MasterResolutionFailureMessageTest
0.991 sec - in com.spotify.helios.common.descriptors.TaskStatusTest
0.962 sec - in com.spotify.helios.common.JsonTest
0.924 sec - in com.spotify.helios.testing.DefaultDeployerTest
0.908 sec - in com.spotify.helios.common.JobValidatorTest
0.798 sec - in com.spotify.helios.servicescommon.ResolverConfReaderTest
0.766 sec - in com.spotify.helios.servicescommon.RiemannHeartBeatTest
0.717 sec - in com.spotify.helios.agent.MonitoredDockerClientTest
0.712 sec - in com.spotify.helios.testing.TempJobsProfileOverrideTest
0.613 sec - in com.spotify.helios.common.descriptors.JobIdTest
0.576 sec - in com.spotify.helios.cli.CliParserTest
0.488 sec - in com.spotify.helios.cli.CliConfigTest
0.428 sec - in com.spotify.helios.agent.FlapControllerTest
0.382 sec - in com.spotify.helios.common.PomVersionTest
0.27 sec - in com.spotify.helios.common.context.ContextTest
0.268 sec - in com.spotify.helios.common.VersionCompatibilityTest
0.205 sec - in com.spotify.helios.servicescommon.NoOpRiemannClientTest
0.201 sec - in com.spotify.helios.agent.PortAllocatorTest
0.195 sec - in com.spotify.helios.cli.OutputTest
0.177 sec - in com.spotify.helios.cli.command.HostResolverTest
0.144 sec - in com.spotify.helios.testing.HostPickingStrategiesTest
0.054 sec - in com.spotify.helios.system.SyslogRedirectionTest
0.042 sec - in com.spotify.helios.system.ZooKeeperCuratorFailoverTest

Build Failure Problem!

After running these commands I got this !!

vagrant up

set DOCKER_HOST to use the Docker instance inside the VM

$ export DOCKER_HOST=tcp://192.168.33.10:2375
Actually building Helios and running its tests should be a simple matter of running:

$ mvn clean test

Results :

Tests in error:
UndeployRaceTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
BadImageNameTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ImageMissingTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
AgentReportingTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ConfigFileJobCreationTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionResponseFilterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionResponseFilterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionResponseFilterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionResponseFilterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionResponseFilterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
IdMismatchJobCreateTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionResponseFilterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ZooKeeperHeliosFailoverTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
DeregisterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
PredefinedPortImageDeploymentTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
MasterRespondsWithNoZKTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ZooKeeperHeliosFailoverTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
DeregisterTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ReapingTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
JobWatchExactTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
JobServiceRegistrationTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ContainerHostNameTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionCommandTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
MasterServiceRegistrationTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
UndeployFilteringTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
AgentZooKeeperDownTolerationTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionCommandTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
UndeployFilteringTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
FlappingTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
DnsServerTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionCommandTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
JobWatchTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
JobHistoryTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
DnsServerTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VersionCommandTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VolumeTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
CliDeploymentTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ClusterDeploymentTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
AgentRestartTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
VolumeTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
EnvironmentVariableTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
JobListTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
JobExpirationTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
QueryFailureTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
MultiplePortJobTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
PortCollisionJobTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ZooKeeperRestoreTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ZooKeeperRestoreTest.teardown:80 NullPointer
QueryFailureTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
DeploymentTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
NamespaceTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ZooKeeperRestoreTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
ZooKeeperRestoreTest.teardown:80 NullPointer
QueryFailureTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout
QueryFailureTest>SystemTestBase.dockerSetup:229->SystemTestBase.assertDockerReachable:239 » DockerTimeout

Tests run: 59, Failures: 0, Errors: 55, Skipped: 2

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Helios Parent ..................................... SUCCESS [1.622s]
[INFO] Helios Client ..................................... SUCCESS [5.143s]
[INFO] Helios Service Registration ....................... SUCCESS [0.369s]
[INFO] Helios Tools ...................................... SUCCESS [2.216s]
[INFO] Helios Testing Common Library ..................... SUCCESS [0.805s]
[INFO] Helios Services ................................... SUCCESS [1:18.416s]
[INFO] Helios System Tests ............................... FAILURE [2:42.925s]
[INFO] Helios Testing Library ............................ SKIPPED
[INFO] Helios Integration Tests .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4:11.747s
[INFO] Finished at: Tue Aug 12 22:57:32 IST 2014
[INFO] Final Memory: 34M/315M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project helios-system-tests: There are test failures.
[ERROR]
[ERROR] Please refer to /Github/helios/helios-system-tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :helios-system-tests

ProberTest leaves 2 containers running

ProberTest.java leaves 2 containers running:

f18ba7c03d20        busybox:buildroot-2014.02   sh -c 'while :; do s   10 minutes ago      Up 10 minutes  0.0.0.0:27918->4712/tcp   helios-34B1BDF9AFD2DEAAD64DE7CE5AAE1552C2419B67-tmp-20141104-484bcc76_busybox_98f2855f_f85f649_f2a24bdb
7710f604bb8d        busybox:buildroot-2014.02   sh -c 'while :; do s   10 minutes ago      Up 10 minutes       0.0.0.0:27917->4711/tcp   helios-34B1BDF9AFD2DEAAD64DE7CE5AAE1552C2419B67-tmp-20141104-484bcc76_busybox_b66a83f7_0166f50_c059fb81

mvn install installs broken pom

The pom that gets installed if I do mvn install contains an unexpanded variable. The excerpt of
~/.m2/repository/com/spotify/helios-parent/0.8.0-SNAPSHOT/ has this:

 <version>0.8.${revision}</version>

So I figured, ok, I'll do mvn clean package -DskipTests -Drevision=0 install, which doesn't work either (formatting adjusted)

[ERROR] Failed to execute goal on project helios-services: Could not resolve dependencies for 
project com.spotify:helios-services:jar:0.8.0: Failed to collect dependencies for 
[com.spotify.docgenerator:scanner:jar:0.0.1 (compile), io.dropwizard:dropwizard-core:jar:0.7.1 
(compile), com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.4.1 (compile), 
com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.4.1 (compile), 
com.fasterxml.jackson.datatype:jackson-datatype-guava:jar:2.4.1 (compile), com.spotify:helios-
client:jar:0.8.0 (compile), com.spotify:helios-service-registration:jar:0.8.0 (compile), commons-
codec:commons-codec:jar:1.8 (compile), org.apache.httpcomponents:httpclient:jar:4.3.5 (compile), 
joda-time:joda-time:jar:2.3 (compile), com.fasterxml.jackson.core:jackson-databind:jar:2.4.1 
(compile), com.google.guava:guava:jar:17.0 (compile), org.apache.curator:curator-recipes:jar:2.5.0 
(compile), ch.qos.logback:logback-classic:jar:1.1.2 (compile), ch.qos.logback:logback-core:jar:1.1.2 
(compile), ch.qos.logback:logback-access:jar:1.1.1 (compile), net.kencochrane.raven:raven-
logback:jar:4.1.1 (compile), com.yammer.metrics:metrics-core:jar:2.2.0 (compile), 
io.netty:netty:jar:3.8.0.Final (compile), org.slf4j:slf4j-api:jar:1.7.6 (compile), 
net.sourceforge.argparse4j:argparse4j:jar:0.4.3 (compile), com.readytalk:metrics3-statsd:jar:4.1.0 
(compile), com.sun.jersey:jersey-server:jar:1.18.1 (compile), com.sun.jersey:jersey-client:jar:1.18.1 
(compile), com.sun.jersey:jersey-core:jar:1.18.1 (compile), com.spotify:docker-client:jar:2.6.5 
(compile), com.spotify:logging:jar:2.0.17 (compile), com.spotify:helios-testing-common:jar:0.8.0 
(test), com.spotify:helios-tools:jar:0.8.0 (test), commons-io:commons-io:jar:2.4 (test), 
junit:junit:jar:4.11 (test), org.mockito:mockito-all:jar:1.9.5 (test), org.hamcrest:hamcrest-library:jar:1.3
(test), com.aphyr:riemann-java-client:jar:0.2.10 (compile), com.google.protobuf:protobuf-
java:jar:2.5.0 (compile), com.intellij:annotations:jar:12.0 (provided)]: Failed to read artifact descriptor 
for com.spotify:helios-client:jar:0.8.0-SNAPSHOT: Could not transfer artifact com.spotify:helios-
parent:pom:0.8.${revision} from/to clojars.org (http://clojars.org/repo): Illegal character in path at 
index 55: http://clojars.org/repo/com/spotify/helios-parent/0.8.${revision}/helios-parent-
0.8.${revision}.pom -> [Help 1]

Is there a way to do a mvn install that works?

helios remove: unexpected ambiguous job reference error

$ helios remove test:1
Ambiguous job reference: test:1

$ helios jobs test:1
JOB ID                              NAME                      VERSION    HOSTS    COMMAND                              ENVIRONMENT
cassandra-test:1:5d62594            cassandra-test            1          0
test:1:153de22                      test                      1          0        sh -c "while :; do sleep 1; done"
user-profile-view-test:1:023f78c    user-profile-view-test    1          0        -vvv

Given that helios enforces the uniqueness of test:1, it should not be ambiguous. Maybe we shouldn't do substring job id search the way we do.

I can redploy a job to a host that has that same job in grace period

Feels like it should return with JOB_ALREADY_DEPLOYED until the job is actually stopped. I don't know if bad things will happen if this is allowed, eg master and agent lose track of the job and there's just this ghost job floating around that you can't remove or start?

Close method in service registrar not being called on shutdown

Hi,

I'm writing a service registrar plugin for Helios and Consul (http://consul.io), based on your SkyDNS plugin! On agent shutdown, I want to unregister all services registered by the agent and have implemented this in the method ServiceRegistrar/close (something like this: https://github.com/spotify/helios-skydns/blob/master/src/main/java/com/spotify/helios/serviceregistration/skydns/SkyDnsServiceRegistrar.java#L121). However, this code never seems to be executed!

The shutDown-method in AgentService is calling the close method on the service registry (

), but I don't understand when shutDown is called?

I'm using Helios 0.8.14, Ubuntu 14.04 with upstart and Java 1.7.0_65!

Best regards,
Anton

Run helios in tow host

I have helios running on a host, it works fine, but I would add another host, on host2 only required to install docker, zookeeper, helios-agent helios-services ???

The master is on host1 helios, I put in the settings, the address of host2 and does not work.
It proved necessary to make other settings ???

My setup is this:
/etc/default/helios-master

ENABLED = true
HELIOS_MASTER_OPTS = "--syslog --zk localhost:2181, host2:2128 --http --admin"
HELIOS_MASTER_JVM_OPTS = "-Xms256m"

thx for all

Undeploying job does not work if zookeeper namespace is used

I'm running helios with --zk-namespace helios. When trying to undeploy a job, helios always returns JOB_NOT_FOUND. The reason for this, is that ZookeeperMasterModel.undeployJob turns any NoNodeException into a JobNotDeployedException. That by itself is OK, but it seems that helios forgets about the zookeeper namespace in some of its ZK requests during undeploy. I was not able to find which request, though. Here's the (sanitized) ZK debug log for the undeploy call:

450038 [dw-33 - DELETE /hosts/r1.eu1.test.int.ts.tt/jobs/es:v3:93a150116e9830d8171b17262de376553277c4b0?user=jan] INFO  c.s.h.master.ZooKeeperMasterModel - undeploying es:v3:93a150116e9830d8171b17262de376553277c4b0: r1.eu1.test.int.ts.tt 
450040 [MasterMain STARTING-SendThread(gw1.eu1.test.int.ts.tt:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x149f6de6ba10009, packet:: clientPath:null serverPath:null finished:false header:: 140,4  replyHeader:: 140,4688,0  request:: '/helios/config/hosts/r1.eu1.test.int.ts.tt,F  response:: ,s{137,137,1417448169505,1417448169505,0,3,0,0,0,3,142}  
450041 [MasterMain STARTING-SendThread(gw1.eu1.test.int.ts.tt:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x149f6de6ba10009, packet:: clientPath:null serverPath:null finished:false header:: 141,4  replyHeader:: 141,4688,0  request:: '/helios/config/hosts/r1.eu1.test.int.ts.tt/jobs/es:v3:93a150116e9830d8171b17262de376553277c4b0,F  response:: #7b2[...]d7d,s{207,259,1417448801803,1417449216339,3,1,0,0,415,1,207}  
450042 [MasterMain STARTING-SendThread(gw1.eu1.test.int.ts.tt:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x149f6de6ba10009, packet:: clientPath:null serverPath:null finished:false header:: 142,4  replyHeader:: 142,4688,0  request:: '/helios/config/jobs/es:v3:93a150116e9830d8171b17262de376553277c4b0,F  response:: #7b2[...]d7d,s{202,202,1417448747221,1417448747221,0,2,0,0,373,2,202}  
450044 [MasterMain STARTING-SendThread(gw1.eu1.test.int.ts.tt:2181)] DEBUG org.apache.zookeeper.ClientCnxn - Reading reply sessionid:0x149f6de6ba10009, packet:: clientPath:null serverPath:null finished:false header:: 143,8  replyHeader:: 143,4688,-101  request:: '/config/hosts/r1.eu1.test.int.ts.tt/jobs/es:v3:93a150116e9830d8171b17262de376553277c4b0,F  response:: v{}  

As you can see, the last request was for /config/hosts/r1.eu1.test.int.ts.tt/jobs/..., forgetting about the /helios prefix, resulting in ZK not finding in the node, resulting (presumably) in helios concluding that the job doesn't exist.

Confusing error message for "status --host"

I was trying to confirm no jobs were running on my host, so I ran this:

$ helios status --host myhost
host pattern myhost matched no hosts

This makes it sound like I gave an invalid hostname. But I deployed a job, and ran the command and got this:

$ helios status --host myhost
JOB ID                 HOST                     GOAL     STATE     CONTAINER ID    PORTS
ryan-test:1:e51bef3    myhost    START    EXITED    df29dec

The message should make a clear distinction between there being no jobs on a host, and someone providing a hostname which doesn't match any known hosts.

FlappingTest times out with vagrant + virtualbox 4.3.12

to repro:

  • vagrant up with virtualbox 4.3.12
  • on latest master DOCKER_HOST=tcp://localhost:2375 mvn clean test
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 51.764 sec - in com.spotify.helios.system.ReapingTest
Running com.spotify.helios.system.VolumeTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.182 sec - in com.spotify.helios.system.VersionResponseFilterTest
Running com.spotify.helios.system.ZooKeeperCuratorFailoverTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.17 sec - in com.spotify.helios.system.ZooKeeperCuratorFailoverTest
Running com.spotify.helios.system.ZooKeeperHeliosFailoverTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 41.193 sec - in com.spotify.helios.system.VersionCommandTest
Running com.spotify.helios.system.ZooKeeperRestoreTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 37.002 sec - in com.spotify.helios.system.ZooKeeperHeliosFailoverTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.01 sec - in com.spotify.helios.system.ZooKeeperRestoreTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 610.651 sec <<< FAILURE! - in com.spotify.helios.system.FlappingTest
test(com.spotify.helios.system.FlappingTest)  Time elapsed: 610.313 sec  <<< ERROR!
java.util.concurrent.TimeoutException: null
    at com.spotify.helios.Polling.await(Polling.java:44)
    at com.spotify.helios.system.FlappingTest.test(FlappingTest.java:70)

After trying with vmware via vagrant up --provider=vmware_fusion it still failed on the same tests.

Running com.spotify.helios.system.ZooKeeperRestoreTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 36.236 sec - in com.spotify.helios.system.ZooKeeperHeliosFailoverTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 28.119 sec - in com.spotify.helios.system.ZooKeeperRestoreTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 611.682 sec <<< FAILURE! - in com.spotify.helios.system.FlappingTest
test(com.spotify.helios.system.FlappingTest)  Time elapsed: 611.258 sec  <<< ERROR!
java.util.concurrent.TimeoutException: null
    at com.spotify.helios.Polling.await(Polling.java:44)
    at com.spotify.helios.system.FlappingTest.test(FlappingTest.java:70)





Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1,227.996 sec <<< FAILURE! - in com.spotify.helios.system.VolumeTest
testCli(com.spotify.helios.system.VolumeTest)  Time elapsed: 615.904 sec  <<< ERROR!
java.util.concurrent.TimeoutException: null
    at com.spotify.helios.Polling.await(Polling.java:44)
    at com.spotify.helios.system.VolumeTest.recv(VolumeTest.java:129)
    at com.spotify.helios.system.VolumeTest.recvUtf8(VolumeTest.java:123)
    at com.spotify.helios.system.VolumeTest.assertVolumes(VolumeTest.java:115)
    at com.spotify.helios.system.VolumeTest.testCli(VolumeTest.java:88)

testClient(com.spotify.helios.system.VolumeTest)  Time elapsed: 609.76 sec  <<< ERROR!
java.util.concurrent.TimeoutException: null
    at com.spotify.helios.Polling.await(Polling.java:44)
    at com.spotify.helios.system.VolumeTest.recv(VolumeTest.java:129)
    at com.spotify.helios.system.VolumeTest.recvUtf8(VolumeTest.java:123)
    at com.spotify.helios.system.VolumeTest.assertVolumes(VolumeTest.java:115)
    at com.spotify.helios.system.VolumeTest.testClient(VolumeTest.java:82)


Results :

Tests in error:
  FlappingTest.test:70 » Timeout
  VolumeTest.testCli:88->assertVolumes:115->recvUtf8:123->recv:129 » Timeout
  VolumeTest.testClient:82->assertVolumes:115->recvUtf8:123->recv:129 » Timeout

Tests run: 52, Failures: 0, Errors: 3, Skipped: 3

Authentication when pulling from 3rd party repos not supported

I could not find how to have docker authenticate to a 3rd party repo for pulling, when creating a helios job. This would be the equivalent to doing docker login before a docker pull myserver.com/path/image, when interacting with docker from the command line. In our case, myserver.com is quay.io.

It seems that docker's REST API wants an X-Registry-Auth header on the /pull call; I unfortunately could find no trace of support for that in the spotify java docker client either.

Am I holding it wrong? How are others using private docker repos? Unauthenticated behind a firewall?

helios status --json doesn't respect --host switch

helios status -d domain1 --job foo-job --host bar-host.exmple.com --json gives me foo-job's status on all hosts and ignores the --host switch.

Interestingly helios status -d domain1 --job foo-job --host bar-host.exmple.com respects the host switch

Undeploying a job in grace period throws exception in master

If I try to undeploy a job that's in grace period, master throws an exception. Once the job has stopped, undeploying gives the expected response.

helios undeploy -z tcp://localhost:5801 ad-event-tracker:TEST testagent001

Undeploying ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d from [testagent001]
testagent001: com.spotify.helios.common.HeliosException: request failed: Response{method='DELETE', uri=http://helios/hosts/testagent001/jobs/ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d?user=david, status=500, payload=<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 There was an error processing your request. It has been logged (ID b5c9a44c2c9acbd0).
</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /hosts/testagent001/jobs/ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d. Reason:
<pre>    There was an error processing your request. It has been logged (ID b5c9a44c2c9acbd0).
</pre></p><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

output from master

10:26:03.939 helios[19256]: ERROR [qtp2101269244-37 - DELETE /hosts/testagent001/jobs/ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d?user=david] LoggingExceptionMapper: Error handling a request: b5c9a44c2c9acbd0
java.lang.NullPointerException: null
    at com.spotify.helios.master.ZooKeeperMasterModel.undeployJob(ZooKeeperMasterModel.java:889) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.spotify.helios.master.resources.HostsResource.jobDelete(HostsResource.java:187) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_45]
    at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_45]
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.spotify.helios.master.metrics.ReportingResourceMethodDispatcher.dispatch(ReportingResourceMethodDispatcher.java:52) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.yammer.metrics.jersey.InstrumentedResourceMethodDispatchProvider$TimedRequestDispatcher.dispatch(InstrumentedResourceMethodDispatchProvider.java:32) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.yammer.metrics.jersey.InstrumentedResourceMethodDispatchProvider$ExceptionMeteredRequestDispatcher.dispatch(InstrumentedResourceMethodDispatchProvider.java:71) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.yammer.dropwizard.jersey.OptionalResourceMethodDispatchAdapter$OptionalRequestDispatcher.dispatch(OptionalResourceMethodDispatchAdapter.java:37) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1448) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.spotify.helios.master.http.VersionResponseFilter.doFilter(VersionResponseFilter.java:99) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.yammer.dropwizard.servlets.ThreadNameFilter.doFilter(ThreadNameFilter.java:29) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.yammer.metrics.jetty.InstrumentedHandler.handle(InstrumentedHandler.java:200) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.handler.GzipHandler.handle(GzipHandler.java:301) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at com.yammer.dropwizard.jetty.BiDiGzipHandler.handle(BiDiGzipHandler.java:123) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.Server.handle(Server.java:368) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.server.nio.BlockingChannelConnector$BlockingChannelEndPoint.run(BlockingChannelConnector.java:298) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [helios-services-0.8.14-SNAPSHOT-shaded.jar:0.8.14-SNAPSHOT]
    at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]

(job has stopped at this point)

10:26:05.768 helios[19256]: INFO  [qtp2101269244-38 - DELETE /hosts/testagent001/jobs/ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d?user=david] ZooKeeperMasterModel: undeploying ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d: testagent001
10:26:07.358 helios[19256]: INFO  [qtp2101269244-39 - DELETE /hosts/testagent001/jobs/ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d?user=david] ZooKeeperMasterModel: undeploying ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d: testagent001
10:26:08.660 helios[19256]: INFO  [qtp2101269244-34 - DELETE /hosts/testagent001/jobs/ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d?user=david] ZooKeeperMasterModel: undeploying ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d: testagent001
10:26:09.877 helios[19256]: INFO  [qtp2101269244-35 - DELETE /hosts/testagent001/jobs/ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d?user=david] ZooKeeperMasterModel: undeploying ad-event-tracker:TEST:7929ece81a2dd2b955e73c910cfd254d40edbf1d: testagent001

dont deploy jobs with links containers

Sorry for this issue in first time.

Have some posibility for that helios deploy jobs with links.

The docker has posibility the --link.

Helios has it?

`helios masters -d <domain1,domain2> --json` not valid JSON

helios masters -d ash,sto --json

{
"ash":
ash2-heliosmaster-a4.ash2
ash2-heliosmaster-a3.ash2
ash2-heliosmaster-a1.ash2
ash2-heliosmaster-a2.ash2
ash2-heliosmaster-a5.ash2
,

"sto":
sto3-heliosmaster-a1.sto3
sto3-heliosmaster-a5.sto3
sto3-heliosmaster-a4.sto3
sto3-heliosmaster-a3.sto3
sto3-heliosmaster-a2.sto3
}

not providing scheme with -z creates weirdly mangled URI

mango@fruitbox:(master u=):~/workshop_test$ helios status -z some.fqdn.net
java.net.URISyntaxException: Relative path in absolute URI: http://null:-1some.fqdn.net/jobs?user=mango
mango@fruitbox:(master u=):~/workshop_test$ helios status -z some.fqdn.net:4242
java.net.URISyntaxException: Relative path in absolute URI: http://null:-1null/jobs?user=mango

Create from file with id and image as arg

Seems like you can't specify the id and image as command line arguments if you supply the --file argument. If the id and/or image is not specified, an error like this is returned;

Instantiation of [simple type, class com.spotify.helios.common.descriptors.Job] value failed: id

Release archive encrypted

Downloading and extracting the release archive causes an error:

$ wget https://github.com/spotify/helios/releases/download/0.8.37/helios-debs.tar.gz
$ tar -ztf helios-debs.tar.gz 
gzip: stdin is encrypted -- not supported
tar: Child returned status 1
tar: Error is not recoverable: exiting now

The last working version is 0.8.22 where the archive was last named debs.tgz.

Why does Docker concatenate hostname and domainname in 1.3.x?

It seems like docker 1.3 fails to create containers when we set the container hostname to be over 17 characters.

This line was deleted in this commit as preparation to upgrade to Docker 1.3. But it'd be nice to know the source of this limitation.

The code block below pertains to this line of code:

// Setting the hostname to this 17-character string works when interacting with docker
builder.hostname("aaaaaaaaaaaaaaaaa");
// But setting the hostname to this 18-character string doesn't work
builder.hostname("aaaaaaaaaaaaaaaaaa");
// Other examples of hostnames that work: "ad-server-proxy-s"
// Other examples of hostnames that don't work: "ad-server-proxy-sn"

ERROR [Reactor(agent)] Reaper: reaping failed

Hi!

I've downloaded, compiled and installed succesfully the helios-master and agent on two different machines. Zookeeper was installed and working... so to start the all the services

On the master machine:

  • I manually start the zookeeper with
$ /usr/share/zookeeper/bin/zkServer.sh start
  • I start helios master (on the master machine duh)
$ bin/helios-master

On the agent machine:

  • I manually start the docker daemon
$ docker -d
  • start the helios agent pointing to the master machine
$ bin/helios-agent --zk x.x.x.x:2181

After this if I "helios hosts" on the helios master, I can see how the helios "slave" is added and seems healthy!

helios# helios hosts
running in helios project, using /home/ubuntu/helios/helios-tools/target/helios-tools-0.5.1-SNAPSHOT-shaded.jar
HOST                 STATUS           DEPLOYED    RUNNING    CPUS    MEM     LOAD AVG    MEM USAGE    OS                         VERSION           DOCKER    
ip-172-31-34-184.    Up 21 minutes    0           0          2       3 gb    0.00        0.32         Linux 3.13.0-29-generic    0.5.1-SNAPSHOT              

and no errors are output on neither master or agent logs (stderr), but if I create a simple nginx container, I get the "Reaper reaping failed" and the helios status just shows FAILED for that job.

Here is the log file of the helios agent machine.

I dug a bit into the source code (com.spotify.helios.agent.Reaper.reap0(Reaper.java:60) and it seems that the listContainers is causing the problem, the odd thing is that when I run the docker ps on the agent machine it works fine, and the docker daemon seems to be listing as expected.

I have also tried to manually pull the nginx 1.7.1 image in with docker, in the agent machine and it was pulled succesfully.

helios$ docker pull nginx:1.7.1
Pulling repository nginx
61e8f94e1d65: Download complete 
511136ea3c5a: Download complete 
1e8abad02296: Download complete 
f106b5d7508a: Download complete 
...

There is also a connection refused error on the logs, but Im unsure what service its been refused or why, since all services (helios-master and zookeeper on mastermachine, helios-agent and docker -d on agentmachine) seem to be working and with no firewall/network problems.

I'm lost where to follow the problem now... any ideas or comments? :)

I've already tried the Vagrant setup and all is working fine (helios is very very interesting), but wanted to test with different machines!

thanks!

Luis.

vagrant up stalls on maven javadoc plugin error

$ vagrant up
...
==> default: --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ helios-testing ---
==> default: [INFO] The goal 'org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc' has not been previously called for the module: 'com.spotify:helios-system-tests:jar:0.0.31-SNAPSHOT'. Trying to invoke it...
==> default: [ERROR] MavenInvocationException: Error when invoking Maven, consult the invoker log file: /vagrant/helios-testing/target/invoker/maven-javadoc-plugin766161051.txt
==> default: [WARNING] Creating fake javadoc directory to prevent repeated invocations: /vagrant/helios-system-tests/target/apidocs
==> default: [ERROR]
==> default: Error fetching link: /vagrant/helios-system-tests/target/apidocs/package-list. Ignored it.
...
$ cat /vagrant/helios-testing/target/invoker/maven-javadoc-plugin766161051.txt
Invoking Maven for the goals: [org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:javadoc] with no properties

M2_HOME=/usr/share/maven
MAVEN_OPTS=null
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre/..
JAVA_OPTS=null

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Helios System Tests 0.0.31-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-javadoc-plugin:2.9.1:javadoc (default-cli) @ helios-system-tests >>>
Downloading: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-services/0.0.31-SNAPSHOT/maven-metadata.xml
Downloaded: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-services/0.0.31-SNAPSHOT/maven-metadata.xml (972 B at 0.0 KB/sec)
Downloading: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-parent/0.0.31-SNAPSHOT/maven-metadata.xml
Downloaded: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-parent/0.0.31-SNAPSHOT/maven-metadata.xml (582 B at 0.1 KB/sec)
Downloading: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-client/0.0.31-SNAPSHOT/maven-metadata.xml
Downloaded: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-client/0.0.31-SNAPSHOT/maven-metadata.xml (2 KB at 0.1 KB/sec)
Downloading: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-service-registration/0.0.31-SNAPSHOT/maven-metadata.xml
Downloaded: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-service-registration/0.0.31-SNAPSHOT/maven-metadata.xml (770 B at 0.1 KB/sec)
Downloading: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-testing-common/0.0.31-SNAPSHOT/maven-metadata.xml
Downloaded: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-testing-common/0.0.31-SNAPSHOT/maven-metadata.xml (764 B at 0.0 KB/sec)
Downloading: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-tools/0.0.31-SNAPSHOT/maven-metadata.xml
Downloaded: https://artifactory.spotify.net/artifactory/repo/com/spotify/helios-tools/0.0.31-SNAPSHOT/maven-metadata.xml (969 B at 0.1 KB/sec)
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ helios-system-tests ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce) @ helios-system-tests ---
[INFO]
[INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @ helios-system-tests ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:36.422s
[INFO] Finished at: Tue Jul 01 22:51:44 UTC 2014
[INFO] Final Memory: 16M/39M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.12.1:check (validate) on project helios-system-tests: Failed during checkstyle configuration: cannot initialize module Header - unable to load header file java.header -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

User can't specify `-vv` as cmd to run for new job

helios create JOB_ID IMAGE_ID CMD1 -vv doesn't add -vv as a command to run in the newly created job. It makes helios command more verbose instead. Which is expected. But how can users make -vv an intended command?

I was able to workaround this putting -vv in a job config file.

Confusing error message in CLI

helios status -d domainA --host=some-host.example.com

returns the below when it can't find the host

host pattern host.example.com matched no jobs

can't deregister a DOWN host

scenario:

helios -d domain1 hosts shows 2 hosts, 1 DOWN and 1 UP. You can't deregister the down one even with --force

helios deregister -d domain1 --force downed-host says there are jobs deployed even if the host has been destroyed. This can prevent users from creating a new agent that reuses an old hostname.

What's the correct behavior?

Helios web front-end??

Hi do not know if this is place to ask. Helios has a restful API for interacting with helios-master as does helios cli. I would like to contribute to the project, creating a front-end to manage helios via web.

I hope to help this project grow.
Thanks for everything.

Undeployment of containers takes around 2 minutes

Hi guys,

We are trying helios for docker management. Everything is fine except of docker undeployment. I takes around 2 minutes to undeploy the docker containers. Deployment is very fast but undeployment takes time. Can you give me a hint what might be wrong?

i have checked the verbose logs and there is no errors within this 2 minutes.

Any help would be appreciated.

Ivan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.