consider creating homedir in /home

Bug #1836825 reported by Paul Collins
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Jenkins CI Agent Charm
New
Undecided
Unassigned

Bug Description

Using snapped applications directly from jenkins is impossible, due to https://bugs.launchpad.net/snapcraft/+bug/1620771

We should consider creating the homedir in /home/jenkins (with a compatibility symlink) for new installs.

Migrating on upgrade is probably too difficult to co-ordinate properly to attempt.

Paul Collins (pjdc)
summary: - considering creating homedir in /home
+ consider creating homedir in /home
Revision history for this message
Tom Haddon (mthaddon) wrote :

I'm not sure if this is relevant any more. In https://code.launchpad.net/~hloeung/jenkins-slave-charm/+git/jenkins-slave-charm/+merge/373786 the description was "things like snaps needs to write to the home directory, /var/lib/jenkins/snap. Default host.mkdir permissions is 0o555". We should confirm if this is still an issue.

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

This is still an issue with snaps, i.e: lxd snap complains (and doesn't refuses work) in the current slave setup with home in /var/lib/jenkins.

the actual output from a job is:

20:43:23 E: + lxc network delete lxdbr0
20:43:23 E: Sorry, home directories outside of /home are not currently supported.
20:43:23 E: See https://forum.snapcraft.io/t/11209 for details.

Another option could be to use a bind mount from /var/lib/jenkins to /home/jenkins

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.