Sahara returning APIException: Failed to parse response from Sahara: Internal Server Error

Asked by kiriti

I have tried to setup mitaka version of sahara on a ppc64le machine. But the saharaclient is not able to communicate with the sahara server and is throwing the following error -

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 118, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/openstackclient/shell.py", line 153, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/display.py", line 92, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/dist-packages/saharaclient/osc/v1/plugins.py", line 48, in take_action
    data = client.plugins.list()
  File "/usr/lib/python2.7/dist-packages/saharaclient/api/plugins.py", line 37, in list
    return self._list('/plugins%s' % query, 'plugins')
  File "/usr/lib/python2.7/dist-packages/saharaclient/api/base.py", line 179, in _list
    self._raise_api_exception(resp)
  File "/usr/lib/python2.7/dist-packages/saharaclient/api/base.py", line 209, in _raise_api_exception
    error_message=msg)
APIException: Failed to parse response from Sahara: Internal Server Error

I could not find anything on sahara-api.log or sahara-engine.log though I have enabled debug and verbose. Could anyone please suggest any solution for it.

Thanks,
Kiriti.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sahara Edit question
Assignee:
No assignee Edit question
Solved by:
kiriti
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

lsb_release -a; uname -a; apt-cache policy sahara

Thanks

Revision history for this message
kiriti (kiritim) said :
#2

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty

 apt-cache policy sahara
sahara:
  Installed: 1:4.1.0-0ubuntu1~cloud0
  Candidate: 1:4.1.0-0ubuntu1~cloud0
  Version table:
 *** 1:4.1.0-0ubuntu1~cloud0 0
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-updates/mitaka/main ppc64el Packages
        100 /var/lib/dpkg/status

Thanks.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3
Revision history for this message
kiriti (kiritim) said :
#4

I have followed the same guide for the installation, but still I am facing this issue. I am trying this on a ppc64le vm. I have also tried installing it using apt repository and also tried to clone stable mitaka version from git. But none of them worked so far.

Revision history for this message
kiriti (kiritim) said :
#5

The problem is solved.

Revision history for this message
Mark Sherlock (5h3rlock) said :
#6

Hi, how did you solve your issue, I think I am hitting the same one.

Revision history for this message
kiriti (kiritim) said :
#7

I got this issue when I tried to install it in a container. When I switched to installing on host itself, sahara seems to be working fine.