maas-import-pxe-files fails when MAAS_URL is quoted

Bug #1501135 reported by Haw Loeung
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Invalid
Undecided
Unassigned
maas (Ubuntu)
Invalid
Undecided
Unassigned
Trusty
Invalid
Undecided
Unassigned

Bug Description

Hi,

We're trying to import images using 'maas-import-pxe-files' from the CLI but that seems to fail. On further investigation, it seems that it's because MAAS_URL is enclosed in double quotes and the URL it's trying to get to isn't removing it:

| root@somehost:/var/log/maas# tail -f /var/log/apache2/*.log -n 0 &
| root@somehost:/var/log/maas# maas-import-pxe-files --sources-file /tmp/tmp.Zl6RvzP3yu/boot-images.yaml
|
| ==> /var/log/apache2/access.log <==
| 10.189.73.2 - - [30/Sep/2015:02:09:42 +0000] "GET /MAAS\"/rpc/ HTTP/1.0" 404 468 "-" "Twisted PageGetter"
| Unhandled Error
| Traceback (most recent call last):
| Failure: twisted.web.error.Error: 404 Not Found

| root@somehost:/var/log/apache2# cat /etc/maas/maas_cluster.conf
| # This file is used by the cluster controller startup script:
| # `maas-provision start-cluster-controller`
| # to get the URL to the MAAS region controller's API. Normally, packaging
| # will update this file automatically but it may also be configured manually.
| MAAS_URL=http://10.189.73.2/MAAS
| CLUSTER_UUID="b8215ed4-9998-45fc-ab74-967a00003769"

The version of MAAS we're running with is as follows:

| root@somehost:/var/log/apache2# apt-cache policy maas
| maas:
| Installed: 1.7.6+bzr3376-0ubuntu2~14.04.1
| Candidate: 1.7.6+bzr3376-0ubuntu2~14.04.1
| Version table:
| *** 1.7.6+bzr3376-0ubuntu2~14.04.1 0
| 500 http://archive.ubuntu.com//ubuntu/ trusty-updates/main amd64 Packages
| 100 /var/lib/dpkg/status

... and finally the sources file specified:

| root@somehost:/var/log/apache2# cat /tmp/tmp.Zl6RvzP3yu/boot-images.yaml
| - url: "http://maas.ubuntu.com/images/ephemeral-v2/releases/"
| keyring: "/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg"
| selections:
| - release: "trusty"
| arches: ["*"]
| subarches: ["generic"]
| labels: ["release"]

Regards,

Haw

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in maas (Ubuntu Trusty):
status: New → Confirmed
Changed in maas (Ubuntu):
status: New → Confirmed
Revision history for this message
Andres Rodriguez (andreserl) wrote :

HI Haw,

maas-import-pxe-files was dropped for 1.7. Import of images should be started on the CLI or via the WebUI.

Marking this bug as invalid.

Changed in maas:
status: New → Invalid
Changed in maas (Ubuntu):
status: Confirmed → Invalid
Changed in maas (Ubuntu Trusty):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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