Unable to relate to jenkins-slave: hook failed: "master-relation-changed"
Bug #1272520 reported by
Antonio Rosales
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jenkins (Juju Charms Collection) |
Confirmed
|
High
|
Charles Butler |
Bug Description
Following the readme instructions:
juju deploy jenkins
juju deploy -n 5 jenkins-slave
juju add-relation jenkins jenkins-slave
I get a hook failed error:
services:
jenkins:
charm: cs:precise/
exposed: false
relations:
master:
- jenkins-slave
units:
jenkins/0:
machine: "1"
open-ports:
- 8080/tcp
This may be related to bug 1232886, however I am using the defaults and not release=trunk.
Related branches
lp://staging/~timrchavez/charms/precise/jenkins-slave/jenkins-slave-fix-slave-relation-joined
- Marco Ceppi (community): Approve
-
Diff: 15 lines (+2/-1)2 files modifiedhooks/slave-relation-joined (+1/-0)
revision (+1/-1)
Changed in jenkins (Juju Charms Collection): | |
importance: | Undecided → High |
assignee: | nobody → Charles Butler (lazypower) |
Changed in jenkins (Juju Charms Collection): | |
status: | New → Confirmed |
To post a comment you must log in.
You didn't provide any sort of logs, so I can't be 100% sure that we had the same problem, but the problem I had was due to the fact that the Jenkins master 'master- relation- changed' hook expects (assumes, rather) that the Jenkins slave 'slave- relation- joined' hook will pass a bunch of information during the 'add-relation' which it will then call the hooks/addnode script with. The problem I encountered is that the Jenkins slave does not set 'slaveaddress' and so it is passed by too 'hooks/addnode' via 'master- relation- changed' as an empty string and causes breakage. Once 'slaveaddress' is properly set by the Jenkins slave in 'slave- relation- joined' , this particularly problem goes away.