afterHook logic skipped if hook is missing
Bug #1450917 reported by
Curtis Hovey
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
Critical
|
Ian Booth | ||
1.24 |
Fix Released
|
Critical
|
Ian Booth |
Bug Description
As seen in
http://
the maas-1_7-deployer job cannot complete. For 1.23 and 1.22, it completed in less than 12 minutes, but for 1.24, it failed to complete in 30 minutes. The agents say they are in pending, which isn't really a deployer issue. We know that other deploy and uprade jobs with the same version of juju passed. as do other jujus pass this test.
The root cause is that if a charm does not implement a hook, it is correctly skipped by the uniter, but the after hook logic is not run. The means that in the case of the landscape charms, the logic to update the workload status from maintenance is never run.
Changed in juju-core: | |
milestone: | none → 1.25.0 |
summary: |
- deployer on maas 1.7 cannot complete + afterHook logic skipped if hook is missing |
description: | updated |
Changed in juju-core: | |
assignee: | nobody → Ian Booth (wallyworld) |
status: | Triaged → In Progress |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The units that are still shown as pending as recorded as still being in the process of running the install hook. It is not yet clear why the install hook does not complete for those landscape units. Can we get the unit log files of the landscape units to see what might be happening? Could we run status-history on the failing units (in addition to just status) when the deployment fails?
units:
workload- status:
agent- status:
agent- state: pending
agent- version: 1.24-alpha1
public- address: maas-node-112.maas
landscape/0:
current: maintenance
message: installing charm software
since: 01 May 2015 18:59:33 UTC
current: idle
since: 01 May 2015 19:01:55 UTC
version: 1.24-alpha1
machine: "3"