Environment variables are not propagated to jujud on vivid

Bug #1449436 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Andrew Wilkins
1.23
Fix Released
High
Andrew Wilkins
1.24
Fix Released
High
Andrew Wilkins

Bug Description

I'm on 15.04, and I've just exported "JUJU_DEV_FEATURE_FLAGS=storage" and bootstrapped from trunk. The unit file has the following:

    ...
    [Service]
    Environment=""JUJU_DEV_FEATURE_FLAGS"="storage""
    ...

However, the jujud process only has the following variables set: PATH, PWD, LANG, SHLVL, LANGUAGE.

The reason is apparent from reading http://0pointer.de/public/systemd-man/systemd.exec.html#Environment=: the format used in the until is nonsense. It should be
    Environment="JUJU_DEV_FEATURE_FLAGS=storage"
and if there is more than one variable,
    Environment="JUJU_DEV_FEATURE_FLAGS=storage" "JUJU_CONTAINER_TYPE=lxc"

Andrew Wilkins (axwalk)
no longer affects: juju-core/trunk
Changed in juju-core:
milestone: none → 1.25.0
importance: High → Undecided
status: Triaged → New
Andrew Wilkins (axwalk)
Changed in juju-core:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Andrew Wilkins (axwalk)
Ian Booth (wallyworld)
tags: added: blocker
tags: added: ci
tags: removed: ci
Revision history for this message
Andrew Wilkins (axwalk) wrote :

Marking critical, as this is a regression that we shouldn't be releasing with.

Changed in juju-core:
importance: High → Critical
Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
Revision history for this message
Andrew Wilkins (axwalk) wrote :

Lowered from critical to high on 1.23 to unblock, since CI has blessed.

Curtis Hovey (sinzui)
Changed in juju-core:
importance: Critical → High
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
tags: added: systemd vivid
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.