pserv.yaml misses to enclose in quotes Cobbler's password

Bug #984427 reported by C de-Avillez on 2012-04-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Low
Andres Rodriguez

Bug Description

ii maas 0.1+bzr473+dfsg-0ubuntu1~ppa2 Ubuntu MAAS Server
ii maas-provision 2.2.2-0ubuntu1~ppa4 Install server
ii maas-provision-common 2.2.2-0ubuntu1~ppa4 Cobbler Install server - common files

Using MAAS from the testing PPA.

Since deployment of maas-provision I had been unable to maas-import-isos, 'sudo cobbler list', or add a node, with these operations returning 'login failed':

xmlrpclib.Fault: <Fault 1: "<class 'cobbler.cexceptions.CX'>:'login failed'">
Traceback (most recent call last):
  File "/usr/bin/cobbler", line 35, in <module>
    sys.exit(app.main())
  File "/usr/lib/python2.7/dist-packages/cobbler/cli.py", line 543, in main
    rc = cli.run(sys.argv)
  File "/usr/lib/python2.7/dist-packages/cobbler/cli.py", line 197, in run
    self.token = self.remote.login("", self.shared_secret)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "<class 'cobbler.cexceptions.CX'>:'login failed'">

After a *lot* of trial and failure, I eventually quoted the password for Cobbler in /etc/maas/pserv.yaml. After restarting the services, all was well.

Related branches

C de-Avillez (hggdh2) wrote :

I am not sure this happens all the times; I understand Diogo reinstalled without issues on the QA lab.

Changed in maas (Ubuntu):
assignee: nobody → Andres Rodriguez (andreserl)
status: New → Triaged
Andres Rodriguez (andreserl) wrote :

The failure is not really caused because of this. However, that particular issue has already been fixced and was due to the migration to maas-provision

Changed in maas (Ubuntu):
status: Triaged → Fix Committed
Changed in maas (Ubuntu):
importance: Undecided → Low
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package maas - 0.1+bzr482+dfsg-0ubuntu1

---------------
maas (0.1+bzr482+dfsg-0ubuntu1) precise-proposed; urgency=low

  * New upstream release (Fixes LP: #981103)
  * debian/maas.postinst:
    - Make sure rabbitmq and postgresql are started on upgrade (LP: #981282)
    - Handle upgrades from any lower than 0.1+bzr462+dfsg-0ubuntu1 to
      correctly re-generate passwords, and not have db sync/migrate issues
      as config has changed upstream.
    - Correctly set Passwords for PSERV, otherwise it won't set new passwords.
  * Allow MAAS_DEFAULT_URL reconfiguration. (LP: #980970)
    - debian/maas.config: Add reconfigure validation to correctly allow it,
      and ask a question.
    - debian/maas.postinst: Reconfigure DEFAULT_MAAS_URL as well as cobbler
      server and next_server for PXE/Provisioning.
    - debian/maas.templates: Add debconf question and update info.
  * Do not lose MAAS_DEFAULT_URL settings on upgrade (LP: #984309)
  * debian/maas.postinst:
    - Set cobbler password in between quotes (LP: #984427)
    - Do not change permissions to maas.log (LP: #980915)
  * no longer use maas-cloudimg2ephemeral, but rather use premade images
    at http://maas.ubuntu.com
 -- Andres Rodriguez <email address hidden> Tue, 17 Apr 2012 23:44:46 -0700

Changed in maas (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers