[Bug 1501135] [NEW] maas-import-pxe-files fails when MAAS_URL is quoted
Haw Loeung
1501135 at bugs.launchpad.net
Wed Sep 30 02:29:56 UTC 2015
Public bug reported:
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 at somehost:/var/log/maas# tail -f /var/log/apache2/*.log -n 0 &
| root at 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 at 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 at 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 at 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
** Affects: maas
Importance: Undecided
Status: New
** Affects: maas (Ubuntu)
Importance: Undecided
Status: New
** Affects: maas (Ubuntu Trusty)
Importance: Undecided
Status: New
** Also affects: maas (Ubuntu)
Importance: Undecided
Status: New
** Also affects: maas (Ubuntu Trusty)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1501135
Title:
maas-import-pxe-files fails when MAAS_URL is quoted
To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1501135/+subscriptions
More information about the Ubuntu-server-bugs
mailing list