TestDyingMachine fails when unit agent is running on machine

Bug #1206195 reported by Martin Packman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Andrew Wilkins

Bug Description

Tests on go-bot are failing in cmd/jujud/machine_test.go on the MachineSuite.TestDyingMachine case.

Somehow the deployer in the test getting at the unit-agent running on the machine and trying to interact with it:

[LOG] 19.19979 INFO juju.worker.deployer checking unit "tarmac/0"
[LOG] 19.20017 DEBUG juju rpc/jsoncodec: <- {"RequestId":8,"Type":"Deployer","Request":"Life","Params":{"Entities":[{"Tag":"unit-tarmac-0"}]}}
[LOG] 19.20024 DEBUG juju rpc/jsoncodec: <- {"RequestId":9,"Type":"StringsWatcher","Id":"2","Request":"Next","Params":{}}
[LOG] 19.20256 DEBUG juju rpc/jsoncodec: -> {"RequestId":8,"Response":{"Results":[{"Life":"","Error":{"Message":"permission denied","Code":"unauthorized access"}}]}}
[LOG] 19.20282 INFO juju.worker.deployer recalling unit "tarmac/0"
[LOG] 19.20390 ERROR juju worker: fatal "deployer": remove /etc/init/jujud-machine-3:unit-tarmac-0.conf: permission denied

For the full log, see:

<https://code.launchpad.net/~gz/juju-core/itsy_bitsy_change/+merge/177424/comments/399449/+download>

Tags: test-failure

Related branches

Revision history for this message
Martin Packman (gz) wrote :

I have skipped out the test on trunk for now, so the bot can land things.

Curtis Hovey (sinzui)
Changed in juju-core:
status: Confirmed → Triaged
tags: added: test-failure
Revision history for this message
William Reade (fwereade) wrote :

This is actually *skipping* a test that should pass. We can't leave it lying around like this.

Changed in juju-core:
milestone: none → 1.17.1
importance: High → Critical
Martin Packman (gz)
Changed in juju-core:
milestone: 1.17.1 → 1.18.0
Revision history for this message
Andrew Wilkins (axwalk) wrote :

worker/deployer is hard-coded to look in /etc/init for juju unit upstart jobs, and recall those it doesn't know about.

Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Andrew Wilkins (axwalk)
Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
milestone: 1.18.0 → 1.17.3
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.