Return-Path: X-Original-To: apmail-aurora-dev-archive@minotaur.apache.org Delivered-To: apmail-aurora-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4B9491874C for ; Mon, 3 Aug 2015 15:33:16 +0000 (UTC) Received: (qmail 36327 invoked by uid 500); 3 Aug 2015 15:33:11 -0000 Delivered-To: apmail-aurora-dev-archive@aurora.apache.org Received: (qmail 36279 invoked by uid 500); 3 Aug 2015 15:33:11 -0000 Mailing-List: contact dev-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list dev@aurora.apache.org Received: (qmail 36267 invoked by uid 99); 3 Aug 2015 15:33:10 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2015 15:33:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6E8181A960F for ; Mon, 3 Aug 2015 15:33:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.201 X-Spam-Level: **** X-Spam-Status: No, score=4.201 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, KAM_LINEPADDING=1.2, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id kwT2QEIXMFRE for ; Mon, 3 Aug 2015 15:32:59 +0000 (UTC) Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id B375A21379 for ; Mon, 3 Aug 2015 15:32:58 +0000 (UTC) Received: by wicgj17 with SMTP id gj17so110834208wic.1 for ; Mon, 03 Aug 2015 08:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=j+Ma/Roh2iJYg6wgi54eqXiQJ6pUDPdpTQkpC+c6AoM=; b=rNdTl5bU4DfcHTDGv0aPPWu9Vc1YZVPvV0FX/CgYh50zOYwHMM7MLuTzxIKjPZduM2 21+i7a2Pv6D15HhiKUIdanhHsBe2v/MiVl+Bohtkxm15kIa4Bbb3mI/1A9Dre9aBWKSM pKaIFT1Pcycaco9PMGNjiA7zIXZAbLr0vrTOpiD9vdxPPXFdnq8ck4hzoYPges6Lxrn7 Gm90VzEjeYhh+0io9RQPmCnCFYn+WGb2J+BkMafhd+xUzhz4N31XgmAd+YFWLpyEptyI lX0yqaZCwHXj6M5ZibZvjUYhvoB9v641aG0rplurojhfy3QDqZSTcUu66dOSo5QMupsb DA3w== X-Received: by 10.194.205.37 with SMTP id ld5mr37704558wjc.14.1438615888375; Mon, 03 Aug 2015 08:31:28 -0700 (PDT) MIME-Version: 1.0 Sender: outtatime@gmail.com Received: by 10.194.83.103 with HTTP; Mon, 3 Aug 2015 08:31:08 -0700 (PDT) In-Reply-To: References: From: Jay Taylor Date: Mon, 3 Aug 2015 08:31:08 -0700 X-Google-Sender-Auth: bTYaoGYKp7DytsWY0JkuQrXeVb4 Message-ID: Subject: Re: Containers are always being started with `-c "$MESOS_SANDBOX/null"` To: dev@aurora.apache.org Content-Type: multipart/alternative; boundary=047d7bb70c58feb52c051c69dc33 --047d7bb70c58feb52c051c69dc33 Content-Type: text/plain; charset=UTF-8 Hi Steve, Here is my scheduler.sh (I started with examples/scheduler/scheduler-local.sh): > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *#!/usr/bin/env bashset -o errexitset -o pipefailset -x. /etc/profile# An > example scheduler launch script.# It assumes a local ZooKeeper ensemble > running at localhost:2181 and a master under /mesos/master# Location where > aurora-scheduler.zip was > unpacked.AURORA_SCHEDULER_HOME=/usr/local/aurora-scheduler# Flags that > control the behavior of the JVM.JAVA_OPTS=( -server -Xmx1g -Xms1g # > Location of libmesos-XXXX.so / libmesos-XXXX.dylib > -Djava.library.path=/usr/local/lib)# Flags control the behavior of the > Aurora scheduler.# For a full list of available flags, run > bin/aurora-scheduler -helpAURORA_FLAGS=( -cluster_name=gw_hobart # Ports > to listen on. -http_port=8081 -native_log_quorum_size=1 > -zk_endpoints=localhost:2181 > -mesos_master_address=zk://localhost:2181/mesos > -serverset_path=/aurora/scheduler > -native_log_zk_group_path=/aurora/replicated-log > -native_log_file_path="$AURORA_SCHEDULER_HOME/db" > -backup_dir="$AURORA_SCHEDULER_HOME/backups" # TODO(Kevin Sweeney): Point > these to real URLs. -thermos_executor_path=/dev/null > -allowed_container_types='MESOS,DOCKER' -allow_docker_parameters=true > -vlog=FINEST -logtostderr)# Environment variables control the behavior of > the Mesos scheduler driver (libmesos).export GLOG_v=1export > LIBPROCESS_PORT=8083JAVA_OPTS="${JAVA_OPTS[*]}" exec > "$AURORA_SCHEDULER_HOME/bin/aurora-scheduler" "${AURORA_FLAGS[@]}"* And now I see that things are just as you said: invalid "null" thermos.pex path: > *# TODO(Kevin Sweeney): Point these to real URLs.** > -thermos_executor_path=/dev/null* I'll get that sorted and try again. Thank you for your help! On Mon, Aug 3, 2015 at 7:29 AM, Steve Niemitz wrote: > It seems like your scheduler is misconfigured somehow. The args being > passed in the docker container should look like: > [ > "-c", > "$MESOS_SANDBOX/thermos_executor.pex " > ] > > Can you attach the flags you've configured the scheduler with? It looks > like the executor uri flag is somehow wrong (is it possible its actually > "null" in your config?) > > On Sat, Aug 1, 2015 at 5:19 PM, Jay Taylor wrote: > > > Greetings Aurora folks, > > > > I want to get a docker container running on Aurora. > > > > Here is my .aurora file: > > > > > > > *run_process = Process(* > > > * name="my-app",* > > > * cmdline="sleep 300",**)* > > > > > > *app_task = Task(* > > > * name = "my-app",* > > > * processes = [run_process],* > > > * resources = Resources(* > > > * cpu = 1,* > > > * disk = 100*MB,* > > > * ram = 512*MB,* > > > * ),**)* > > > > > > *app_container = Container(* > > > * docker = Docker(* > > > * image = "my-registry:5001/jay/my-app",* > > > * parameters = [* > > > * {* > > > * "name": "env",* > > > * "value": "FOO=BAR",* > > > * },* > > > * ],* > > > * ),**)* > > > > > > *jobs = [* > > > * Service(* > > > * cluster = "test_cluster",* > > > * environment = "devel",* > > > * role = "web-server",* > > > * name = "my-app",* > > > * instances = 1,* > > > * task = app_task,* > > > * container = app_container,* > > > * ),**]* > > > > > > My expectation was that the container would be invoked and "sleep 300" > > would be run inside (for testing purposes). > > > > However, the task almost immediately starts an endless "flapping penalty" > > cycle. > > > > Inspecting one of the failed containers reveals some interesting > > information: > > > > *$ sudo docker inspect 1337afaf7331* > > > > *[{* > > > > * "AppArmorProfile": "",* > > > > * "Args": [* > > > > * "-c",* > > > > * "$MESOS_SANDBOX/null"* > > > > * ],* > > > > * "Config": {* > > > > * "AttachStderr": false,* > > > > * "AttachStdin": false,* > > > > * "AttachStdout": false,* > > > > * "Cmd": [* > > > > * "-c",* > > > > * "$MESOS_SANDBOX/null"* > > > > * ],* > > > > > > Why is the task launch command "$MESOS_SANDBOX/null"? > > > > I also tried to get one of the examples up > > (./src/test/sh/org/apache/aurora/e2e/http/http_example_docker.aurora), > but > > the task immediately starts flapping and no containers even get created. > > > > How can we get control over the -c command sent to docker? > Alternatively, > > if there is some way to prevent the "-c" flag altogether that would work > > too since the docker image already has a perfectly fine CMD defined. > > > > Any insight or information would be GREATLY appreciated!!! > > > > Best regards, > > Jay > > > --047d7bb70c58feb52c051c69dc33--