cli 'nodes list-allocated' does not list all nodes allocated

Bug #1287373 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Expired
Critical
Unassigned
maas (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

$ maas cts nodes list-allocated > allocated.json
$ maas cts nodes list > all.json
$ ./shownodes.py all.json | grep smoser
carroll smoser 6 node-147ddcba-a0b0-11e3-8c08-5254002f0d0f
sprite smoser 6 node-62ef92b2-a0b0-11e3-a800-5254002f0d0f
$ ./shownodes.py allocated.json
sprite smoser 6 node-62ef92b2-a0b0-11e3-a800-5254002f0d0f
$ cat shownodes.py
#!/usr/bin/python
import json, sys
data = json.load(open(sys.argv[1], "r"))
for node in data:
  print '\t'.join(str(f) for f in [
    node.get('hostname').split(".")[0],
    node.get('owner'),
    node.get('status'),
    node.get('system_id'),
  ])

Why is carroll not shown in list-allocated output? It is allocated to my user per 'list'.

$ dpkg-query --show maas-cli
maas-cli 1.5+bzr1977-0ubuntu2

Thats the client version, the server is:
maas 1.4+bzr1693+dfsg-0ubuntu2.2~ctools0

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: maas-cli 1.5+bzr1977-0ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-8.27-generic 3.13.2
Uname: Linux 3.13.0-8-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 3 15:12:09 2014
EcryptfsInUse: Yes
InstallationDate: Installed on 2011-10-19 (866 days ago)
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
PackageArchitecture: all
SourcePackage: maas
UpgradeStatus: Upgraded to trusty on 2013-05-20 (287 days ago)

Revision history for this message
Scott Moser (smoser) wrote :
Scott Moser (smoser)
description: updated
Revision history for this message
Raphaël Badin (rvb) wrote :

Did you, by any chance, acquire the two nodes using different API keys (both belonging to the user 'smoser')?

Revision history for this message
Julian Edwards (julian-edwards) wrote :

I can recreate this.

Changed in maas:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Actually I can recreate it if I hack the database, under normal circumstances I cannot.

Scott, did you hack the database so that "owner" is set but not "token" ?

Changed in maas:
status: Triaged → Incomplete
Robie Basak (racb)
Changed in maas (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for maas (Ubuntu) because there has been no activity for 60 days.]

Changed in maas (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for MAAS because there has been no activity for 60 days.]

Changed in maas:
status: Incomplete → Expired
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.