-
Notifications
You must be signed in to change notification settings - Fork 4
issue from ctrip: windows mesos agent crashed once an application created by marathon #1
Comments
I could not repro the agent crash issue. Couple of the questions,
|
@shiyan2016 can you help post you environment info ? |
@lilyfang I try to create the appliation running notepad using marathon with the json: |
And the mesos master env set up refering this: http://www.cnblogs.com/ee900222/p/docker_2.html. |
Based on investigation, I can only repro this issue when my setup has a mismatch version between mesos master and agent. Please make sure you install mesos master with mesos-1.2.0(+) if you build your mesos agent with the latest mesos mainstream source code. |
Here is my steps,
The above combination basically will give you the latest windows agent + master 1.1.0. Then when you try to run windows agent, resource.has_allocation_info() will return NULL, the check which makes sure resource has_allocation_info() will fail. The issue will go away when master 1.2.0 is used. We need to follow up with Mesosphere to understand how to make sure old master can work with the new agent next. |
I use the master branch on windows 2016 datacenter desktop system with the commit 499173d395db40e753e86ec5847b2e3944b87c35, and running the mesos agent like this:
.\mesos-agent.exe --master=10.18.11.20:5050 --work_dir=D:\ --isolation=windows/cpu,filesystem/windows --hostname=10.18.62.225 --ip=10.18.62.225 --containerizers="docker,mesos" --log_dir=D:\mesos-log --launcher_dir=D:\mesos-build\mesos-master\build\src --runtime_dir=D:\mesos-runtime
when I create an application with marathon, the windows mesos agent will crashed with the errors:
slave.cpp:4610] Check failed: resource.has_allocation_info()
![image](https://cloud.githubusercontent.com/assets/11883802/24130377/13b1b296-0e23-11e7-84cd-0f93b1eaeaf9.png)
*** Check failure stack trace: ***
The text was updated successfully, but these errors were encountered: