MAAS does not set snap proxy
Bug #1918997 reported by
Lee Trager
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato |
Bug Description
I am working in an environment with limited network access. MAAS properly configures apt to use a proxy however it is not configuring the Snap proxy. There may be a way to do this with cloud-init but the following enabled snap to use the MAAS proxy
snap set system proxy.http="http://
snap set system proxy.https="http://
Related branches
~ack/maas:set-snap-proxy
Merged
into
maas:master
- MAAS Lander: Needs Fixing
- Adam Collard (community): Approve
-
Diff: 519 lines (+164/-102)5 files modifiedsrc/maasserver/compose_preseed.py (+16/-0)
src/maasserver/tests/test_compose_preseed.py (+26/-4)
src/metadataserver/tests/test_api.py (+8/-7)
src/metadataserver/tests/test_vendor_data.py (+100/-79)
src/metadataserver/vendor_data.py (+14/-12)
Changed in maas: | |
milestone: | none → 2.10.0 |
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
status: | Triaged → In Progress |
status: | In Progress → Triaged |
assignee: | Alberto Donato (ack) → nobody |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Alberto Donato (ack) |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.0.0 → 3.0-beta1 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Indeed I confirm i have experienced the same.
In cloud-config speak "snap *" are just a series of commands that cloud-init can execute.
https:/ /cloudinit. readthedocs. io/en/latest/ topics/ modules. html#snap
See examples there it is very laxed thus one should be able to do above with just:
snap: 10-0-1- 0--24.maas- internal: 8000/" 10-0-1- 0--24.maas- internal: 8000/"
commands:
- snap set system proxy.http="http://
- snap set system proxy.https="http://