Juju-gui charm should create and run as its own user

Bug #1258827 reported by @les
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-gui
Triaged
Low
Unassigned

Bug Description

We run our upstart scripts as the ubuntu user now. That's much better than using root, but it would be even better to have our own user.

This bug was initially about our use of the ubuntu user breaking charm deployment on a manual provisioned machine. Per Andrew's comment (#5 below), we should be able to expect that this user exists even with manual provisioning. Therefore, this bug is now about good hygeine, not about being broken in the manual provisioning story.

Revision history for this message
Gary Poster (gary) wrote :

Thank you very much for the bug report with unit log.

Am I right that you were using manual provisioning (https://juju.ubuntu.com/docs/config-manual.html)? The ubuntu user should be automatically present in all other cases that I can think of.

Changed in juju-gui:
status: New → Triaged
importance: Undecided → High
Revision history for this message
Gary Poster (gary) wrote :

Note to devs following along: if I am right that this is with manual provisioning, we should check with core devs as to where this is going. Manual provisioning is still beta/experimental AFAIK and they may end up adding an ubuntu user themselves.

Revision history for this message
@les (alesstimec) wrote :

Correct, Gary, this affects manual provisioning where the ubuntu user is not necessarily present..

Cheers,
   Ales

Revision history for this message
Gary Poster (gary) wrote :

Thanks, Ales.

Devs, let's create a new user specifically for us, in all cases, and run as that user. Ideally, let's see if we can remove the user on one of the hooks also.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

Gary: juju needs the ubuntu user anyway, so I think it's fair to assume the user already exists. I've opened https://bugs.launchpad.net/juju-core/+bug/1261343 to track this on our side.

Revision history for this message
Gary Poster (gary) wrote :

Fantastic, thanks Andrew. Given that, I will change the goal and priority of this bug.

Changed in juju-gui:
importance: High → Low
summary: - Juju-gui deploy requires an "ubuntu" user
+ Juju-gui charm should create and use its own user
summary: - Juju-gui charm should create and use its own user
+ Juju-gui charm should create and run as its own user
description: updated
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.