ValueError: Malformed credentials string. Expected 3 colon-separated items

Bug #1351488 reported by Diogo Matsubara
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Committed
Diogo Matsubara

Bug Description

Running maas-test with a utopic VM raises the following:

2014-07-31 19:26:23,169 INFO Downloading KVM image for arch=amd64 release=utopic label=daily...
2014-07-31 19:26:27,979 INFO Done downloading KVM image.
2014-07-31 19:26:27,997 INFO Creating virtual machine 15a879d8-190a-11e4-8c0a-00e081ddd1cf, arch=amd64...
2014-07-31 19:26:30,700 INFO Done creating virtual machine 15a879d8-190a-11e4-8c0a-00e081ddd1cf, arch=amd64.
2014-07-31 19:26:30,701 INFO Waiting for the virtual machine to come up...
2014-07-31 19:26:51,119 INFO Virtual machine is running.
2014-07-31 19:26:51,120 INFO Waiting for cloud-init to finish its work...
2014-07-31 19:26:54,315 INFO Cloud-init run finished.
2014-07-31 19:26:54,315 INFO Configuring network interface on virtual machine 15a879d8-190a-11e4-8c0a-00e081ddd1cf...
2014-07-31 19:27:01,298 INFO Done configuring network interface on virtual machine 15a879d8-190a-11e4-8c0a-00e081ddd1cf
2014-07-31 19:27:15,865 INFO Virtual machine 15a879d8-190a-11e4-8c0a-00e081ddd1cf is ready.
2014-07-31 19:27:32,695 INFO Installing MAAS (version 1.5.2+bzr2282-0ubuntu2)...
2014-07-31 19:29:40,801 INFO Done installing MAAS.
2014-07-31 19:29:51,485 INFO Destroying virtual machine 15a879d8-190a-11e4-8c0a-00e081ddd1cf...
2014-07-31 19:29:52,543 INFO Done destroying virtual machine 15a879d8-190a-11e4-8c0a-00e081ddd1cf.
Traceback (most recent call last):
  File "/home/ubuntu/jenkins-jobs/workspace/maas-test/maas-test/bin/maas-test", line 9, in <module>
    load_entry_point('maas-test==0.1', 'console_scripts', 'maas-test')()
  File "/home/ubuntu/jenkins-jobs/workspace/maas-test/maas-test/maastest/", line 30, in entry_point
    return_code = main(args)
  File "/home/ubuntu/jenkins-jobs/workspace/maas-test/maas-test/maastest/", line 307, in main
  File "/home/ubuntu/jenkins-jobs/workspace/maas-test/maas-test/maastest/", line 350, in setUp
    maas_client = self.get_maas_api_client(api_key)
  File "/home/ubuntu/jenkins-jobs/workspace/maas-test/maas-test/maastest/", line 408, in get_maas_api_client
    credentials = convert_string_to_tuple(api_key)
  File "/usr/lib/python2.7/dist-packages/apiclient/", line 47, in convert_string_to_tuple
    % creds_string)
ValueError: Malformed credentials string. Expected 3 colon-separated items, got 'Using: Python 2.7\npvpPQgg3nKV6MQ9qQv:GPBPMH2qHKENL8rSqH:tcHLr4YYvc5neHjBGrMafufZDdSQdTTa'.

Tags: ci

Related branches

summary: ValueError: Malformed credentials string. Expected 3 colon-separated
- items,
+ items
Revision history for this message
Diogo Matsubara (matsubara) wrote :

The reason for this failure is due to an update to python-django source package version 1.6.5-3 (see which replaced with a custom script that can run different versions of python. The script also prints the string: "Using: Python2.7\n" as part of normal operation with no option to to be less verbose. I think the easiest way to fix this is to fix maas-test to cope with that change.

Changed in maas-test:
status: New → Triaged
Changed in maas-test:
status: Triaged → Fix Committed
Raphaël Badin (rvb)
Changed in maas-test:
assignee: nobody → Diogo Matsubara (matsubara)
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.