Windows Charms are unable to raise error state

Bug #1426728 reported by Charles Butler on 2015-02-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
High
Unassigned

Bug Description

When deploying a charm on windows, it appears the return code's are not being respected - and the charm never enters an "error state"

juju rev: 1.21.3

unit-win-service-0[240]: 2015-02-28 16:58:51 INFO unit.win-service/0.install logger.go:40 char:9
unit-win-service-0[240]: 2015-02-28 16:58:51 INFO unit.win-service/0.install logger.go:40 + Install-WindowsFeatures $WINDOWS_FEATURES
unit-win-service-0[240]: 2015-02-28 16:58:51 INFO unit.win-service/0.install logger.go:40 + ~~~~~~~~~~~~~~~~~~~~~~~
unit-win-service-0[240]: 2015-02-28 16:58:51 INFO unit.win-service/0.install logger.go:40 + CategoryInfo : ObjectNotFound: (Install-WindowsFeatures:String)
unit-win-service-0[240]: 2015-02-28 16:58:51 INFO unit.win-service/0.install logger.go:40 [], ParentContainsErrorRecordException
unit-win-service-0[240]: 2015-02-28 16:58:51 INFO unit.win-service/0.install logger.go:40 + FullyQualifiedErrorId : CommandNotFoundException
unit-win-service-0[240]: 2015-02-28 16:58:51 INFO unit.win-service/0.install logger.go:40

The following error was found in the logs, and the service was green. I believe this is due to juju-agent still expecting the return code to be > 0, and I'm not 100% sure how this actually interacts on windows.

description: updated
description: updated
Curtis Hovey (sinzui) on 2015-03-02
Changed in juju-core:
status: New → Triaged
importance: Undecided → Medium
Larry Michel (lmic) on 2016-07-20
tags: added: oil
tags: added: oil-2.0
Changed in juju-core:
importance: Medium → High
milestone: none → 2.0.0
affects: juju-core → juju
Changed in juju:
milestone: 2.0.0 → none
milestone: none → 2.0.0
Changed in juju:
milestone: 2.0.0 → 2.0.1
Curtis Hovey (sinzui) on 2016-10-28
Changed in juju:
milestone: 2.0.1 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers