ContainerSolutions / minimesos

The experimentation and testing tool for Apache Mesos - NO LONGER MAINTANED!
https://www.minimesos.org
Apache License 2.0
427 stars 61 forks source link

minimesos reports mesos v0.25 while running v0.27 #442

Closed atmosx closed 8 years ago

atmosx commented 8 years ago

Hi,

I am using mesos v0.27 for testing purposes. I noticed that although v0.27 is used by minimesos v0.25 is report upon 'up'. How to reproduce:

$ grep mesosVersion minimesosFile
    mesosVersion = "0.27"

$ minimesos up
Minimesos cluster is running: 539095777
Mesos version: 0.25
export MINIMESOS_NETWORK_GATEWAY=172.17.0.1
export MINIMESOS_AGENT=http://172.17.0.5:5051; export MINIMESOS_AGENT_IP=172.17.0.5
export MINIMESOS_ZOOKEEPER=zk://172.17.0.3:2181/mesos; export MINIMESOS_ZOOKEEPER_IP=172.17.0.3
export MINIMESOS_MARATHON=http://172.17.0.6:8080; export MINIMESOS_MARATHON_IP=172.17.0.6
export MINIMESOS_CONSUL=http://172.17.0.7:8500; export MINIMESOS_CONSUL_IP=172.17.0.7
export MINIMESOS_MASTER=http://172.17.0.4:5050; export MINIMESOS_MASTER_IP=172.17.0.4

$  minimesos state|jq .version
"0.27.1"

$ docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                                                          NAMES
0390cba3b28d        weaveworks/scope:0.13.1                               "/home/weave/entrypoi"   2 minutes ago       Up 2 minutes                                                                                       mesos-5b2f0635-303e-40fc-8fd4-bc934cc639f1-S0.a9ddbd71-56ed-42ba-a56a-7c0fccf982e2
0c1252998d7a        gliderlabs/registrator:v6                             "/bin/registrator -in"   2 minutes ago       Up 2 minutes                                                                                       minimesos-registrator-539095777-2221006336
ca0ba6a423a5        containersol/consul-server:0.6-1                      "/bin/consul agent -s"   2 minutes ago       Up 2 minutes        53/udp, 8300-8302/tcp, 8400/tcp, 8500/tcp, 8301-8302/udp, 8600/udp, 8600/tcp   minimesos-consul-539095777-1434160191
ea430cc298e8        mesosphere/marathon:v0.15.3                           "./bin/start --master"   2 minutes ago       Up 2 minutes        8080/tcp                                                                       minimesos-marathon-539095777-4022634088
609b87209074        containersol/mesos-agent:0.27.1-2.0.226.ubuntu1404    "/usr/local/bin/mesos"   2 minutes ago       Up 2 minutes        5051/tcp, 31000-32000/tcp                                                      minimesos-agent-539095777-3009793112
b117e171dc44        containersol/mesos-master:0.27.1-2.0.226.ubuntu1404   "mesos-master --regis"   2 minutes ago       Up 2 minutes        5050/tcp                                                                       minimesos-master-539095777-163794978
994c3097eaaa        jplock/zookeeper:3.4.6                                "/opt/zookeeper/bin/z"   2 minutes ago       Up 2 minutes        2181/tcp, 2888/tcp, 3888/tcp                                                   minimesos-zookeeper-539095777-1214681586

$ docker ps|awk '{ print $2 }'|grep mesos
mesosphere/marathon:v0.15.3
containersol/mesos-agent:0.27.1-2.0.226.ubuntu1404
containersol/mesos-master:0.27.1-2.0.226.ubuntu1404

$ 
atmosx commented 8 years ago
$ cat minimesosFile

minimesos {
    clusterName = "Leibniz"
    loggingLevel = "INFO"
    mapAgentSandboxVolume = false
    mesosVersion = "0.27"
    timeout = 60

    agent {
        imageName = "containersol/mesos-agent"
        imageTag = "# derive from mesos version"
        loggingLevel = "# INHERIT FROM CLUSTER"
        portNumber = 5051

        resources {

            cpu {
                role = "*"
                value = 1
            }

            disk {
                role = "*"
                value = 200
            }

            mem {
                role = "*"
                value = 256
            }

            ports {
                role = "*"
                value = "[31000-32000]"
            }
        }
    }

    consul {
        imageName = "containersol/consul-server"
        imageTag = "0.6-1"
    }

    marathon {
        imageName = "mesosphere/marathon"
        imageTag = "v0.15.3"

        // Add 'app { marathonJson = "<path or URL to JSON file>" }' for every task you want to execute
        app {
            marathonJson = "https://raw.githubusercontent.com/ContainerSolutions/minimesos/e2a43362f4581122762c80d8780d09b567783f1a/apps/weave-scope.json"
        }
    }

    master {
        aclJson = null
        authenticate = false
        imageName = "containersol/mesos-master"
        imageTag = "# derive from mesos version"
        loggingLevel = "# INHERIT FROM CLUSTER"
    }

    registrator {
        imageName = "gliderlabs/registrator"
        imageTag = "v6"
    }

    zookeeper {
        imageName = "jplock/zookeeper"
        imageTag = "3.4.6"
    }
}
adam-sandor commented 8 years ago

Hi @atmosx,

Thanks for reporting the issue. I can confirm that it's reproducible so we'll look into it whats going on.