Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bamboo does not detect/receive modification from marathon #36

Closed
zorel opened this issue Oct 9, 2014 · 4 comments
Closed

Bamboo does not detect/receive modification from marathon #36

zorel opened this issue Oct 9, 2014 · 4 comments

Comments

@zorel
Copy link

zorel commented Oct 9, 2014

Hello.

I'm testing bamboo on a 1 master/3 slaves mesos cluster. Marathon, zk, mesos master, haproxy and bamboo are all on master server.

When I scale up or down a app in Marathon, I have to clic on "update" button in bamboo ui for bamboo to update haproxy configuration. The number of instances is reflected correctly, but the log does not show anything, and haproxy is not reconfigured.

Here is the production.json:
{
"Marathon": {
"Endpoint": "http://localhost:8080",
"Zookeeper": {
"Host": "localhost:2181",
"Path": "/marathon/state",
"ReportingDelay": 5
}
},

"Bamboo": {
"Endpoint": "http://localhost:8000",
"Zookeeper": {
"Host": "localhost",
"Path": "/marathon-haproxy/state",
"ReportingDelay": 5
}
},

"HAProxy": {
"TemplatePath": "/root/gopath/src/github.com/QubitProducts/bamboo/config/haproxy_template.cfg",
"OutputPath": "/usr/local/etc/haproxy/haproxy.cfg",
"ReloadCommand": "read PIDS < /var/run/haproxy.pid; haproxy -f /usr/local/etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid -sf $PIDS && while ps -p $PIDS; do sleep 0.2; done"
},

"StatsD": {
"Enabled": false,
"Host": "localhost:8125",
"Prefix": "bamboo-server.development."
}
}

Is there any other configuration to debug te (marathon | zk) /bamboo communication?

Thanks.

@j1n6
Copy link
Contributor

j1n6 commented Oct 9, 2014

did you enable Marathon http callback?

@j1n6
Copy link
Contributor

j1n6 commented Oct 9, 2014

here's the http callback reference. marathon needs to be able to reach Bamboo endpoint configured in 'Bamboo.Endpoint'.
https://mesosphere.github.io/marathon/docs/rest-api.html#event-subscriptions

@zorel
Copy link
Author

zorel commented Oct 10, 2014

Works better, thanks.

@zorel zorel closed this as completed Oct 10, 2014
@iskandar
Copy link

For future reference, the callbackUrl you register should look like this:

http://bamboo-hostname:8000/api/marathon/event_callback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants