[2.x, enhancement] No way to disable apt sources (deb-src)

Bug #1758965 reported by Jeff Hillman
18
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/sources.list

There is no option (in the UI) to disable sources for any repository.

Related branches

Changed in maas:
milestone: none → 2.4.0beta2
importance: Undecided → Medium
status: New → Triaged
assignee: nobody → Andres Rodriguez (andreserl)
Revision history for this message
Jeff Hillman (jhillman) wrote :

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

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)
Revision history for this message
Lee Trager (ltrager) wrote :

This appears to be a duplicate of LP:1782219. I have a patch ready for review which you can test. Please be advised that in MAAS 2.5 access to universe is needed for enlistment but not commissioning.

Revision history for this message
Andres Rodriguez (andreserl) wrote :

This is not a duplicate. 'deb-src' is a completely valid configuration and we should only drop it if we desire to.

This needs to be an pption for the ubuntu archive or the ports archive (similarly to how we disable components, etc).

summary: - [2.3.0] sources are being forced into sources.list causing apt update to
- fail (on premise mirror)
+ [2.x, enhancement] No way to disable apt sources (deb-src)
tags: added: wishlist
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.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.