systemd and bin-path exported variables are not in sync

Bug #1449625 reported by Jamie Strandboge on 2015-04-28
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snappy
High
Michael Terry
15.04
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) on 2015-04-29
Changed in snappy-ubuntu:
status: New → Triaged
importance: Undecided → High

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) on 2015-05-18
affects: snappy-ubuntu → snappy
Michael Terry (mterry) on 2015-05-21
Changed in snappy:
assignee: nobody → Michael Terry (mterry)
Michael Terry (mterry) on 2015-05-29
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  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers