maniacs-setup fails with "503" error

Bug #1549554 reported by Rod Smith on 2016-02-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas-cert-server
Undecided
Unassigned

Bug Description

The maniacs-setup script fails sporadically with:

***************************************************************************
* A MAAS administrative account with a name of bladernr is being
* created.
*
* Please enter a password for this account:
* Please re-enter the password for verification:
* Setting up the bladernr MAAS account using the supplied password
The MAAS server gave an unexpected response: 503

Mark Wenning, Jeff Lane, Mike Rushton and I have all run into it. I SUSPECT that the cause is that the script temporarily shuts down Apache, and if it's not fully up again by the time the script needs it, the 503 error results.

Mark W Wenning (mwenning) wrote :

I've seen this on 2 systems, both behind a proxy firewall (Dell Linuxlab). After "tuning" the proxy settings a bit, it instead crashed with the following:
...
* Please enter a password for this account:
* Please re-enter the password for verification:
* Setting up the ubuntu MAAS account using the supplied password
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/dist-packages/maascli/__main__.py", line 20, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/maascli/__init__.py", line 46, in main
    options.execute(options)
  File "/usr/lib/python2.7/dist-packages/maascli/cli.py", line 78, in __call__
    options.url, credentials, options.insecure)
  File "/usr/lib/python2.7/dist-packages/maascli/auth.py", line 78, in check_valid_apikey
    insecure=insecure)
  File "/usr/lib/python2.7/dist-packages/maascli/api.py", line 67, in http_request
    return http.request(url, method, body=body, headers=headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1569, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1316, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1251, in _conn_request
    conn.connect()
  File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 900, in connect
    self.sock.connect((self.host, self.port) + sa[2:])
  File "/usr/lib/python2.7/dist-packages/httplib2/socks.py", line 424, in connect
    self.__negotiatehttp(destpair[0], destpair[1])
  File "/usr/lib/python2.7/dist-packages/httplib2/socks.py", line 390, in __negotiatehttp
    raise HTTPError((statuscode, statusline[2]))
httplib2.socks.HTTPError: (502, 'cannotconnect')
ubuntu@maas:~$
...

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers