[2.x, enhancement] No way to disable apt sources (deb-src)
Bug #1758965 reported by
Jeff Hillman
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Lee Trager |
Bug Description
We have changed the URL of the ubuntu archive to our own custom URL. In this onsite repository, we do not have sources mirrored, just xenial, xenial-updates and security mirrored (amd64 only)
When performing a commission or deploy, the node will fail, this is due to apt update failing to complete on the missing sources that are being entered into /etc/apt/
There is no option (in the UI) to disable sources for any repository.
Related branches
~ltrager/maas:lp1758965
Merged
into
maas:master
- Blake Rouse (community): Approve
- MAAS Lander: Approve
- Newell Jensen (community): Approve
- Andres Rodriguez: Pending requested
-
Diff: 538 lines (+203/-94)11 files modifiedsrc/maasserver/api/packagerepositories.py (+3/-0)
src/maasserver/compose_preseed.py (+47/-44)
src/maasserver/forms/packagerepository.py (+5/-0)
src/maasserver/forms/tests/test_packagerepository.py (+18/-0)
src/maasserver/migrations/builtin/maasserver/0181_packagerepository_disable_sources.py (+23/-0)
src/maasserver/models/packagerepository.py (+2/-0)
src/maasserver/static/partials/settings.html (+10/-0)
src/maasserver/testing/factory.py (+2/-2)
src/maasserver/tests/test_compose_preseed.py (+28/-15)
src/maasserver/tests/test_preseed.py (+64/-33)
src/maasserver/websockets/handlers/tests/test_packagerepository.py (+1/-0)
Changed in maas: | |
milestone: | none → 2.4.0beta2 |
importance: | Undecided → Medium |
status: | New → Triaged |
assignee: | nobody → Andres Rodriguez (andreserl) |
Changed in maas: | |
milestone: | 2.4.0beta2 → 2.4.0beta3 |
Changed in maas: | |
milestone: | 2.4.0beta3 → 2.4.0beta4 |
Changed in maas: | |
milestone: | 2.4.0beta4 → 2.4.x |
Changed in maas: | |
milestone: | 2.4.x → 2.5.x |
tags: | added: track |
Changed in maas: | |
milestone: | 2.5.x → 2.5.0beta2 |
Changed in maas: | |
assignee: | Andres Rodriguez (andreserl) → Lee Trager (ltrager) |
Changed in maas: | |
milestone: | 2.5.0beta2 → 2.5.0rc1 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Tried changing line 232 of /usr/lib/ python3/ dist-packages/ maasserver/ compose_ preseeds. py from preserve_ sources_ list True to False, same error.
get-curtin-config confirms that the change happened and it shows False for the URL, but still fails.
the deb-src lines are still in /etc/apt/ sources. list