juju 1.15.1 polls maas API continually

Bug #1236734 reported by James Page
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
Critical
Martin Packman

Bug Description

Except from apache log:

10.98.191.12 - - [08/Oct/2013:07:59:35 +0000] "GET /MAAS/api/1.0/nodes/?id=node-742baf7e-4527-11e2-9188-2c768a4f56ac&op=list HTTP/1.1" 200 536 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:35 +0000] "GET /MAAS/api/1.0/nodes/?id=node-3aa538e2-4527-11e2-9188-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:35 +0000] "GET /MAAS/api/1.0/nodes/?id=node-0d121d8c-4527-11e2-ba10-2c768a4f56ac&op=list HTTP/1.1" 200 533 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:36 +0000] "GET /MAAS/api/1.0/nodes/?id=node-166f35b8-4527-11e2-ba10-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:36 +0000] "GET /MAAS/api/1.0/nodes/?id=node-3a42c102-a068-11e2-9b0e-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:36 +0000] "GET /MAAS/api/1.0/nodes/?id=node-53a802a2-4527-11e2-9188-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:36 +0000] "GET /MAAS/api/1.0/nodes/?id=node-742baf7e-4527-11e2-9188-2c768a4f56ac&op=list HTTP/1.1" 200 536 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:36 +0000] "GET /MAAS/api/1.0/nodes/?id=node-3aa538e2-4527-11e2-9188-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:37 +0000] "GET /MAAS/api/1.0/nodes/?id=node-0d121d8c-4527-11e2-ba10-2c768a4f56ac&op=list HTTP/1.1" 200 533 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:37 +0000] "GET /MAAS/api/1.0/nodes/?id=node-166f35b8-4527-11e2-ba10-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:37 +0000] "GET /MAAS/api/1.0/nodes/?id=node-3a42c102-a068-11e2-9b0e-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:37 +0000] "GET /MAAS/api/1.0/nodes/?id=node-53a802a2-4527-11e2-9188-2c768a4f56ac&op=list HTTP/1.1" 200 535 "-" "Go 1.1 package http"
10.98.191.12 - - [08/Oct/2013:07:59:38 +0000] "GET /MAAS/api/1.0/nodes/?id=node-742baf7e-4527-11e2-9188-2c768a4f56ac&op=list HTTP/1.1" 200 536 "-" "Go 1.1 package http"

Environment appears to be running OK but this is generating general load on the MAAS server

Related branches

Revision history for this message
James Page (james-page) wrote :
Download full text (5.3 KiB)

And from Juju:

768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:04 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-166f35b8-4527-11e2-ba10-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:04 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-3a42c102-a068-11e2-9b0e-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:04 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-742baf7e-4527-11e2-9188-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:04 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-0d121d8c-4527-11e2-ba10-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:05 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-53a802a2-4527-11e2-9188-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:05 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-3aa538e2-4527-11e2-9188-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:05 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-166f35b8-4527-11e2-ba10-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:05 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-3a42c102-a068-11e2-9b0e-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:05 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-742baf7e-4527-11e2-9188-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:06 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-0d121d8c-4527-11e2-ba10-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:06 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-53a802a2-4527-11e2-9188-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:06 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-3aa538e2-4527-11e2-9188-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:06 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-166f35b8-4527-11e2-ba10-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:07 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-3a42c102-a068-11e2-9b0e-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:07 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-742baf7e-4527-11e2-9188-2c768a4f56ac/": Requested array, got <nil>.
2013-10-08 08:09:07 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-0d121d8c-4527-11e2-ba10-2c768a4f56ac/": Re...

Read more...

Revision history for this message
James Page (james-page) wrote :
Revision history for this message
James Page (james-page) wrote :

For reference this is with MAAS from raring.

Revision history for this message
John A Meinel (jameinel) wrote :

From digging into the code, it looks like we implemented MaasProvider.Instance.Addresses by reading the "ip_addresses" field from the node listing.

But that was added in rev 1521 of MaaS which *isn't* in Raring.

It didn't matter before because we only used DNSName which uses the "hostname" field of the node list.

My suggestion is to try ip_addresses and if the request fails, fall back to hostname

John A Meinel (jameinel)
Changed in juju-core:
importance: Undecided → Critical
milestone: none → 1.16.0
status: New → Triaged
William Reade (fwereade)
Changed in juju-core:
assignee: nobody → Martin Packman (gz)
Go Bot (go-bot)
Changed in juju-core:
status: Triaged → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
Revision history for this message
Kurt (burnbrighter) wrote :

Was this supposed to be fixed in 1.16.0? I just tested it and it is not. Still getting the error:

4jmj4:2013-10-11 19:55:49 WARNING juju.worker.addressupdater updater.go:211 cannot get addresses for instance "/MAAS/api/1.0/nodes/node-053bee28-1fe0-11e3-a1df-000c2969475a/": Requested array, got <nil>.

Revision history for this message
Kurt (burnbrighter) wrote :

Can anyone please comment on this? This is NOT fixed in 1.16 as noted above. I've tested this.

Revision history for this message
Martin Packman (gz) wrote :

Kurt, can you attach a full log? That message shouldn't be possible with 1.16, and I've had other reports that the bug is indeed resolved. Did you upgrade an existing juju deployment, or start from scratch with the new version? Can you double check that the binaries getting run are the new ones? Thanks!

Revision history for this message
Kurt (burnbrighter) wrote :

Thank you Martin. After syncing tools and running juju-upgrade, I've validated this is fixed. Sorry for the confusion.

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.