systemd and bin-path exported variables are not in sync

Bug #1449625 reported by Jamie Strandboge
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
High
Michael Terry
15.04
Fix Released
High
Michael Terry

Bug Description

Some variables are in systemd and some are in bin-path. These shoudl be in sync:

$ grep Environment /etc/systemd/system/docker_docker-daemon_1.6.0.002.service | sed 's/Environment=//' |tr ' ' '\n'|sed 's/"//g' | grep SNAP | sort
SNAPP_APP_DATA_PATH=/var/lib/apps/docker/1.6.0.002
SNAPP_APP_PATH=/apps/docker/1.6.0.002
SNAPP_APP_USER_DATA_PATH=%h/apps/docker/1.6.0.002
SNAP_APP=docker_docker-daemon_1.6.0.002
SNAP_APP_DATA_PATH=/var/lib/apps/docker/1.6.0.002
SNAP_APP_PATH=/apps/docker/1.6.0.002
SNAP_APP_TMPDIR=/tmp/snaps/docker/1.6.0.002/tmp
SNAP_APP_USER_DATA_PATH=%h/apps/docker/1.6.0.002
SNAP_FULLNAME=docker
SNAP_NAME=docker
SNAP_ORIGIN=

$ hello-world.env |grep SNAP|sort
SNAPPY_APP_ARCH=amd64
SNAPP_APP_DATA_PATH=/var/lib//apps/hello-world.canonical/1.0.14
SNAPP_APP_PATH=/apps/hello-world.canonical/1.0.14
SNAPP_APP_TMPDIR=/tmp/snaps/hello-world.canonical/1.0.14/tmp
SNAPP_APP_USER_DATA_PATH=/home/ubuntu//apps/hello-world.canonical/1.0.14
SNAPP_OLD_PWD=/etc/systemd/system
SNAP_APP_DATA_PATH=/var/lib//apps/hello-world.canonical/1.0.14
SNAP_APP_PATH=/apps/hello-world.canonical/1.0.14
SNAP_APP_TMPDIR=/tmp/snaps/hello-world.canonical/1.0.14/tmp
SNAP_APP_USER_DATA_PATH=/home/ubuntu//apps/hello-world.canonical/1.0.14
SNAP_FULLNAME=hello-world.canonical
SNAP_NAME=hello-world
SNAP_OLD_PWD=/etc/systemd/system
SNAP_ORIGIN=canonical

I noticed this because SNAPPY_APP_ARCH would be very useful for services but it isn't exported (this should probably be SNAP_APP_ARCH).

Related branches

summary: - systemd service does not export all SNAP_ variables
+ systemd and bin-path exported variables are not in sync
Michael Vogt (mvo)
Changed in snappy-ubuntu:
status: New → Triaged
importance: Undecided → High
Revision history for this message
John Lenton (chipaca) wrote : Re: [Bug 1449625] Re: systemd and bin-path exported variables are not in sync

the hooks probably also need to have a unified environ.

mmm... triplication.

On 29 April 2015 at 09:33, Michael Vogt <email address hidden> wrote:
> ** Changed in: snappy-ubuntu
> Status: New => Triaged
>
> ** Changed in: snappy-ubuntu
> Importance: Undecided => High
>
> --
> You received this bug notification because you are a member of Snappy
> Developers, which is subscribed to snappy-ubuntu.
> https://bugs.launchpad.net/bugs/1449625
>
> Title:
> systemd and bin-path exported variables are not in sync
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/snappy-ubuntu/+bug/1449625/+subscriptions

Michael Terry (mterry)
affects: snappy-ubuntu → snappy
Michael Terry (mterry)
Changed in snappy:
assignee: nobody → Michael Terry (mterry)
Michael Terry (mterry)
Changed in snappy:
status: Triaged → In Progress
no longer affects: ubuntu-snappy (Ubuntu)
no longer affects: ubuntu-snappy (Ubuntu Vivid)
Changed in snappy:
status: In Progress → Fix Committed
Changed in snappy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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