kernel plugin: can't snap a kernel using launchpad

Bug #1606903 reported by Paolo Pisati
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Sergio Schvezov

Bug Description

While trying to exploit launchpad to snap a kernel, i hit this:

...
Checking out files: 100% (43048/43048), done.
Getting details for ubuntu-core
Downloading parts list|
Downloading parts list/
Downloading parts list-
Downloading parts list\
Downloading parts list|
Downloading parts list|
No valid credentials found. Have you run "snapcraft login"?
Invalid credentials: [].
Traceback (most recent call last):
  File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 194, in main
    builder.pull()
  File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 135, in pull
    env=env)
  File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 92, in run_build_command
    self.chroot(["/bin/sh", "-c", command], echo=echo)
  File "/usr/share/launchpad-buildd/slavebin/buildsnap", line 66, in chroot
    "/usr/bin/sudo", "/usr/sbin/chroot", self.chroot_path] + args)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['/usr/bin/sudo', '/usr/sbin/chroot', '/home/buildd/build-SNAPBUILD-1690/chroot-autobuild', 'linux64', '/bin/sh', '-c', 'cd /build/snap-linux-310 && env LANG=C.UTF-8 https_proxy=https://snap-proxy.launchpad.net:3128 http_proxy=http://snap-proxy.launchpad.net:3128 SNAPCRAFT_LOCAL_SOURCES=1 snapcraft pull']' returned non-zero exit status 1
Revoking proxy token...
RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'SNAPBUILD-1690']
Scanning for processes to kill in build /home/buildd/build-SNAPBUILD-1690/chroot-autobuild...
RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'SNAPBUILD-1690']
Unmounting chroot for build SNAPBUILD-1690...
RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'SNAPBUILD-1690']

I reported this to Sergio and he told me that the 'snapcraft login' step is not needed anymore and it can be removed.

Revision history for this message
Paolo Pisati (p-pisati) wrote :
Leo Arias (elopio)
Changed in snapcraft:
status: New → Confirmed
importance: Undecided → High
status: Confirmed → Triaged
Revision history for this message
Sergio Schvezov (sergiusens) wrote :
Changed in snapcraft:
milestone: none → 2.23
assignee: nobody → Sergio Schvezov (sergiusens)
status: Triaged → In Progress
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
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.