← Back to issue list

kernel plugin: can't snap a kernel using launchpad

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1606903
Type
issue
State
closed
Author
~p-pisati
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged PR canonical/snapcraft#903 (commit 603948e1d), allowing Store part downloads without snapcraft login and resolving Launchpad kernel builds.

Resolution: closed resolved

Reason: The maintainer linked PR #903 as the resolution. It was merged in commit 603948e1d and removed the login requirement for Store downloads.

Evaluated by: mr-cal-bot

No scores available.

Issue body

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.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/snapcraft#903 (commit 603948e1d), allowing Store part downloads without snapcraft login and resolving Launchpad kernel builds.
stealth/space-bunny-alpha — closed resolved Launchpad kernel-snap pulls failed because store login was required; PR #903 removed the login requirement and was merged as commit 603948e1d.
stealth/space-bunny-alpha — closed not a bug Closed after confirming that an obsolete Launchpad 'snapcraft login' step should be removed to fix credential failures in kernel builds (LP #1606903).
qwen/qwen3.6-35b-a3b — — Closed after confirming the obsolete snapcraft login requirement should be removed. The kernel plugin was updated to skip the unnecessary authentication step, resolving the launchpad build credential error.
qwen/qwen3.6-35b-a3b — — Closed after confirming the snapcraft login step is obsolete. The Launchpad build script was updated to remove the unnecessary credential check, resolving the authentication failure.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#903 (confidence 100%)

    Merged PR titled "store: download without login" directly addressed the reported failure.

Related issues

Issue Project State Summary Similarity
#2566 kernel plugin: correctly download the os.snap snapcraft merged Merged PR #2566 fixed kernel-plugin os.snap downloads by supplying missing Store API request data and moved tests to spread for cross-base coverage.
79%
#287 plugins: add kernel plugin implementation craft-parts closed Kernel plugin PR to craft-parts closed unmerged; maintainers said it is too snap-specific. Author moved it to Snapcraft as snapcraft#3922, merged and landed on main via snapcraft#4111.
77%
#6418 core26: kernel plugin fails to run snapcraft closed Fixed by merged PR canonical/snapcraft#6425 (commit be405aad6), updating the kernel plugin to handle modules packaged under usr/lib on usrmerged core26 systems.
76%
#1552168 Add a kernel plugin snapcraft (launchpad) closed Kernel snap creation was implemented by merged canonical/snapcraft#366 (merge b7c1e8bbb, head 6da4ee672), adding kernel and kbuild plugins plus examples.
75%
#366 New plugin: kernel snapcraft merged Merged PR #366 by sergiusens into master via merge commit b7c1e8bbb (head commit 6da4ee672), adding the new kernel and kbuild snapcraft plugins with two example projects, closing LP #1552168.
75%
#1627923 kernel plugin initrd packaging fails when kernel modules have common dependencies snapcraft (launchpad) closed Fixed by snapcore/snapcraft PR #837, which allowed initrd packaging to handle common kernel-module dependencies without duplicate-copy failures.
75%
#3980 plugins: Increase kernel plugin build environments compatibility snapcraft closed Closed unmerged because snapcraft#3922 was already on main and conflicted; maintainers deferred key-fetch and network-policy discussion to craft-archives.
74%
#1115 kernel plugin: fix kernel snap layout snapcraft merged Merged via commit 86017cdef: kernel plugin now places modules/ and firmware/ at the top level of prime/ for kernel snaps, plus corrected required build packages; unit and manual tests updated per review.
74%
#1759592 kernel build fails for lack of modprobe snapcraft (launchpad) closed Kernel builds on Launchpad failed because modprobe was missing. Fixed by snapcore/snapcraft PR #2041, merged as commit 327552751, adding kmod to the kernel plugin's build-packages (plus /sbin on PATH); LP bug closed as fixed.
74%
#1618019 builds of "type: kernel" add obsolete options to snap.yaml snapcraft (launchpad) closed Fixed upstream by merged PR snapcore/snapcraft#768 (commit 71b81ad44), which dropped the obsolete top-level kernel snap.yaml entries (dtbs, firmware, initrd, kernel, modules), so Launchpad kernel snap builds no longer fail store auto-upload.
73%