Comment 5 for bug 1718016

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

Further info:

Juju:

2017-09-18 17:13:58 WARNING juju.provisioner provisioner_task.go:747 failed to start instance (unexpected: Post http://10.245.208.33/MAAS/api/2.0/machines/ab6sax/?op=deploy: EOF), retrying in 10s (10 more attempts)

MAAS 1:

2017-09-18 17:13:05 maasserver: [error] ################################ Exception: No available machine matches constraints: [('interfaces', ['0:space=4;amqp:space=4;data:space=4;db:space=4;hosted:space=4;registration:space=4;website:space=4']), ('tags', ['landscape']), ('agent_name', ['3eff5a1b-4c29-4365-85b2-e6d0a878b647']), ('zone', ['default'])] (resolved to "interfaces=0:space=4;amqp:space=4;data:space=4;db:space=4;hosted:space=4;registration:space=4;website:space=4 tags=landscape zone=default") ################################
2017-09-18 17:13:06 maasserver: [error] Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/utils/views.py", line 181, in view_atomic_with_post_commit_savepoint
    return view_atomic(*args, **kwargs)
  File "/usr/lib/python3.5/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/usr/lib/python3/dist-packages/maasserver/api/support.py", line 59, in __call__
    response = upcall(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/decorators/vary.py", line 21, in inner_func
    response = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/piston3/resource.py", line 190, in __call__
    result = self.error_handler(e, request, meth, em_format)
  File "/usr/lib/python3/dist-packages/piston3/resource.py", line 188, in __call__
    result = meth(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/api/support.py", line 298, in dispatch
    return function(self, request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/maasserver/api/machines.py", line 1485, in allocate
    raise NodesNotAvailable(message)
maasserver.exceptions.NodesNotAvailable: No available machine matches constraints: [('interfaces', ['0:space=4;amqp:space=4;data:space=4;db:space=4;hosted:space=4;registration:space=4;website:space=4']), ('tags', ['landscape']), ('agent_name', ['3eff5a1b-4c29-4365-85b2-e6d0a878b647']), ('zone', ['default'])] (resolved to "interfaces=0:space=4;amqp:space=4;data:space=4;db:space=4;hosted:space=4;registration:space=4;website:space=4 tags=landscape zone=default")

MAAS 2 (this error is repeated constantly around the time of the failure):

2017-09-18 17:13:04 provisioningserver.utils.services: [info] observe-arp[eno2]: FileNotFoundError: [Errno 2] No such file or directory: b'/bin/maas-rack'

MAAS 3: No error around that time.

So judging by this info, two things to try out:

1. ensure the issue is not related to the constraints error above, which would seem like it is related to allocation, and the machine not matching the constraints, which is the reason for the failure.

2. The missing maas-rack command.