Extra slash in /etc/apt/sources.list; prevents connecting to some servers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned |
Bug Description
When doing a curtin (fastpath) installation, the /etc/apt/
deb http://
deb http://
deb http://
This works fine with the Canonical-managed servers, which use Apache; but some web servers are more fussy. If the user changes the "Main archive" field in http://{maas-server}
This problem does NOT occur on d-i installs; they generate /etc/apt/
My MAAS version information:
$ dpkg -l '*maas*'|cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Architecture Description
+++-===
ii maas 1.5.2+bzr2282-
ii maas-cli 1.5.2+bzr2282-
ii maas-cluster-
ii maas-common 1.5.2+bzr2282-
ii maas-dhcp 1.5.2+bzr2282-
ii maas-dns 1.5.2+bzr2282-
ii maas-region-
ii maas-region-
ii python-django-maas 1.5.2+bzr2282-
ii python-maas-client 1.5.2+bzr2282-
ii python-
The file is generated from these lines in curtin_userdata, so I expect we need to strip a slash somewhere:
{{if node.split_ arch()[ 0] in {'i386', 'amd64'} }} archive_ hostname} }/{{main_ archive_ directory} } archive_ hostname} }/{{main_ archive_ directory} } archive_ hostname} }/{{ports_ archive_ directory} } archive_ hostname} }/{{ports_ archive_ directory} }
apt_mirrors:
ubuntu_archive: http://{{main_
ubuntu_security: http://{{main_
{{else}}
apt_mirrors:
ubuntu_archive: http://{{ports_
ubuntu_security: http://{{ports_
{{endif}}