MAAS end point cannot be added "HTTP 410 Error Gone"

Bug #1592994 reported by Chris Gregan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Server
Invalid
Undecided
Unassigned
MAAS
Won't Fix
Undecided
Unassigned

Bug Description

Package version
    16.05~bzr10082~release43+jenkins143-1
Revision
    10082

Description:
When attempting to add the MAAS endpoint and API to the Openstack tab, the UI returns Error 410 Gone

Steps:
Juju deploy LDS Dense Maas
Set up user and login
Go to openstack tab and add MAAS end point and api

Log shows:
Jun 15 21:32:20 job-handler-1 CRIT Got error while handling job#012Traceback (most recent call last):#012 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 434, in errback#012 self._startRunCallbacks(fail)#012 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 501, in _startRunCallbacks#012 self._runCallbacks()#012 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 588, in _runCallbacks#012 current.result = callback(current.result, *args, **kw)#012 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1184, in gotResult#012 _inlineCallbacks(r, g, deferred)#012--- <exception caught here> ---#012 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks#012 result = result.throwExceptionIntoGenerator(g)#012 File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator#012 return g.throw(self.type, self.value, self.tb)#012 File "/opt/canonical/landscape/canonical/landscape/model/maas/jobs.py", line 32, in run#012 result = yield MAASClient(endpoint, credentials).test_connection()#012 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1126, in _inlineCallbacks#012 result = result.throwExceptionIntoGenerator(g)#012 File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator#012 return g.throw(self.type, self.value, self.tb)#012 File "/opt/canonical/landscape/canonical/maas/maas.py", line 124, in test_connection#012 raise MAASError(u"Unknown HTTP Error: %s" % unicode(e))#012canonical.maas.errors.MAASError: Unknown HTTP Error: 410 GONE
Jun 15 21:32:20 job-handler-1 INFO Stopping factory <HTTPClientFactory: http://10.245.208.27/MAAS/api/1.0/nodegroups/?op=list>

Notice in maas syslog at the time of this error:

Jun 15 21:24:15 localhost sh[14253]: 2016-06-15 21:24:15 [-] 127.0.0.1 - - [15/Jun/2016:21:24:14 +0000] "GET /MAAS/api/1.0/nodegroups/?op=list HTTP/1.1" 410 63 "-" "Twisted PageGetter"

Revision history for this message
Chris Gregan (cgregan) wrote :
Revision history for this message
Chris Gregan (cgregan) wrote :
Revision history for this message
Chris Gregan (cgregan) wrote :
David Britton (dpb)
information type: Proprietary → Public
description: updated
Revision history for this message
David Britton (dpb) wrote :

This seems like a MAAS problem. If things change after analysis of upstream, we can re-open.

tags: added: landscape
Changed in landscape:
status: New → Opinion
Revision history for this message
Mike Pontillo (mpontillo) wrote :

What version of MAAS is this?

It looks like the 401 Gone is happening because you're hitting the nodegroups endpoint. The most likely explanation is that you are operating against MAAS 2.0+. Assuming that is true, it is expected that this endpoint no longer exists.

It looks like you'll need to update your code to call the 2.0 version of the MAAS API.

Please reopen this if that isn't the case, and please get in touch with me or Andres if you need more information.

Changed in maas:
status: New → Incomplete
status: Incomplete → Won't Fix
Revision history for this message
Chris Gregan (cgregan) wrote : Re: [Bug 1592994] Re: MAAS end point cannot be added "HTTP 410 Error Gone"

MAAS 2.0 Beta 7

On Thu, Jun 16, 2016 at 3:17 AM, Mike Pontillo <email address hidden>
wrote:

> What version of MAAS is this?
>
> It looks like the 401 Gone is happening because you're hitting the
> nodegroups endpoint. The most likely explanation is that you are
> operating against MAAS 2.0+. Assuming that is true, it is expected that
> this endpoint no longer exists.
>
> It looks like you'll need to update your code to call the 2.0 version of
> the MAAS API.
>
> Please reopen this if that isn't the case, and please get in touch with
> me or Andres if you need more information.
>
> ** Changed in: maas
> Status: New => Incomplete
>
> ** Changed in: maas
> Status: Incomplete => Won't Fix
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> Matching subscriptions: default
> https://bugs.launchpad.net/bugs/1592994
>
> Title:
> MAAS end point cannot be added "HTTP 410 Error Gone"
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/landscape/+bug/1592994/+subscriptions
>

--
Chris Gregan
Quality Assurance Lead
Cloud Development and Operations
<email address hidden>

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Yup, this seems like landscape/autopilot doesn't yet support MAAS 2.0

Revision history for this message
David Britton (dpb) wrote :

Correct, the autopilot works on 1.x MAAS. Didn't know this was MAAS 2.0, thanks for confirming.

Changed in landscape:
status: Opinion → Invalid
Revision history for this message
Riccardo Magrini (riccardo-magrini) wrote :

the same issue, but I don't use Autopilot to deploy Opanstack. so my lab is composed bye:

1 VM for MAAS
1 VM for Landscape
5 VM for Openstack

and I've used this link to https://landscape.canonical.com/set-up-on-prem to install Landscape on its VM and then trying to Register MAAS server receive that error:

Revision history for this message
Adam Collard (adam-collard) wrote :

Riccardo,

What are you hoping to achieve by registering MAAS with Landscape if not for the Autopilot? Also please confirm which MAAS version you're attempting to register?

We are working very hard to get an Autopilot version out that supports MAAS 2.x, Juju 2.x on Xenial but it's not quite there yet. Until that point, only MAAS 1.x is supported.

Revision history for this message
Riccardo Magrini (riccardo-magrini) wrote :

Adam,

ok perfect, I'll waiting the new version of Autopilot to test MAAS 2.x, JUJU 2.x and Openstack. Having received any error following the guide about conjure

https://www.ubuntu.com/download/cloud

and

http://conjure-up.io/

I thought that bypassed it I could install the entire environment, it was a my test.

Anyway Thanks a lot for your work...

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.