git ubuntu build-source fails on cosmic for postfix

Bug #1791371 reported by Karl Stenerud
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
git-ubuntu
New
Undecided
Unassigned

Bug Description

[Impact]

Attempting to use git-ubuntu to build postfix under cosmic fails, complaining about not having permissions open a tarball.

[Test Case]

$ git-ubuntu clone postfix
$ cd postfix
$ lxc image list
...
| | 5a0e42b9ea44 | no | ubuntu 18.10 amd64 (daily) (20180829) | x86_64 | 175.40MB | Aug 30, 2018 at 6:14pm (UTC) |
...
Get an 18.10 image ID. In this case: 5a0e42b9ea44

$ git ubuntu build-source -v --lxd-image 5a0e42b9ea44 --sign --keep-build-env

It will fail with:

09/07/2018 18:00:00 - ERROR:Command exited 2: /usr/bin/lxc exec moved-mutt -- sudo -s -H -u ubuntu tar zxCf /tmp /tmp/tmptsr1sluv.tar.gz
09/07/2018 18:00:00 - ERROR:stdout:
09/07/2018 18:00:00 - ERROR:stderr: tar (child): /tmp/tmptsr1sluv.tar.gz: Cannot open: Permission denied

If you look inside the container, you'll see:

# ls -l /tmp/tmptsr1sluv.tar.gz
-rw------- 1 1001 1001 4673602 Sep 7 18:00 /tmp/tmptsr1sluv.tar.gz

Tags: build
Revision history for this message
Scott Moser (smoser) wrote : Re: [Bug 1791371] [NEW] git ubuntu build-source fails on cosmic for postfix

Pretty sure this is a duplicate of bug 1749609.

On Fri, Sep 7, 2018, 4:25 PM Karl Stenerud <email address hidden>
wrote:

> Public bug reported:
>
> [Impact]
>
> Attempting to use git-ubuntu to build postfix under cosmic fails,
> complaining about not having permissions open a tarball.
>
> [Test Case]
>
> $ git-ubuntu clone postfix
> $ cd postfix
> $ lxc image list
> ...
> | | 5a0e42b9ea44 | no | ubuntu 18.10 amd64 (daily) (20180829) |
> x86_64 | 175.40MB | Aug 30, 2018 at 6:14pm (UTC) |
> ...
> Get an 18.10 image ID. In this case: 5a0e42b9ea44
>
> $ git ubuntu build-source -v --lxd-image 5a0e42b9ea44 --sign --keep-
> build-env
>
> It will fail with:
>
> 09/07/2018 18:00:00 - ERROR:Command exited 2: /usr/bin/lxc exec moved-mutt
> -- sudo -s -H -u ubuntu tar zxCf /tmp /tmp/tmptsr1sluv.tar.gz
> 09/07/2018 18:00:00 - ERROR:stdout:
> 09/07/2018 18:00:00 - ERROR:stderr: tar (child): /tmp/tmptsr1sluv.tar.gz:
> Cannot open: Permission denied
>
> If you look inside the container, you'll see:
>
> # ls -l /tmp/tmptsr1sluv.tar.gz
> -rw------- 1 1001 1001 4673602 Sep 7 18:00 /tmp/tmptsr1sluv.tar.gz
>
> ** Affects: usd-importer
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Ubuntu
> Server Dev import team, which is subscribed to usd-importer.
> https://bugs.launchpad.net/bugs/1791371
>
> Title:
> git ubuntu build-source fails on cosmic for postfix
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/usd-importer/+bug/1791371/+subscriptions
>

Revision history for this message
Nish Aravamudan (nacc) wrote :

On Fri, Sep 7, 2018, 6:20 PM Scott Moser <email address hidden> wrote:

> Pretty sure this is a duplicate of bug 1749609.
>

You are right, Scott. I think we need to do a uid map to avoid this?

Robie Basak (racb)
tags: added: build
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.