Namespace stats issue



AMC is not working properly for me in some cases (namespace infos are missing) ajax request failes.


Heres a stacktrace: (running and AMC 3.6.9)

kwargs:{'cluster': <models.cluster.Cluster object at 0x7f89c8041850>, 'namespace_list': u'htmlcache'}Traceback (most recent call last):
  File "/opt/amc/server/utilities/", line 131, in f
    return fn(*args, **kwargs)
  File "/opt/amc/server/helpers/", line 270, in decorator
    response = fn(*args, **kwargs)
  File "/opt/amc/server/", line 148, in get_namespace_info
    response = namespace_controller.get_namespace_info(cluster, str(namespace_list), node_addresses)
  File "/opt/amc/server/controllers/", line 57, in get_namespace_info
  File "/opt/amc/server/models/", line 136, in update_statistics
    statistics = self.assign_stat_aliases(statistics)
  File "/opt/amc/server/models/", line 181, in assign_stat_aliases
    stats["available-bin-names"] = stats["available_bin_names"]
KeyError: 'available_bin_names'
2016-08-05 12:31:53 [15158] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/amc/server/site-packages/gunicorn/workers/", line 45, in handle
    self.handle_request(listener, req, client, addr)
  File "/opt/amc/server/site-packages/gunicorn/workers/", line 93, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/amc/server//site-packages/flask/", line 1701, in __call__
    return self.wsgi_app(environ, start_response)
  File "/opt/amc/server//site-packages/flask/", line 1689, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/opt/amc/server//site-packages/flask/", line 1687, in wsgi_app
    response = self.full_dispatch_request()
  File "/opt/amc/server//site-packages/flask/", line 1360, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/opt/amc/server//site-packages/flask/", line 1358, in full_dispatch_request
    rv = self.dispatch_request()
  File "/opt/amc/server//site-packages/flask/", line 1344, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/opt/amc/server/utilities/", line 135, in f
    raise Exception("Internal server error!")
Exception: Internal server error!


You have to use the latest amc version,


switched over to noticed that its half working…

at least now the dashboard is fully working thanks for that.

But still im unable to see the number of set entries in definitions, any idears for that?


Looks like this is an oversight from a much older change (I would guess 3.6.1) when the format of the set statistics changed to:

$ asinfo -v sets

(Notice the removal of Evict HWM count, and the introduction of Disable eviction). We will follow up and address this in the next release. Thanks for reporting on it!


This should be fixed in the latest release (v3.6.11)