squid-deb-proxy is not started when installing MaaS with 13.10 server CD

Bug #1247886 reported by Chris Glass
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Undecided
Unassigned
maas (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Won't Fix
Undecided
Unassigned
Saucy
Invalid
Undecided
Unassigned
squid-deb-proxy (Ubuntu)
Fix Released
High
Unassigned
Precise
Won't Fix
High
Unassigned
Saucy
Won't Fix
High
Unassigned

Bug Description

When installing a MaaS server from the Saucy server install CD, the squid-apt-proxy service is not started by default, which results in the provisionning of nodes to fail.

Steps to reproduce:

(boilerplate)
1. Install a MaaS server using the Ubuntu Server 13.10 server media (Choose "Multiple server install with MaaS" at the CD boot prompt and follow the installer).
2. login to your newly created system
3. run "sudo maas createsuperuser", run "sudo maas-import-pxe-files" (or import the files via the UI/API)
4. setup your maas server from the UI (DHCP, DNS etc...)
5. PXE boot a node. The discovery phase succeeds, the node is listed in the nodes list as enlisted.

(actual bug)
6. mark the node for provisionning in the UI
7. (if needed) boot the node

What is happening:
 The provisionning fails because the nodes are configured to use the maas server as an apt proxy on port 8000 and running "sudo service squi-deb-proxy status" confirms it is not running.

What should be happening:
Installing the maas server from the server install CD should start the squid-deb-proxy service at some point of the installation process, in order to install a functional maas system.

Workaround:
Manually running the deb proxy with "sudo service squid-deb-proxy start" makes the provisonning step succeed.

At the very least, the workaround should appear in http://maas.ubuntu.com/docs/install.html as a "post-install task".

tags: added: landscape
Chris Glass (tribaal)
summary: - squid-deb-proxy is not started when installing MaaS with server CD
+ squid-deb-proxy is not started when installing MaaS with 13.10 server CD
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Re-targeting as this is a packaging bug. Out of interest, are there any errors in its log?

Changed in maas:
status: New → Invalid
Revision history for this message
Robert Ayres (robert-ayres) wrote :

I've just hit this one, squid-deb-proxy log attached.

Revision history for this message
Robert Ayres (robert-ayres) wrote :
Revision history for this message
Chris Glass (tribaal) wrote :

Yes, I should have attached that log file in my initial report. It's the same problem :(

Revision history for this message
Robert Ayres (robert-ayres) wrote :

The attached patch file fixes it for me. Making 'squid -z' not daemonize.

Revision history for this message
Robert Ayres (robert-ayres) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "squid-deb-proxy-nodaemonize.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Confirmed the patch fixes it for me in saucy.

I'm curious whether the newer version merged into trusty fixes it (testing).

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Confirmed this is still the case in trusty

Changed in squid-deb-proxy (Ubuntu):
importance: Undecided → High
status: New → Triaged
Revision history for this message
Chris Glass (tribaal) wrote :

For the record, this affects the precise package as well.
I would strongly recommend uploading a fixed package to the "cloud-archive:tools" repository since most people installing maas will use this (it's the recommended way).

tribaal@maas:~$ apt-cache policy squid-deb-proxy
squid-deb-proxy:
  Installed: 0.6.3.1
  Candidate: 0.6.3.1
  Version table:
 *** 0.6.3.1 0
        500 http://ch.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.6.3 0
        500 http://ch.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

tribaal@maas:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise

James Page (james-page)
Changed in squid-deb-proxy (Ubuntu Saucy):
status: New → Triaged
importance: Undecided → High
Changed in maas (Ubuntu Saucy):
status: New → Invalid
Changed in maas (Ubuntu):
status: New → Invalid
Revision history for this message
James Page (james-page) wrote :

Merge proposed upstream; once that's accepted lets get this fix backported back to 13.10 and 12.04.

Changed in squid-deb-proxy (Ubuntu Precise):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package squid-deb-proxy - 0.8.5

---------------
squid-deb-proxy (0.8.5) unstable; urgency=low

  [ James Page ]
  * lp:~james-page/squid-deb-proxy/fixup-cache-init:
    Ensure squid does not daemonize when creating cache directories
    (LP: #1247886)

 -- Michael Vogt <email address hidden> Thu, 12 Dec 2013 22:22:34 +0100

Changed in squid-deb-proxy (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

saucy has seen the end of its life and is no longer receiving any updates. Marking the saucy task for this ticket as "Won't Fix".

Changed in squid-deb-proxy (Ubuntu Saucy):
status: Triaged → Won't Fix
Revision history for this message
Steve Langasek (vorlon) wrote :

The Precise Pangolin has reached end of life, so this bug will not be fixed for that release

Changed in squid-deb-proxy (Ubuntu Precise):
status: Triaged → Won't Fix
Steve Langasek (vorlon)
Changed in maas (Ubuntu Precise):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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