Unable to relate to jenkins-slave: hook failed: "master-relation-changed"

Bug #1272520 reported by Antonio Rosales on 2014-01-24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
jenkins (Juju Charms Collection)
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:

    charm: cs:precise/jenkins-8
    exposed: false
      - jenkins-slave
        agent-state: error
        agent-state-info: 'hook failed: "master-relation-changed"'
        agent-version: 1.17.0
        machine: "1"
        - 8080/tcp

This may be related to bug 1232886, however I am using the defaults and not release=trunk.

Related branches

Changed in jenkins (Juju Charms Collection):
importance: Undecided → High
assignee: nobody → Charles Butler (lazypower)
Changed in jenkins (Juju Charms Collection):
status: New → Confirmed
Timothy R. Chavez (timrchavez) wrote :

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.

Timothy R. Chavez (timrchavez) wrote :

passed to 'hooks/addnode'*

Ryan Beisner (1chb1n) wrote :

I also run into this while deploying. Logs, commands, configs are here: http://paste.ubuntu.com/8046165/

Matt Bruzek (mbruzek) wrote :

According to the latest test results by charm http://reports.vapour.ws/charm-tests-by-charm this charm is failing automated testing.


The charm is failing charm proof and the 100-deploy test returns a non-zero return code.

charm proof output:
I: relation extension has no hooks
W: config.yaml: option password does not have the keys: default

100-deploy output:
Exception: Error on unit jenkins/0: hook failed: "master-relation-changed" for relation-sentry:requires-jenkins_master-jenkins-slave_slave

We should fix both problems so this charm can pass automated tests and that will help ensure quality in the charm store.

tags: added: auto-test
Antonio Rosales (arosales) wrote :

It appears work is underway to resolve testing failures:

Thus, this bug will not be moved into the unmaintained namespace of the charm store per:

Thanks for working to resolve this issues, lets try to get this charm backing into a passing state asap.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers