Giter Site home page Giter Site logo

Comments (6)

mhamrah avatar mhamrah commented on July 21, 2024

I think the problem is here https://github.com/mesosphere/deimos/blob/673b738112e19aeb46a520a229c349cadcb24437/deimos/containerizer/docker.py#L317

There's no path to read the default image from the config file; it goes straight to a lib_mesos lookup and picts an image based on the distribution.

I've been able to circumvent this by passing the container image when launching tasks via marathon.

from deimos.

wkf avatar wkf commented on July 21, 2024

Yah, I've been using the same workaround. It's a little unclear to me what the account_libmesos configuration option is for.

from deimos.

yashvyas avatar yashvyas commented on July 21, 2024

I am also facing this issue. Like mhamrah pointed out, it is using the matching_image_for_host(**opts) method to default the image which is based on the host machines OS (defaults to Ubuntu14.04 for me). I am not able to use the workaround since Im not using marathon. I'm using deimos via the mesos-jenkins plugin.

Also, deimos is failing to pick up the "append" property from the config file. I have tried to use it to pass the "-e" option to the docker image but it always shows up as empty. Can you guys please add some documentation for the config file, or maybe use a config file that uses ALL the options as the example.

from deimos.

mhamrah avatar mhamrah commented on July 21, 2024

The append option in the config file tripped me up as well, check the sys
logs to see how Deimos is parsing the array. It could be adding unnecessary
spaces, and you need to restart mesos-slave after you make the change.

This worked for me:

#/etc/deimos.cfg
[containers.options]
append: ["-e", "HOST_IP=192.168.33.12"]

On Jun 30, 2014, at 6:44 AM, Yash Vyas [email protected] wrote:

I am also facing this issue. Like mhamrah pointed out, it is using the
matching_image_for_host(**opts) method to default the image which is based
on the host machines OS (defaults to Ubuntu14.04 for me). Also, deimos is
failing to pick up the "append" property from the config file. I have tried
to use it to pass the "-e" option to the docker image but it always shows
up as empty. Can you guys please add some documentation for the config
file, or maybe use a config file that uses ALL the options as the example.


Reply to this email directly or view it on GitHub
#10 (comment).

from deimos.

yashvyas avatar yashvyas commented on July 21, 2024

That did work! I tried many different forms, but the form that you showed
is the only one that worked. And right after I opened an issue here :
#22 :
Thanks for the help!

On Mon, Jun 30, 2014 at 6:47 AM, Michael Hamrah [email protected]
wrote:

The append option in the config file tripped me up as well, check the sys
logs to see how Deimos is parsing the array. It could be adding
unnecessary
spaces, and you need to restart mesos-slave after you make the change.

This worked for me:

#/etc/deimos.cfg
[containers.options]
append: ["-e", "HOST_IP=192.168.33.12"]

On Jun 30, 2014, at 6:44 AM, Yash Vyas [email protected] wrote:

I am also facing this issue. Like mhamrah pointed out, it is using the
matching_image_for_host(**opts) method to default the image which is based
on the host machines OS (defaults to Ubuntu14.04 for me). Also, deimos is
failing to pick up the "append" property from the config file. I have
tried
to use it to pass the "-e" option to the docker image but it always shows
up as empty. Can you guys please add some documentation for the config
file, or maybe use a config file that uses ALL the options as the example.


Reply to this email directly or view it on GitHub
#10 (comment).


Reply to this email directly or view it on GitHub
#10 (comment).

from deimos.

yashvyas avatar yashvyas commented on July 21, 2024

Hi, while looking into this, I also realized that the mesos-slave has an option
--default_container_image . So I started up the slave with this option, and deimos still used the host OS for the container image.

The mesos env is getting set up correctly, but I think deimos is not using the MESOS_DEFAULT_CONTAINER_IMAGE value . Excerpt from syslog

Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_NATIVE_LIBRARY=/home/mesos/mesos/mesos-0.19.0/build/src/.libs/libmesos-0.19.0.so
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_CHECKPOINT=0
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_LAUNCHER_DIR=/home/mesos/mesos/mesos-0.19.0/build/src
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_SLAVE_ID=20140626-105439-1283384586-8999-12678-5
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_DIRECTORY=/tmp/mesos/slaves/20140626-105439-1283384586-8999-12678-5/frameworks/20140626-105439-1283384586-8999-12678-0008/executors/mesos-jenkins-bdd04860-8631-4ead-91f5-690936b9def6/runs/ddddf51b-5eb6-4f5e-bca0-5c6aaf23ad2f
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_NATIVE_JAVA_LIBRARY=/home/mesos/mesos/mesos-0.19.0/build/src/.libs/libmesos-0.19.0.so
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_LIBEXEC_DIRECTORY=/home/mesos/mesos/mesos-0.19.0/build/src
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_WORK_DIRECTORY=/tmp/mesos
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() LIBPROCESS_PORT=0
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_DEFAULT_CONTAINER_IMAGE=docker:///guilhem/jenkins-slave:latest
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_EXECUTOR_ID=mesos-jenkins-bdd04860-8631-4ead-91f5-690936b9def6
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_SLAVE_PID=slave(1)@127.0.1.1:5052
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.log_mesos_env() MESOS_FRAMEWORK_ID=20140626-105439-1283384586-8999-12678-0008
Jul  1 09:19:33 mesos-5 deimos[26333]: deimos.containerizer.docker.launch() call // docker --host unix:///var/run/docker.sock run --sig-proxy --rm --cidfile /tmp/deimos/mesos/ddddf51b-5eb6-4f5e-bca0-5c6aaf23ad2f/cid -w /tmp/mesos-sandbox -v /tmp/deimos/mesos/ddddf51b-5eb6-4f5e-bca0-5c6aaf23ad2f/fs:/tmp/mesos-sandbox -e JAVA_HOME=java-6-openjdk-amd64 -c 204 -m 704m ubuntu:14.04 sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx640m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jar slave.jar  -jnlpUrl http://mesos-5.dev.orbitz.net:8080/jenkins/computer/mesos-jenkins-bdd04860-8631-4ead-91f5-690936b9def6/slave-agent.jnlp'

As you can see im trying to use this image : https://registry.hub.docker.com/u/guilhem/jenkins-slave/
But deimos still used Ubuntu14.04.

from deimos.

Related Issues (20)

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.