Comments (8)
Hello,
Did you enable marathon http callback? And make sure the Bamboo endpoint can be reached by Marathon.
Sent from my iPhone
On 2 Nov 2014, at 06:49, veverjak [email protected] wrote:
I have trouble adding app to bamboo from gui.
I've added app called /luigi-test and it says Missing app in Marathon.
I am running bamboo as docker container with command:
/usr/bin/docker run --rm --name bamboo -p 8000:8000 -p 80:80 -e MARATHON_ENDPOINT=10.0.1.149:8081 -e BAMBOO_ENDPOINT=10.0.1.151:8000 -e BAMBOO_ZK_HOST="10.0.1.149:2181,10.0.1.151:2181,10.0.1.150:2181" -e BAMBOO_ZK_PATH=/bamboo quay.io/appuri/bamboo -bind=":8000" -config="config/production.example.json"
docker container logs:
Nov 01 22:08:56 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/01 22:08:56 Starting update loop
Nov 01 22:08:56 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/01 22:08:56.052755 Using environment override MARATHON_ENDPOINT=10.0.1.149:8081
Nov 01 22:08:56 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/01 22:08:56.052823 Using environment override BAMBOO_ENDPOINT=10.0.1.151:8000
Nov 01 22:08:56 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/01 22:08:56.052891 Using environment override BAMBOO_ZK_HOST=10.0.1.149:2181,10.0.1.151:2181,10.0.1.150:2181
Nov 01 22:08:56 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/01 22:08:56.052949 Using environment override BAMBOO_ZK_PATH=/bambooWhen app added:
From bamboo logs:
Nov 02 06:05:37 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/02 06:05:37.653968 Domain mapping: Stated changed
Nov 02 06:05:37 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/02 06:05:37.653983 Queuing an haproxy update.
Nov 02 06:05:37 ip-10-0-1-151.us-west-2.compute.internal bash[16882]: 2014/11/02 06:05:37.655489 HAProxy: Same content, no need to reloadFrom marathon, only relevant info I've found:
Nov 02 06:06:29 ip-10-0-1-149.us-west-2.compute.internal bash[6143]: [2014-11-02 06:06:29,066] INFO 10.0.1.151 - - [02/Nov/2014:06:06:29 +0000] "GET /v2/tasks HTTP/1.1" 200 252 "-" "curl/7.26.0" (mesosphere.chaos.http.ChaosRequestLog:15)
I can add marathon callback and call to /v2/tasks returns following:
curl -X GET -H "Content-Type: application/json" 10.0.1.149:8081/v2/tasks
{"tasks":[{"appId":"/luigi-test","id":"luigi-test.70583548-5f32-11e4-8166-56847afe9799","host":"ip-10-0-1-149.us-west-2.compute.internal","ports":[31001],"startedAt":"2014-11-02T06:07:11.580Z","stagedAt":"2014-10-29T06:11:36.580Z","version":"2014-10-29T06:11:36.379Z","servicePorts":[9001]},{"appId":"/marathon-tcp-haproxy-dev","id":"marathon-tcp-haproxy-dev.9e92e270-606f-11e4-8166-56847afe9799","host":"ip-10-0-1-151.us-west-2.compute.internal","ports":[31187],"startedAt":"2014-11-02T06:07:11.602Z","stagedAt":"2014-10-30T20:02:04.602Z","version":"2014-10-29T09:20:19.048Z","servicePorts":[30000]},{"appId":"/demo-dev","id":"demo-dev.f56bbeb8-5ee8-11e4-8166-56847afe9799","host":"ip-10-0-1-149.us-west-2.compute.internal","ports":[31000],"startedAt":"2014-11-02T06:07:11.563Z","stagedAt":"2014-10-28T21:25:37.088Z","version":"2014-10-28T21:25:34.948Z","servicePorts":[9000]},{"appId":"/demo-dev","id":"demo-dev.f69d39da-5ee8-11e4-8166-56847afe9799","host":"ip-10-0-1-151.us-west-2.compute.intern al","ports":[31000],"startedAt":"2014-11-02T06:07:11.572Z","stagedAt":"2014-10-28T21:25:39.089Z","version":"2014-10-28T21:25:34.948Z","servicePorts":[9000]}]}%I am using mesos 0.20.1
marathon 0.7.3
latest bambooDo you have any advice on how I could debug this further?
—
Reply to this email directly or view it on GitHub.
from bamboo.
I run marathon with following:
/opt/marathon/bin/start --master "zk://${ZOOKEEPER_ENDPOINTS}/mesos" --zk "zk://${ZOOKEEPER_ENDPOINTS}/marathon" --http_port ${HTTP_PORT-8081} --event_subscriber http_callback
I can create callback via curl but when I add bamboo app nothing changes in
curl -X GET -H "Content-Type: application/json" 10.0.1.149:8081/v2/eventSubscriptions
The should appear as non-missing when notified by marathon subscription, does not care about its initial call to /v2/tasks ?
from bamboo.
When you curl Marathon /v2/eventSubscriptions
e.g.
curl -X GET -H "Content-Type: application/json" http://10.0.1.149:8081/v2/eventSubscriptions
Do you see Bamboo's callback URL is registered in the list? Can this private ip (10.0.1.149:8081 http://10.0.1.149:8081/v2/eventSubscriptions) be accessed inside docker? Also try add http://
in front of those IPs, in case some http library doesn't handle it.
Alternatively, I suggest try to build deb package and it's much easier to trace issue. There's a section in README about how to build package.
from bamboo.
Hmm,
so the solution that I've found was to use http with env var MARATHON_ENDPOINT=http://10.0.1.149:8081
It almost seems that bamboo discovered the apps on its own.
Great work, thanks :)
I am using your dockerfile, is it supposed to behave this way?
btw I didn't find the way to build bamboo with debug using deb.
Is there any different build attribute for that in deb build that could be used during phase defined in your dockerfile?
from bamboo.
Good to know you get it working!
The deb version builds a binary and deploy it without docker.
The way I usually suggest is deploying Bamboo without docker - there are some issues with docker that having both bamboo and haproxy inside, if bamboo stops, docker daemon quits and haproxy will be down too; same issue the other way around; but ensure haproxy is live is important. There's no upstart implemented for Docker images.
Docker is good way to try things out.
In the repo, you should find a script or build directory, it has a script we use to build deb package.
I have a issue to build it via travis and upload to release page, never find free time to do it.
On 3 Nov 2014, at 06:31, veverjak [email protected] wrote:
Hmm,
so the solution that I've found was to use http with env var MARATHON_ENDPOINT=http://10.0.1.149:8081
It almost seems that bamboo discovered the apps on its own.
Great work, thanks :)
I am using your dockerfile, is it supposed to behave this way?
btw I didn't find the way to build bamboo with debug using deb.
Is there any different build attribute for that in deb build that could be used during phase defined in your dockerfile?—
Reply to this email directly or view it on GitHub.
from bamboo.
I am running docker container as fleet unit (coreos) so its relaunched once docker container is down.
It might be suitable though to run bamboo under supervisord so that its respawned internally.
I can create pull request for you if you would care for this...?
from bamboo.
yah, so the docker entrypoint is executed for haproxy and supervisor is
managing bamboo. PR would be great!
On 3 November 2014 10:14, veverjak [email protected] wrote:
I am running docker container as fleet unit (coreos) so its relaunched
once docker container is down.It might be suitable though to run bamboo under supervisord so that its
respawned internally.
I can create pull request for you if you would care for this...?—
Reply to this email directly or view it on GitHub
#48 (comment).
This email may be confidential or privileged. If you received this
communication by mistake, please don't forward it to anyone else, please
erase all copies and attachments, and please let me know that it has gone to
the wrong person. Thanks.
from bamboo.
Created new issue for supervisord to keep it clean - #49
from bamboo.
Related Issues (20)
- Support Ip per container HOT 2
- How to support the dynamic ip and port for web container by bamboo HOT 2
- Docker images not building deb packages HOT 3
- Getting 503 when restarting application HOT 5
- Event streaming API messages not handled correctly
- The latest version of mesos and marathon are supported ? HOT 2
- Mesos/Marathon integration test Container
- Document httpclose HOT 1
- 8125 port write: connection refused HOT 2
- Failed to update HAProxy configuration HOT 1
- how can i access my app
- How about metrics? HOT 2
- Enable support for marathon task_killing state HOT 2
- Support systemd in deb package HOT 1
- Question: Per-service HAProxy templates HOT 1
- Event subscription broken when using Marathon version >=1.5.0 HOT 3
- ACL for similar service
- Does Bamboo support zookeeper authentication? HOT 5
- Docker container not reading haproxy template path HOT 1
- Should use portDefinitions instead of servicePorts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bamboo.