← Back to issue list

LXDInstanceProvider does not pass proxy information to lxc exec

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1826481
Type
issue
State
open
Author
~bnevis
Labels
Created
Updated
Closed

Current evaluation

Request to pass proxy env vars (http_proxy, https_proxy, no_proxy) to lxc exec in LXDInstanceProvider for builds behind firewalls. Class no longer exists in current codebase; LXD legacy support was removed.

Suggested action: close stale

Reason: The LXDInstanceProvider class no longer exists in the codebase (0 grep matches). Commit 27ec9ba63 removed LXD support for bases, and the legacy snapcraft_legacy package has been removed. The issue is 7+ years old with no maintainer interaction, and the affected code path has been superseded by craft-providers which handles proxy forwarding (commit 28da12515).

Impact: 25 Quick Win: 17.5 Staleness: 95 Complexity: 30 Confidence: 70 Support Request: 20

Issue body

In order to facilitate building in an lxd container behind a firewall, it should be possible to pass proxy variables (http_proxy, https_proxy, no_proxy) that are defined as part of the lxd core configuration to the lxc exec command. Note entirely sure this will fix the whole issue, because the snapcraft squashfs makes it difficult to overwrite the file to test the fix, but this seems like part of the issue. class LXDInstanceProvider:     """Provide the minimal Provider methods to be able to use the SnapInjector.     """    ...     def run(self, command: Sequence[str], hide_output: bool = False):         cmd = ["lxc", "exec", self._instance_name, "--"] + list(command)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 17.5
Staleness: 95
Complexity: 30
Confidence: 70
Support Request: 20
close stale Request to pass proxy env vars (http_proxy, https_proxy, no_proxy) to lxc exec in LXDInstanceProvider for builds behind firewalls. Class no longer exists in current codebase; LXD legacy support was removed.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 15
close stale LXDInstanceProvider fails to pass proxy environment variables to lxc exec, blocking builds behind firewalls. Issue has been inactive for nearly 7 years with no maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 90
Support Request: 10
close stale Feature request to pass proxy variables to lxc exec in LXDInstanceProvider. Unlabeled, no comments, inactive for over 6 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale Feature request to pass LXD proxy environment variables to lxc exec in LXDInstanceProvider. Unaddressed for over 7 years with no maintainer interaction or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 90
Support Request: 15
close stale Feature request to pass proxy environment variables to lxc exec in LXDInstanceProvider. Open for over 7 years with no maintainer response or activity.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#2335 (confidence 75%)

    Commit 27ec9ba63 'lifecycle: remove lxd support for bases' removed the LXDInstanceProvider code path entirely

  • Related To: snapcraft#5785 (confidence 60%)

    Proxy environment variable forwarding is now handled by craft-providers integration

Related issues

No related issues found above the similarity threshold.